Changeset 77990 in vbox
- Timestamp:
- Apr 3, 2019 12:01:58 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVirtualBoxEventHandler.cpp
r76606 r77990 57 57 void sigSnapshotRestore(const QUuid &uId, const QUuid &uSnapshotId); 58 58 59 /** Notifies about storage controller change. */ 60 void sigStorageControllerChange(); 61 /** Notifies about storage device change. 62 * @param comAttachment Brings corresponding attachment. 63 * @param fRemoved Brings whether medium is removed or added. 64 * @param fSilent Brings whether this change has gone silent for guest. */ 65 void sigStorageDeviceChange(CMediumAttachment comAttachment, bool fRemoved, bool fSilent); 66 /** Notifies about storage medium @a comAttachment state change. */ 67 void sigMediumChange(CMediumAttachment comAttachment); 68 /** Notifies about storage @a comMedium config change. */ 69 void sigMediumConfigChange(CMedium comMedium); 70 /** Notifies about storage medium is (un)registered. 71 * @param uMediumId Brings corresponding medium ID. 72 * @param enmMediumType Brings corresponding medium type. 73 * @param fRegistered Brings whether medium is registered or unregistered. */ 74 void sigMediumRegistered(const QUuid &uMediumId, KDeviceType enmMediumType, bool fRegistered); 75 59 76 public: 60 77 … … 158 175 << KVBoxEventType_OnSnapshotDeleted 159 176 << KVBoxEventType_OnSnapshotChanged 160 << KVBoxEventType_OnSnapshotRestored; 177 << KVBoxEventType_OnSnapshotRestored 178 << KVBoxEventType_OnStorageControllerChanged 179 << KVBoxEventType_OnStorageDeviceChanged 180 << KVBoxEventType_OnMediumChanged 181 << KVBoxEventType_OnMediumConfigChanged 182 << KVBoxEventType_OnMediumRegistered; 161 183 162 184 /* Register event listener for event source aggregator: */ … … 175 197 void UIVirtualBoxEventHandlerProxy::prepareConnections() 176 198 { 177 /* Create direct (sync) connections for signals of main listener: */ 199 /* Create direct (sync) connections for signals of main event listener. 200 * Keep in mind that the abstract Qt4 connection notation should be used here. */ 178 201 connect(m_pQtListener->getWrapped(), SIGNAL(sigVBoxSVCAvailabilityChange(bool)), 179 202 this, SIGNAL(sigVBoxSVCAvailabilityChange(bool)), … … 202 225 connect(m_pQtListener->getWrapped(), SIGNAL(sigSnapshotRestore(QUuid, QUuid)), 203 226 this, SIGNAL(sigSnapshotRestore(QUuid, QUuid)), 227 Qt::DirectConnection); 228 connect(m_pQtListener->getWrapped(), SIGNAL(sigStorageControllerChange()), 229 this, SIGNAL(sigStorageControllerChange()), 230 Qt::DirectConnection); 231 connect(m_pQtListener->getWrapped(), SIGNAL(sigStorageDeviceChange(CMediumAttachment, bool, bool)), 232 this, SIGNAL(sigStorageDeviceChange(CMediumAttachment, bool, bool)), 233 Qt::DirectConnection); 234 connect(m_pQtListener->getWrapped(), SIGNAL(sigMediumChange(CMediumAttachment)), 235 this, SIGNAL(sigMediumChange(CMediumAttachment)), 236 Qt::DirectConnection); 237 connect(m_pQtListener->getWrapped(), SIGNAL(sigMediumConfigChange(CMedium)), 238 this, SIGNAL(sigMediumConfigChange(CMedium)), 239 Qt::DirectConnection); 240 connect(m_pQtListener->getWrapped(), SIGNAL(sigMediumRegistered(const QUuid &, KDeviceType, bool)), 241 this, SIGNAL(sigMediumRegistered(const QUuid &, KDeviceType, bool)), 204 242 Qt::DirectConnection); 205 243 } … … 272 310 void UIVirtualBoxEventHandler::prepareConnections() 273 311 { 274 /* Create queued (async) connections for signals of event proxy object: */ 312 /* Create queued (async) connections for signals of event proxy object. 313 * Keep in mind that the abstract Qt4 connection notation should be used here. */ 275 314 connect(m_pProxy, SIGNAL(sigVBoxSVCAvailabilityChange(bool)), 276 315 this, SIGNAL(sigVBoxSVCAvailabilityChange(bool)), … … 300 339 this, SIGNAL(sigSnapshotRestore(QUuid, QUuid)), 301 340 Qt::QueuedConnection); 341 connect(m_pProxy, SIGNAL(sigStorageControllerChange()), 342 this, SIGNAL(sigStorageControllerChange()), 343 Qt::QueuedConnection); 344 connect(m_pProxy, SIGNAL(sigStorageDeviceChange(CMediumAttachment, bool, bool)), 345 this, SIGNAL(sigStorageDeviceChange(CMediumAttachment, bool, bool)), 346 Qt::QueuedConnection); 347 connect(m_pProxy, SIGNAL(sigMediumChange(CMediumAttachment)), 348 this, SIGNAL(sigMediumChange(CMediumAttachment)), 349 Qt::QueuedConnection); 350 connect(m_pProxy, SIGNAL(sigMediumConfigChange(CMedium)), 351 this, SIGNAL(sigMediumConfigChange(CMedium)), 352 Qt::QueuedConnection); 353 connect(m_pProxy, SIGNAL(sigMediumRegistered(const QUuid &, KDeviceType, bool)), 354 this, SIGNAL(sigMediumRegistered(const QUuid &, KDeviceType, bool)), 355 Qt::QueuedConnection); 302 356 } 303 357 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVirtualBoxEventHandler.h
r76581 r77990 30 30 /* COM includes: */ 31 31 #include "COMEnums.h" 32 #include "CMedium.h" 33 #include "CMediumAttachment.h" 32 34 33 35 /* Forward declarations: */ … … 62 64 void sigSnapshotRestore(const QUuid &uId, const QUuid &uSnapshotId); 63 65 66 /** Notifies about storage controller change. */ 67 void sigStorageControllerChange(); 68 /** Notifies about storage device change. 69 * @param comAttachment Brings corresponding attachment. 70 * @param fRemoved Brings whether medium is removed or added. 71 * @param fSilent Brings whether this change has gone silent for guest. */ 72 void sigStorageDeviceChange(CMediumAttachment comAttachment, bool fRemoved, bool fSilent); 73 /** Notifies about storage medium @a comAttachment state change. */ 74 void sigMediumChange(CMediumAttachment comAttachment); 75 /** Notifies about storage @a comMedium config change. */ 76 void sigMediumConfigChange(CMedium comMedium); 77 /** Notifies about storage medium is (un)registered. 78 * @param uMediumId Brings corresponding medium ID. 79 * @param enmMediumType Brings corresponding medium type. 80 * @param fRegistered Brings whether medium is registered or unregistered. */ 81 void sigMediumRegistered(const QUuid &uMediumId, KDeviceType enmMediumType, bool fRegistered); 82 64 83 public: 65 84
Note:
See TracChangeset
for help on using the changeset viewer.