Changeset 57873 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 23, 2015 3:56:45 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.cpp
r57364 r57873 44 44 # include "CStateChangedEvent.h" 45 45 # include "CNetworkAdapterChangedEvent.h" 46 # include "CStorageDeviceChangedEvent.h" 46 47 # include "CMediumChangedEvent.h" 47 48 # include "CUSBDevice.h" … … 187 188 break; 188 189 } 190 case KVBoxEventType_OnStorageDeviceChanged: 191 { 192 CStorageDeviceChangedEvent es(pEvent); 193 emit sigStorageDeviceChange(es.GetStorageDevice(), es.GetRemoved(), es.GetSilent()); 194 break; 195 } 189 196 case KVBoxEventType_OnMediumChanged: 190 197 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.h
r55554 r57873 85 85 /** Notifies about network @a adapter state change. */ 86 86 void sigNetworkAdapterChange(CNetworkAdapter adapter); 87 /** Notifies about storage device change for @a attachment, which was @a fRemoved and it was @a fSilent for guest. */ 88 void sigStorageDeviceChange(CMediumAttachment attachment, bool fRemoved, bool fSilent); 87 89 /** Notifies about storage medium @a attachment state change. */ 88 90 void sigMediumChange(CMediumAttachment attachment); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIConsoleEventHandler.cpp
r52998 r57873 118 118 << KVBoxEventType_OnAdditionsStateChanged 119 119 << KVBoxEventType_OnNetworkAdapterChanged 120 << KVBoxEventType_OnStorageDeviceChanged 120 121 << KVBoxEventType_OnMediumChanged 121 122 << KVBoxEventType_OnVRDEServerChanged … … 152 153 this, SIGNAL(sigNetworkAdapterChange(CNetworkAdapter)), 153 154 Qt::QueuedConnection); 155 connect(pListener->getWrapped(), SIGNAL(sigStorageDeviceChange(CMediumAttachment, bool, bool)), 156 this, SIGNAL(sigStorageDeviceChange(CMediumAttachment, bool, bool)), 157 Qt::QueuedConnection); 154 158 connect(pListener->getWrapped(), SIGNAL(sigMediumChange(CMediumAttachment)), 155 159 this, SIGNAL(sigMediumChange(CMediumAttachment)), -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIConsoleEventHandler.h
r55401 r57873 49 49 /** Notifies about network @a adapter state change. */ 50 50 void sigNetworkAdapterChange(CNetworkAdapter adapter); 51 /** Notifies about storage device change for @a attachment, which was @a fRemoved and it was @a fSilent for guest. */ 52 void sigStorageDeviceChange(CMediumAttachment attachment, bool fRemoved, bool fSilent); 51 53 /** Notifies about storage medium @a attachment state change. */ 52 54 void sigMediumChange(CMediumAttachment attachment); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r57805 r57873 772 772 /* Notify listeners about the change: */ 773 773 emit sigGuestMonitorChange(changeType, uScreenId, screenGeo); 774 } 775 776 void UISession::sltHandleStorageDeviceChange(const CMediumAttachment &attachment, bool fRemoved, bool fSilent) 777 { 778 /* Notify listeners about storage device change: */ 779 emit sigStorageDeviceChange(attachment, fRemoved, fSilent); 774 780 } 775 781 … … 1192 1198 this, SIGNAL(sigNetworkAdapterChange(CNetworkAdapter))); 1193 1199 1200 connect(gConsoleEvents, SIGNAL(sigStorageDeviceChange(CMediumAttachment, bool, bool)), 1201 this, SLOT(sltHandleStorageDeviceChange(CMediumAttachment, bool, bool))); 1202 1194 1203 connect(gConsoleEvents, SIGNAL(sigMediumChange(CMediumAttachment)), 1195 1204 this, SIGNAL(sigMediumChange(CMediumAttachment))); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r57495 r57873 262 262 void sigAdditionsStateActualChange(); 263 263 void sigNetworkAdapterChange(const CNetworkAdapter &networkAdapter); 264 /** Notifies about storage device change for @a attachment, which was @a fRemoved and it was @a fSilent for guest. */ 265 void sigStorageDeviceChange(const CMediumAttachment &attachment, bool fRemoved, bool fSilent); 264 266 void sigMediumChange(const CMediumAttachment &mediumAttachment); 265 267 void sigVRDEChange(); … … 317 319 void sltVideoCaptureChange(); 318 320 void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 321 /** Handles storage device change for @a attachment, which was @a fRemoved and it was @a fSilent for guest. */ 322 void sltHandleStorageDeviceChange(const CMediumAttachment &attachment, bool fRemoved, bool fSilent); 319 323 320 324 /* Handlers: Display reconfiguration stuff: */
Note:
See TracChangeset
for help on using the changeset viewer.