VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkManagerDialog.h@ 71466

Last change on this file since 71466 was 71466, checked in by vboxsync, 6 years ago

FE/Qt: bugref:9049: Heavy cleanup for all networking stuff.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
  • Property svn:mergeinfo set to (toggle deleted branches)
    /branches/VBox-3.0/src/VBox/Frontends/VirtualBox/src/net/UINetworkManager.h58652,​70973
    /branches/VBox-3.2/src/VBox/Frontends/VirtualBox/src/net/UINetworkManager.h66309,​66318
    /branches/VBox-4.0/src/VBox/Frontends/VirtualBox/src/net/UINetworkManager.h70873
    /branches/VBox-4.1/src/VBox/Frontends/VirtualBox/src/net/UINetworkManager.h74233
    /branches/VBox-4.2/src/VBox/Frontends/VirtualBox/src/net/UINetworkManagerDialog.h91503-91504,​91506-91508,​91510,​91514-91515,​91521
    /branches/VBox-4.3/src/VBox/Frontends/VirtualBox/src/net/UINetworkManagerDialog.h91223
    /branches/VBox-4.3/trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkManagerDialog.h91223
    /branches/dsen/gui/src/VBox/Frontends/VirtualBox/src/net/UINetworkManagerDialog.h79076-79078,​79089,​79109-79110,​79112-79113,​79127-79130,​79134,​79141,​79151,​79155,​79157-79159,​79193,​79197
    /branches/dsen/gui2/src/VBox/Frontends/VirtualBox/src/net/UINetworkManagerDialog.h79224,​79228,​79233,​79235,​79258,​79262-79263,​79273,​79341,​79345,​79354,​79357,​79387-79388,​79559-79569,​79572-79573,​79578,​79581-79582,​79590-79591,​79598-79599,​79602-79603,​79605-79606,​79632,​79635,​79637,​79644
    /branches/dsen/gui3/src/VBox/Frontends/VirtualBox/src/net/UINetworkManagerDialog.h79645-79692
File size: 2.7 KB
Line 
1/* $Id: UINetworkManagerDialog.h 71466 2018-03-22 16:39:35Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UINetworkManagerDialog stuff declaration.
4 */
5
6/*
7 * Copyright (C) 2011-2018 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ___UINetworkManagerDialog_h___
19#define ___UINetworkManagerDialog_h___
20
21/* Qt includes: */
22#include <QMainWindow>
23#include <QMap>
24#include <QUuid>
25
26/* GUI includes: */
27#include "QIWithRetranslateUI.h"
28
29/* Forward declarations: */
30class QLabel;
31class QUuid;
32class QVBoxLayout;
33class QIDialogButtonBox;
34class UINetworkRequest;
35class UINetworkRequestWidget;
36
37/** QMainWindow reimplementation to reflect network-requests. */
38class UINetworkManagerDialog : public QIWithRetranslateUI<QMainWindow>
39{
40 Q_OBJECT;
41
42signals:
43
44 /** Asks listener (network-manager) to cancel all network-requests. */
45 void sigCancelNetworkRequests();
46
47public slots:
48
49 /** Shows the dialog, make sure its visible. */
50 void showNormal();
51
52protected:
53
54 /** Allows creation of UINetworkManagerDialog to UINetworkManager. */
55 friend class UINetworkManager;
56 /** Constructs Network Manager Dialog. */
57 UINetworkManagerDialog();
58
59 /** Allows adding/removing network-request widgets to UINetworkRequest. */
60 friend class UINetworkRequest;
61 /** Adds network-request widget. */
62 void addNetworkRequestWidget(UINetworkRequest *pNetworkRequest);
63 /** Removes network-request widget. */
64 void removeNetworkRequestWidget(const QUuid &uuid);
65
66 /** Handles translation event. */
67 virtual void retranslateUi() /* override */;
68
69 /** Handles show @a pEvent. */
70 virtual void showEvent(QShowEvent *pEvent) /* override */;
71
72 /** Handles key-press @a pEvent. */
73 virtual void keyPressEvent(QKeyEvent *pEvent) /* override */;
74
75private slots:
76
77 /** Handles 'Cancel All' button-press. */
78 void sltHandleCancelAllButtonPress();
79
80private:
81
82 /** Holds the label instance. */
83 QLabel *m_pLabel;
84 /** Holds the widget layout instance. */
85 QVBoxLayout *m_pWidgetsLayout;
86 /** Holds the dialog-button-box instance. */
87 QIDialogButtonBox *m_pButtonBox;
88 /** Holds the map of the network request widget instances. */
89 QMap<QUuid, UINetworkRequestWidget*> m_widgets;
90};
91
92#endif /* !___UINetworkManagerDialog_h___ */
93
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use