Changeset 89851 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 23, 2021 10:27:45 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145308
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r89582 r89851 624 624 { 625 625 alert(0, MessageType_Error, QString("<p>%1:</p>%2").arg(tr("Failed to find the following help file")).arg(strFileLocation)); 626 } 627 628 void UIMessageCenter::cannotEnumerateHostUSBDevices(const CHost &comHost, QWidget *pParent /* = 0 */) const 629 { 630 error(pParent, MessageType_Warning, 631 tr("Failed to enumerate host USB devices."), 632 UIErrorString::formatErrorInfo(comHost), "USBEnumerationWarning"); 626 633 } 627 634 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r88247 r89851 267 267 void cannotAcquireMachineParameter(const CMachine &comMachine, QWidget *pParent = 0) const; 268 268 void cannotFindHelpFile(const QString &strFileLocation) const; 269 void cannotEnumerateHostUSBDevices(const CHost &comHost, QWidget *pParent = 0) const; 269 270 270 271 /* API: Selector warnings: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r89585 r89851 81 81 82 82 /* COM includes: */ 83 #include "CHostUSBDevice.h" 83 84 #include "CSystemProperties.h" 84 85 #include "CUnattended.h" … … 703 704 } 704 705 706 void UIVirtualBoxManager::sltCheckUSBAccesibility() 707 { 708 CHost comHost = uiCommon().host(); 709 if (!comHost.isOk()) 710 return; 711 if (comHost.GetUSBDevices().size() == 0 && comHost.isWarning()) 712 msgCenter().cannotEnumerateHostUSBDevices(comHost, this); 713 } 714 705 715 void UIVirtualBoxManager::sltHandleChooserPaneIndexChange() 706 716 { … … 2165 2175 if (uiCommon().argumentUrlsPresent()) 2166 2176 QMetaObject::invokeMethod(this, "sltHandleOpenUrlCall", Qt::QueuedConnection); 2177 QMetaObject::invokeMethod(this, "sltCheckUSBAccesibility", Qt::QueuedConnection); 2167 2178 } 2168 2179 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.h
r89585 r89851 123 123 /** Handles call to open a @a list of URLs. */ 124 124 void sltHandleOpenUrlCall(QList<QUrl> list = QList<QUrl>()); 125 126 /** Checks if USB device list can be enumerated and host produces any warning during enumeration. */ 127 void sltCheckUSBAccesibility(); 125 128 126 129 /** Hnadles singal about Chooser-pane index change. */
Note:
See TracChangeset
for help on using the changeset viewer.