VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkRequestWidget.h@ 43138

Last change on this file since 43138 was 42526, checked in by vboxsync, 12 years ago

FE/Qt: 6234: Support for VM groups: Initial commit. GUI-3 branch reintegrated to trunk.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
  • 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/dsen/gui/src/VBox/Frontends/VirtualBox/src/net/UINetworkRequestWidget.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/UINetworkRequestWidget.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/UINetworkRequestWidget.h79645-79692
File size: 2.4 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt GUI ("VirtualBox"):
4 * UINetworkRequestWidget stuff declaration
5 */
6
7/*
8 * Copyright (C) 2011-2012 Oracle Corporation
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 */
18
19#ifndef __UINetworkRequestWidget_h__
20#define __UINetworkRequestWidget_h__
21
22/* Local inludes: */
23#include "QIWithRetranslateUI.h"
24#include "UIPopupBox.h"
25
26/* Forward declarations: */
27class UINetworkManagerDialog;
28class QWidget;
29class QGridLayout;
30class QProgressBar;
31class QIToolButton;
32class QIRichTextLabel;
33class UINetworkRequest;
34class QTimer;
35
36/* UIPopupBox reimplementation to reflect network-request status: */
37class UINetworkRequestWidget : public QIWithRetranslateUI<UIPopupBox>
38{
39 Q_OBJECT;
40
41signals:
42
43 /* Signal to retry network-request: */
44 void sigRetry();
45 /* Signal to cancel network-request: */
46 void sigCancel();
47
48protected:
49
50 /* Allow creation of UINetworkRequestWidget to UINetworkManagerDialog only: */
51 friend class UINetworkManagerDialog;
52 /* Constructor: */
53 UINetworkRequestWidget(UINetworkManagerDialog *pParent, UINetworkRequest *pNetworkRequest);
54
55private slots:
56
57 /* Updates current network-request progess: */
58 void sltSetProgress(qint64 iReceived, qint64 iTotal);
59
60 /* Set current network-request progress to 'started': */
61 void sltSetProgressToStarted();
62 /* Set current network-request progress to 'finished': */
63 void sltSetProgressToFinished();
64 /* Set current network-request progress to 'failed': */
65 void sltSetProgressToFailed(const QString &strError);
66
67 /* Handle frozen progress: */
68 void sltTimeIsOut();
69
70private:
71
72 /* Translation stuff: */
73 void retranslateUi();
74
75 /* Widgets: */
76 QWidget *m_pContentWidget;
77 QGridLayout *m_pMainLayout;
78 QProgressBar *m_pProgressBar;
79 QIToolButton *m_pRetryButton;
80 QIToolButton *m_pCancelButton;
81 QIRichTextLabel *m_pErrorPane;
82
83 /* Objects: */
84 UINetworkRequest *m_pNetworkRequest;
85 QTimer *m_pTimer;
86};
87
88#endif // __UINetworkRequestWidget_h__
89
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use