Changeset 77986 in vbox
- Timestamp:
- Apr 2, 2019 4:53:28 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/UIMainEventListener.cpp
r76606 r77986 44 44 #include "CMachineRegisteredEvent.h" 45 45 #include "CMediumChangedEvent.h" 46 #include "CMediumConfigChangedEvent.h" 47 #include "CMediumRegisteredEvent.h" 46 48 #include "CMouseCapabilityChangedEvent.h" 47 49 #include "CMousePointerShapeChangedEvent.h" … … 57 59 #include "CSnapshotTakenEvent.h" 58 60 #include "CStateChangedEvent.h" 61 #include "CStorageControllerChangedEvent.h" 59 62 #include "CStorageDeviceChangedEvent.h" 60 63 #include "CUSBDevice.h" … … 279 282 break; 280 283 } 281 // case KVBoxEventType_OnMediumRegistered:282 // case KVBoxEventType_OnGuestPropertyChange:283 284 284 285 case KVBoxEventType_OnExtraDataCanChange: … … 301 302 } 302 303 304 case KVBoxEventType_OnStorageControllerChanged: 305 { 306 CStorageControllerChangedEvent comEventSpecific(pEvent); 307 emit sigStorageControllerChange(); 308 break; 309 } 310 case KVBoxEventType_OnStorageDeviceChanged: 311 { 312 CStorageDeviceChangedEvent comEventSpecific(pEvent); 313 emit sigStorageDeviceChange(comEventSpecific.GetStorageDevice(), 314 comEventSpecific.GetRemoved(), 315 comEventSpecific.GetSilent()); 316 break; 317 } 318 case KVBoxEventType_OnMediumChanged: 319 { 320 CMediumChangedEvent comEventSpecific(pEvent); 321 emit sigMediumChange(comEventSpecific.GetMediumAttachment()); 322 break; 323 } 324 case KVBoxEventType_OnMediumConfigChanged: 325 { 326 CMediumConfigChangedEvent comEventSpecific(pEvent); 327 emit sigMediumConfigChange(comEventSpecific.GetMedium()); 328 break; 329 } 330 case KVBoxEventType_OnMediumRegistered: 331 { 332 CMediumRegisteredEvent comEventSpecific(pEvent); 333 emit sigMediumRegistered(comEventSpecific.GetMediumId(), 334 comEventSpecific.GetMediumType(), 335 comEventSpecific.GetRegistered()); 336 break; 337 } 338 303 339 case KVBoxEventType_OnMousePointerShapeChanged: 304 340 { … … 347 383 CNetworkAdapterChangedEvent comEventSpecific(pEvent); 348 384 emit sigNetworkAdapterChange(comEventSpecific.GetNetworkAdapter()); 349 break;350 }351 case KVBoxEventType_OnStorageDeviceChanged:352 {353 CStorageDeviceChangedEvent comEventSpecific(pEvent);354 emit sigStorageDeviceChange(comEventSpecific.GetStorageDevice(),355 comEventSpecific.GetRemoved(),356 comEventSpecific.GetSilent());357 break;358 }359 case KVBoxEventType_OnMediumChanged:360 {361 CMediumChangedEvent comEventSpecific(pEvent);362 emit sigMediumChange(comEventSpecific.GetMediumAttachment());363 385 break; 364 386 } … … 440 462 break; 441 463 } 464 442 465 case KVBoxEventType_OnProgressPercentageChanged: 443 466 { … … 452 475 break; 453 476 } 477 454 478 case KVBoxEventType_OnGuestSessionRegistered: 455 479 { 456 457 480 CGuestSessionRegisteredEvent comEventSpecific(pEvent); 458 481 if (comEventSpecific.GetRegistered()) … … 489 512 break; 490 513 } 491 492 514 case KVBoxEventType_OnGuestFileRegistered: 493 515 case KVBoxEventType_OnGuestFileStateChanged: -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.h
r76581 r77986 104 104 /** @} */ 105 105 106 /** @name VirtualBox Medium related signals 107 * @{ */ 108 /** Notifies about storage controller change. */ 109 void sigStorageControllerChange(); 110 /** Notifies about storage device change. 111 * @param comAttachment Brings corresponding attachment. 112 * @param fRemoved Brings whether medium is removed or added. 113 * @param fSilent Brings whether this change has gone silent for guest. */ 114 void sigStorageDeviceChange(CMediumAttachment comAttachment, bool fRemoved, bool fSilent); 115 116 /** Notifies about storage medium @a comAttachment state change. */ 117 void sigMediumChange(CMediumAttachment comAttachment); 118 /** Notifies about storage @a comMedium config change. */ 119 void sigMediumConfigChange(const CMedium &comMedium); 120 /** Notifies about storage medium is (un)registered. 121 * @param uMediumId Brings corresponding medium ID. 122 * @param enmMediumType Brings corresponding medium type. 123 * @param fRegistered Brings whether medium is registered or unregistered. */ 124 void sigMediumRegistered(const QUuid &uMediumId, KDeviceType enmMediumType, bool fRegistered); 125 /** @} */ 126 106 127 /** @name Console related signals 107 128 * @{ */ … … 121 142 /** Notifies about network @a adapter state change. */ 122 143 void sigNetworkAdapterChange(CNetworkAdapter comAdapter); 123 /** Notifies about storage device change for @a attachment, which was @a fRemoved and it was @a fSilent for guest. */124 void sigStorageDeviceChange(CMediumAttachment comAttachment, bool fRemoved, bool fSilent);125 /** Notifies about storage medium @a attachment state change. */126 void sigMediumChange(CMediumAttachment comAttachment);127 144 /** Notifies about VRDE device state change. */ 128 145 void sigVRDEChange();
Note:
See TracChangeset
for help on using the changeset viewer.