Changeset 90525 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 5, 2021 10:14:37 AM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r90484 r90525 938 938 src/networking/UINetworkRequestManager.h \ 939 939 src/networking/UINetworkRequestManagerWindow.h \ 940 src/networking/UINetworkRequestManagerIndicator.h \941 940 src/networking/UINetworkRequest.h \ 942 941 src/networking/UINetworkRequestWidget.h \ … … 1492 1491 src/networking/UINetworkRequestManager.cpp \ 1493 1492 src/networking/UINetworkRequestManagerWindow.cpp \ 1494 src/networking/UINetworkRequestManagerIndicator.cpp \1495 1493 src/networking/UINetworkRequest.cpp \ 1496 1494 src/networking/UINetworkRequestWidget.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UINetworkRequest.cpp
r90524 r90525 25 25 #include "UINetworkRequestManager.h" 26 26 #include "UINetworkRequestManagerWindow.h" 27 #include "UINetworkRequestManagerIndicator.h"28 27 #include "UINetworkRequestWidget.h" 29 28 -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UINetworkRequest.h
r90524 r90525 35 35 class UINetworkRequestManager; 36 36 class UINetworkRequestManagerWindow; 37 class UINetworkRequestManagerIndicator;38 37 class UINetworkRequestWidget; 39 38 class UINetworkCustomer; -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UINetworkRequestManager.cpp
r90524 r90525 24 24 #include "UINetworkRequest.h" 25 25 #include "UINetworkRequestManager.h" 26 #include "UINetworkRequestManagerIndicator.h"27 26 #include "UINetworkRequestManagerWindow.h" 28 27 … … 59 58 } 60 59 61 UINetworkRequestManagerIndicator *UINetworkRequestManager::createIndicator() const62 {63 /* For Selector UI only: */64 AssertReturn(uiCommon().uiType() == UICommon::UIType_SelectorUI, 0);65 66 /* Create network-manager state-indicator: */67 UINetworkRequestManagerIndicator *pNetworkManagerIndicator = new UINetworkRequestManagerIndicator;68 connect(pNetworkManagerIndicator, &UINetworkRequestManagerIndicator::sigMouseDoubleClick,69 this, &UINetworkRequestManager::show);70 connect(this, &UINetworkRequestManager::sigAddNetworkManagerIndicatorDescription,71 pNetworkManagerIndicator, &UINetworkRequestManagerIndicator::sltAddNetworkManagerIndicatorDescription);72 connect(this, &UINetworkRequestManager::sigRemoveNetworkManagerIndicatorDescription,73 pNetworkManagerIndicator, &UINetworkRequestManagerIndicator::sldRemoveNetworkManagerIndicatorDescription);74 return pNetworkManagerIndicator;75 }76 77 60 void UINetworkRequestManager::registerNetworkRequest(UINetworkRequest *pNetworkRequest) 78 61 { 79 62 /* Add network-request widget to network-manager dialog: */ 80 63 m_pNetworkManagerDialog->addNetworkRequestWidget(pNetworkRequest); 81 82 /* Add network-request description to network-manager state-indicators: */83 emit sigAddNetworkManagerIndicatorDescription(pNetworkRequest);84 64 } 85 65 86 66 void UINetworkRequestManager::unregisterNetworkRequest(const QUuid &uuid) 87 67 { 88 /* Remove network-request description from network-manager state-indicator: */89 emit sigRemoveNetworkManagerIndicatorDescription(uuid);90 91 68 /* Remove network-request widget from network-manager dialog: */ 92 69 m_pNetworkManagerDialog->removeNetworkRequestWidget(uuid); -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UINetworkRequestManager.h
r90524 r90525 34 34 class UINetworkCustomer; 35 35 class UINetworkRequestManagerWindow; 36 class UINetworkRequestManagerIndicator;37 36 class UINetworkRequest; 38 37 … … 48 47 void sigCancelNetworkRequests(); 49 48 50 /** Requests to add @a pNetworkRequest to network-manager state-indicators. */51 void sigAddNetworkManagerIndicatorDescription(UINetworkRequest *pNetworkRequest);52 /** Requests to remove network-request with @a uuid from network-manager state-indicators. */53 void sigRemoveNetworkManagerIndicatorDescription(const QUuid &uuid);54 55 49 public: 56 50 … … 64 58 /** Returns pointer to network-manager dialog. */ 65 59 UINetworkRequestManagerWindow *window() const; 66 67 /** Creates network-manager state-indicator.68 * @remarks To be cleaned up by the caller. */69 UINetworkRequestManagerIndicator *createIndicator() const;70 60 71 61 /** Registers @a pNetworkRequest in network-manager. */
Note:
See TracChangeset
for help on using the changeset viewer.