VirtualBox

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

Last change on this file since 82781 was 76581, checked in by vboxsync, 5 years ago

Fe/QT: scm header guard alignment.

  • 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.8 KB
Line 
1/* $Id: UINetworkManagerDialog.h 76581 2019-01-01 06:24:57Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UINetworkManagerDialog stuff declaration.
4 */
5
6/*
7 * Copyright (C) 2011-2019 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 FEQT_INCLUDED_SRC_net_UINetworkManagerDialog_h
19#define FEQT_INCLUDED_SRC_net_UINetworkManagerDialog_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24/* Qt includes: */
25#include <QMainWindow>
26#include <QMap>
27#include <QUuid>
28
29/* GUI includes: */
30#include "QIWithRetranslateUI.h"
31#include "UILibraryDefs.h"
32
33/* Forward declarations: */
34class QLabel;
35class QUuid;
36class QVBoxLayout;
37class QIDialogButtonBox;
38class UINetworkRequest;
39class UINetworkRequestWidget;
40
41/** QMainWindow reimplementation to reflect network-requests. */
42class SHARED_LIBRARY_STUFF UINetworkManagerDialog : public QIWithRetranslateUI<QMainWindow>
43{
44 Q_OBJECT;
45
46signals:
47
48 /** Asks listener (network-manager) to cancel all network-requests. */
49 void sigCancelNetworkRequests();
50
51public slots:
52
53 /** Shows the dialog, make sure its visible. */
54 void showNormal();
55
56protected:
57
58 /** Allows creation of UINetworkManagerDialog to UINetworkManager. */
59 friend class UINetworkManager;
60 /** Constructs Network Manager Dialog. */
61 UINetworkManagerDialog();
62
63 /** Allows adding/removing network-request widgets to UINetworkRequest. */
64 friend class UINetworkRequest;
65 /** Adds network-request widget. */
66 void addNetworkRequestWidget(UINetworkRequest *pNetworkRequest);
67 /** Removes network-request widget. */
68 void removeNetworkRequestWidget(const QUuid &uuid);
69
70 /** Handles translation event. */
71 virtual void retranslateUi() /* override */;
72
73 /** Handles show @a pEvent. */
74 virtual void showEvent(QShowEvent *pEvent) /* override */;
75
76 /** Handles key-press @a pEvent. */
77 virtual void keyPressEvent(QKeyEvent *pEvent) /* override */;
78
79private slots:
80
81 /** Handles 'Cancel All' button-press. */
82 void sltHandleCancelAllButtonPress();
83
84private:
85
86 /** Holds the label instance. */
87 QLabel *m_pLabel;
88 /** Holds the widget layout instance. */
89 QVBoxLayout *m_pWidgetsLayout;
90 /** Holds the dialog-button-box instance. */
91 QIDialogButtonBox *m_pButtonBox;
92 /** Holds the map of the network request widget instances. */
93 QMap<QUuid, UINetworkRequestWidget*> m_widgets;
94};
95
96#endif /* !FEQT_INCLUDED_SRC_net_UINetworkManagerDialog_h */
97
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use