Changeset 90590 in vbox
- Timestamp:
- Aug 10, 2021 10:12:47 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146201
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r90564 r90590 3412 3412 else if (QFile::exists(strUserManualFileName2)) 3413 3413 sltShowUserManual(strUserManualFileName2); 3414 # ifdef VBOX_GUI_WITH_NETWORK_MANAGER 3414 3415 /* If downloader is running already: */ 3415 else if (UI DownloaderUserManual::current())3416 else if (UINotificationDownloaderUserManual::exists()) 3416 3417 { 3417 3418 /// @todo show notification-center … … 3428 3429 gpNotificationCenter->append(pNotification); 3429 3430 } 3431 # endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 3430 3432 #endif /* #ifdef VBOX_OSE */ 3431 3433 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObject.cpp
r90556 r90590 17 17 18 18 /* GUI includes: */ 19 #include "UIDownloader.h"20 19 #include "UINotificationObject.h" 21 20 #include "UINotificationProgressTask.h" 21 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 22 # include "UIDownloader.h" 23 #endif 22 24 23 25 … … 107 109 108 110 111 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 109 112 /********************************************************************************************************************************* 110 113 * Class UINotificationDownloader implementation. * … … 178 181 emit sigProgressFailed(); 179 182 } 183 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObject.h
r90556 r90590 33 33 34 34 /* Forward declarations: */ 35 class UINotificationProgressTask; 36 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 35 37 class UIDownloader; 36 class UINotificationProgressTask; 38 #endif 37 39 38 40 /** QObject-based notification-object. */ … … 121 123 }; 122 124 125 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 123 126 /** UINotificationObject extension for notification-downloader. */ 124 127 class SHARED_LIBRARY_STUFF UINotificationDownloader : public UINotificationObject … … 185 188 QString m_strError; 186 189 }; 190 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 187 191 188 192 #endif /* !FEQT_INCLUDED_SRC_notificationcenter_UINotificationObject_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjectItem.cpp
r90556 r90590 272 272 273 273 274 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 274 275 /********************************************************************************************************************************* 275 276 * Class UINotificationDownloaderItem implementation. * … … 368 369 } 369 370 } 371 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 370 372 371 373 … … 379 381 if (pObject->inherits("UINotificationProgress")) 380 382 return new UINotificationProgressItem(pParent, static_cast<UINotificationProgress*>(pObject)); 383 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 381 384 if (pObject->inherits("UINotificationDownloader")) 382 385 return new UINotificationDownloaderItem(pParent, static_cast<UINotificationDownloader*>(pObject)); 386 #endif 383 387 /* Handle defaults: */ 384 388 return new UINotificationObjectItem(pParent, pObject); -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjectItem.h
r90556 r90590 32 32 class QIRichTextLabel; 33 33 class QIToolButton; 34 class UINotificationDownloader;35 34 class UINotificationObject; 36 35 class UINotificationProgress; 36 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 37 class UINotificationDownloader; 38 #endif 37 39 38 40 /** QWidget-based notification-object item. */ … … 110 112 }; 111 113 114 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 112 115 /** UINotificationObjectItem extension for notification-downloader. */ 113 116 class UINotificationDownloaderItem : public UINotificationObjectItem … … 144 147 void updateDetails(); 145 148 }; 149 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 146 150 147 151 /** Notification-object factory. */ -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp
r90569 r90590 1490 1490 1491 1491 1492 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 1492 1493 /********************************************************************************************************************************* 1493 1494 * Class UINotificationDownloaderExtensionPack implementation. * … … 1656 1657 return 0; 1657 1658 } 1659 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
r90568 r90590 1118 1118 }; 1119 1119 1120 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 1120 1121 /** UINotificationDownloader extension for extension pack downloading functionality. */ 1121 1122 class SHARED_LIBRARY_STUFF UINotificationDownloaderExtensionPack : public UINotificationDownloader … … 1256 1257 QString m_strFileName; 1257 1258 }; 1259 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 1258 1260 1259 1261 #endif /* !FEQT_INCLUDED_SRC_notificationcenter_UINotificationObjects_h */
Note:
See TracChangeset
for help on using the changeset viewer.