Changeset 57128 in vbox
- Timestamp:
- Jul 30, 2015 12:34:53 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 101866
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r56870 r57128 243 243 /* Cleanup action groups: */ 244 244 cleanupActionGroups(); 245 246 /* Cleanup session connections: */ 247 cleanupSessionConnections(); 245 248 } 246 249 … … 893 896 void UIMachineLogic::prepareSessionConnections() 894 897 { 895 /* We should watch for theVBoxSVC availability changes: */898 /* We should watch for VBoxSVC availability changes: */ 896 899 connect(&vboxGlobal(), SIGNAL(sigVBoxSVCAvailabilityChange()), 897 900 this, SLOT(sltHandleVBoxSVCAvailabilityChange())); 898 901 899 /* We should check for entering/exitingrequested modes: */902 /* We should watch for requested modes: */ 900 903 connect(uisession(), SIGNAL(sigInitialized()), this, SLOT(sltCheckForRequestedVisualStateType())); 901 904 connect(uisession(), SIGNAL(sigAdditionsStateChange()), this, SLOT(sltCheckForRequestedVisualStateType())); 902 905 903 /* Machine state-change updater: */906 /* We should watch for console events: */ 904 907 connect(uisession(), SIGNAL(sigMachineStateChange()), this, SLOT(sltMachineStateChanged())); 905 906 /* Guest additions state-change updater: */907 908 connect(uisession(), SIGNAL(sigAdditionsStateActualChange()), this, SLOT(sltAdditionsStateChanged())); 908 909 /* Mouse capability state-change updater: */910 909 connect(uisession(), SIGNAL(sigMouseCapabilityChange()), this, SLOT(sltMouseCapabilityChanged())); 911 912 /* Keyboard LEDs state-change updater: */913 910 connect(uisession(), SIGNAL(sigKeyboardLedsChange()), this, SLOT(sltKeyboardLedsChanged())); 914 915 /* USB devices state-change updater: */916 911 connect(uisession(), SIGNAL(sigUSBDeviceStateChange(const CUSBDevice &, bool, const CVirtualBoxErrorInfo &)), 917 912 this, SLOT(sltUSBDeviceStateChange(const CUSBDevice &, bool, const CVirtualBoxErrorInfo &))); 918 919 /* Runtime errors notifier: */920 913 connect(uisession(), SIGNAL(sigRuntimeError(bool, const QString &, const QString &)), 921 914 this, SLOT(sltRuntimeError(bool, const QString &, const QString &))); 922 923 915 #ifdef Q_WS_MAC 924 /* Show windows: */925 916 connect(uisession(), SIGNAL(sigShowWindows()), this, SLOT(sltShowWindows())); 926 917 #endif /* Q_WS_MAC */ 927 928 /* Guest-monitor-change updater: */929 918 connect(uisession(), SIGNAL(sigGuestMonitorChange(KGuestMonitorChangedEventType, ulong, QRect)), 930 919 this, SLOT(sltGuestMonitorChange(KGuestMonitorChangedEventType, ulong, QRect))); 931 920 932 /* Host-screen-change updaters: */921 /* We should watch for host-screen-change events: */ 933 922 connect(uisession(), SIGNAL(sigHostScreenCountChange()), this, SLOT(sltHostScreenCountChange())); 934 923 connect(uisession(), SIGNAL(sigHostScreenGeometryChange()), this, SLOT(sltHostScreenGeometryChange())); 935 924 connect(uisession(), SIGNAL(sigHostScreenAvailableAreaChange()), this, SLOT(sltHostScreenAvailableAreaChange())); 936 925 937 /* Frame-buffer connections: */926 /* We should notify about frame-buffer events: */ 938 927 connect(this, SIGNAL(sigFrameBufferResize()), uisession(), SIGNAL(sigFrameBufferResize())); 939 928 } … … 1282 1271 } 1283 1272 1273 void UIMachineLogic::cleanupSessionConnections() 1274 { 1275 /* We should stop watching for VBoxSVC availability changes: */ 1276 disconnect(&vboxGlobal(), SIGNAL(sigVBoxSVCAvailabilityChange()), 1277 this, SLOT(sltHandleVBoxSVCAvailabilityChange())); 1278 1279 /* We should stop watching for requested modes: */ 1280 disconnect(uisession(), SIGNAL(sigInitialized()), this, SLOT(sltCheckForRequestedVisualStateType())); 1281 disconnect(uisession(), SIGNAL(sigAdditionsStateChange()), this, SLOT(sltCheckForRequestedVisualStateType())); 1282 1283 /* We should stop watching for console events: */ 1284 disconnect(uisession(), SIGNAL(sigMachineStateChange()), this, SLOT(sltMachineStateChanged())); 1285 disconnect(uisession(), SIGNAL(sigAdditionsStateActualChange()), this, SLOT(sltAdditionsStateChanged())); 1286 disconnect(uisession(), SIGNAL(sigMouseCapabilityChange()), this, SLOT(sltMouseCapabilityChanged())); 1287 disconnect(uisession(), SIGNAL(sigKeyboardLedsChange()), this, SLOT(sltKeyboardLedsChanged())); 1288 disconnect(uisession(), SIGNAL(sigUSBDeviceStateChange(const CUSBDevice &, bool, const CVirtualBoxErrorInfo &)), 1289 this, SLOT(sltUSBDeviceStateChange(const CUSBDevice &, bool, const CVirtualBoxErrorInfo &))); 1290 disconnect(uisession(), SIGNAL(sigRuntimeError(bool, const QString &, const QString &)), 1291 this, SLOT(sltRuntimeError(bool, const QString &, const QString &))); 1292 #ifdef Q_WS_MAC 1293 disconnect(uisession(), SIGNAL(sigShowWindows()), this, SLOT(sltShowWindows())); 1294 #endif /* Q_WS_MAC */ 1295 disconnect(uisession(), SIGNAL(sigGuestMonitorChange(KGuestMonitorChangedEventType, ulong, QRect)), 1296 this, SLOT(sltGuestMonitorChange(KGuestMonitorChangedEventType, ulong, QRect))); 1297 1298 /* We should stop watching for host-screen-change events: */ 1299 disconnect(uisession(), SIGNAL(sigHostScreenCountChange()), this, SLOT(sltHostScreenCountChange())); 1300 disconnect(uisession(), SIGNAL(sigHostScreenGeometryChange()), this, SLOT(sltHostScreenGeometryChange())); 1301 disconnect(uisession(), SIGNAL(sigHostScreenAvailableAreaChange()), this, SLOT(sltHostScreenAvailableAreaChange())); 1302 1303 /* We should stop notify about frame-buffer events: */ 1304 disconnect(this, SIGNAL(sigFrameBufferResize()), uisession(), SIGNAL(sigFrameBufferResize())); 1305 } 1306 1284 1307 bool UIMachineLogic::eventFilter(QObject *pWatched, QEvent *pEvent) 1285 1308 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r56443 r57128 239 239 virtual void cleanupActionConnections() {} 240 240 virtual void cleanupActionGroups() {} 241 //virtual void cleanupSessionConnections() {}241 virtual void cleanupSessionConnections(); 242 242 //virtual void cleanupRequiredFeatures() {} 243 243
Note:
See TracChangeset
for help on using the changeset viewer.