Changeset 98385 in vbox for trunk/src/VBox
- Timestamp:
- Feb 1, 2023 1:11:51 PM (23 months ago)
- Location:
- trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo
-
old new 19 19 /branches/dsen/gui2:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 20 20 /branches/dsen/gui3:79645-79692 21 /branches/dsen/gui4:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248 21 /branches/dsen/gui4:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285 22 22 /trunk/src:92342,154921
-
- Property svn:mergeinfo
-
trunk/src/VBox
- Property svn:mergeinfo
-
old new 19 19 /branches/dsen/gui2/src/VBox:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 20 20 /branches/dsen/gui3/src/VBox:79645-79692 21 /branches/dsen/gui4/src/VBox:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248 21 /branches/dsen/gui4/src/VBox:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285
-
- Property svn:mergeinfo
-
trunk/src/VBox/Frontends
- Property svn:mergeinfo
-
old new 16 16 /branches/dsen/gui2/src/VBox/Frontends:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 17 17 /branches/dsen/gui3/src/VBox/Frontends:79645-79692 18 /branches/dsen/gui4/src/VBox/Frontends:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248 18 /branches/dsen/gui4/src/VBox/Frontends:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285
-
- Property svn:mergeinfo
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r98384 r98385 498 498 setStateIcon(KDeviceActivity_Null, UIIconPool::iconSet(":/nw_disabled_16px.png")); 499 499 /* Configure machine state-change listener: */ 500 connect(m_p Session, &UISession::sigMachineStateChange,500 connect(m_pMachine, &UIMachine::sigMachineStateChange, 501 501 this, &UIIndicatorNetwork::sltHandleMachineStateChange); 502 502 /* Fetch maximum network adapters count: */ … … 1023 1023 1024 1024 /* Configure machine state-change listener: */ 1025 connect(m_p Session, &UISession::sigMachineStateChange,1025 connect(m_pMachine, &UIMachine::sigMachineStateChange, 1026 1026 this, &UIIndicatorFeatures::sltHandleMachineStateChange); 1027 1027 m_pTimerAutoUpdate = new QTimer(this); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r98384 r98385 1020 1020 1021 1021 /* Machine state-change updater: */ 1022 connect(ui session(), &UISession::sigMachineStateChange, this, &UIKeyboardHandler::sltMachineStateChanged);1022 connect(uimachine(), &UIMachine::sigMachineStateChange, this, &UIKeyboardHandler::sltMachineStateChanged); 1023 1023 1024 1024 /* Pressed keys: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r98384 r98385 404 404 void UIMachine::prepareSessionConnections() 405 405 { 406 /* Console events stuff: */ 407 connect(uisession(), &UISession::sigAudioAdapterChange, 408 this, &UIMachine::sigAudioAdapterChange); 409 connect(uisession(), &UISession::sigAdditionsStateChange, 410 this, &UIMachine::sigAdditionsStateChange); 411 connect(uisession(), &UISession::sigAdditionsStateActualChange, 412 this, &UIMachine::sigAdditionsStateActualChange); 413 connect(uisession(), &UISession::sigClipboardModeChange, 414 this, &UIMachine::sigClipboardModeChange); 415 connect(uisession(), &UISession::sigCPUExecutionCapChange, 416 this, &UIMachine::sigCPUExecutionCapChange); 417 connect(uisession(), &UISession::sigDnDModeChange, 418 this, &UIMachine::sigDnDModeChange); 419 connect(uisession(), &UISession::sigGuestMonitorChange, 420 this, &UIMachine::sigGuestMonitorChange); 421 connect(uisession(), &UISession::sigMachineStateChange, 422 this, &UIMachine::sigMachineStateChange); 423 connect(uisession(), &UISession::sigMediumChange, 424 this, &UIMachine::sigMediumChange); 425 connect(uisession(), &UISession::sigNetworkAdapterChange, 426 this, &UIMachine::sigNetworkAdapterChange); 427 connect(uisession(), &UISession::sigRecordingChange, 428 this, &UIMachine::sigRecordingChange); 429 connect(uisession(), &UISession::sigSharedFolderChange, 430 this, &UIMachine::sigSharedFolderChange); 431 connect(uisession(), &UISession::sigStorageDeviceChange, 432 this, &UIMachine::sigStorageDeviceChange); 433 connect(uisession(), &UISession::sigUSBControllerChange, 434 this, &UIMachine::sigUSBControllerChange); 435 connect(uisession(), &UISession::sigUSBDeviceStateChange, 436 this, &UIMachine::sigUSBDeviceStateChange); 437 connect(uisession(), &UISession::sigVRDEChange, 438 this, &UIMachine::sigVRDEChange); 439 connect(uisession(), &UISession::sigRuntimeError, 440 this, &UIMachine::sigRuntimeError); 441 #ifdef VBOX_WS_MAC 442 connect(uisession(), &UISession::sigShowWindows, 443 this, &UIMachine::sigShowWindows); 444 #endif 445 406 446 /* Keyboard stuff: */ 407 447 connect(uisession(), &UISession::sigKeyboardLedsChange, -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h
r98384 r98385 43 43 /* COM includes: */ 44 44 #include "COMEnums.h" 45 #include "CMediumAttachment.h" 46 #include "CNetworkAdapter.h" 47 #include "CUSBDevice.h" 45 48 46 49 /* Forward declarations: */ … … 59 62 /** Requests async visual-state change. */ 60 63 void sigRequestAsyncVisualStateChange(UIVisualStateType visualStateType); 64 65 /** @name COM events stuff. 66 ** @{ */ 67 /** Notifies about additions state change. */ 68 void sigAdditionsStateChange(); 69 /** Notifies about additions state actually change. */ 70 void sigAdditionsStateActualChange(); 71 /** Notifies about audio adapter change. */ 72 void sigAudioAdapterChange(); 73 /** Notifies about clipboard mode change. */ 74 void sigClipboardModeChange(KClipboardMode enmMode); 75 /** Notifies about CPU execution cap change. */ 76 void sigCPUExecutionCapChange(); 77 /** Notifies about DnD mode change. */ 78 void sigDnDModeChange(KDnDMode enmMode); 79 /** Notifies about guest monitor change. */ 80 void sigGuestMonitorChange(KGuestMonitorChangedEventType emnChangeType, ulong uScreenId, QRect screenGeo); 81 /** Notifies about machine change. */ 82 void sigMachineStateChange(); 83 /** Notifies about medium change. */ 84 void sigMediumChange(const CMediumAttachment &comMediumAttachment); 85 /** Notifies about network adapter change. */ 86 void sigNetworkAdapterChange(const CNetworkAdapter &comNetworkAdapter); 87 /** Notifies about recording change. */ 88 void sigRecordingChange(); 89 /** Notifies about shared folder change. */ 90 void sigSharedFolderChange(); 91 /** Handles storage device change signal. */ 92 void sigStorageDeviceChange(const CMediumAttachment &comAttachment, bool fRemoved, bool fSilent); 93 /** Handles USB controller change signal. */ 94 void sigUSBControllerChange(); 95 /** Handles USB device state change signal. */ 96 void sigUSBDeviceStateChange(const CUSBDevice &comDevice, bool fAttached, const CVirtualBoxErrorInfo &comError); 97 /** Notifies about VRDE change. */ 98 void sigVRDEChange(); 99 100 /** Notifies about runtime error happened. */ 101 void sigRuntimeError(bool bIsFatal, const QString &strErrorId, const QString &strMessage); 102 103 #ifdef VBOX_WS_MAC 104 /** Notifies about VM window should be shown. */ 105 void sigShowWindows(); 106 #endif 107 /** @} */ 61 108 62 109 /** @name Keyboard stuff. -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r98384 r98385 883 883 /* We should watch for requested modes: */ 884 884 connect(uisession(), &UISession::sigInitialized, this, &UIMachineLogic::sltCheckForRequestedVisualStateType, Qt::QueuedConnection); 885 connect(ui session(), &UISession::sigAdditionsStateChange, this, &UIMachineLogic::sltCheckForRequestedVisualStateType);885 connect(uimachine(), &UIMachine::sigAdditionsStateChange, this, &UIMachineLogic::sltCheckForRequestedVisualStateType); 886 886 887 887 /* We should watch for console events: */ 888 connect(ui session(), &UISession::sigMachineStateChange, this, &UIMachineLogic::sltMachineStateChanged);889 connect(ui session(), &UISession::sigAdditionsStateActualChange, this, &UIMachineLogic::sltAdditionsStateChanged);888 connect(uimachine(), &UIMachine::sigMachineStateChange, this, &UIMachineLogic::sltMachineStateChanged); 889 connect(uimachine(), &UIMachine::sigAdditionsStateActualChange, this, &UIMachineLogic::sltAdditionsStateChanged); 890 890 connect(uimachine(), &UIMachine::sigMouseCapabilityChange, this, &UIMachineLogic::sltMouseCapabilityChanged); 891 891 connect(uimachine(), &UIMachine::sigKeyboardLedsChange, this, &UIMachineLogic::sltKeyboardLedsChanged); 892 connect(ui session(), &UISession::sigUSBDeviceStateChange, this, &UIMachineLogic::sltUSBDeviceStateChange);893 connect(ui session(), &UISession::sigRuntimeError, this, &UIMachineLogic::sltRuntimeError);892 connect(uimachine(), &UIMachine::sigUSBDeviceStateChange, this, &UIMachineLogic::sltUSBDeviceStateChange); 893 connect(uimachine(), &UIMachine::sigRuntimeError, this, &UIMachineLogic::sltRuntimeError); 894 894 #ifdef VBOX_WS_MAC 895 connect(ui session(), &UISession::sigShowWindows, this, &UIMachineLogic::sltShowWindows);896 #endif /* VBOX_WS_MAC */897 connect(ui session(), &UISession::sigGuestMonitorChange, this, &UIMachineLogic::sltGuestMonitorChange);895 connect(uimachine(), &UIMachine::sigShowWindows, this, &UIMachineLogic::sltShowWindows); 896 #endif 897 connect(uimachine(), &UIMachine::sigGuestMonitorChange, this, &UIMachineLogic::sltGuestMonitorChange); 898 898 899 899 /* We should watch for host-screen-change events: */ … … 1433 1433 /* We should stop watching for requested modes: */ 1434 1434 disconnect(uisession(), &UISession::sigInitialized, this, &UIMachineLogic::sltCheckForRequestedVisualStateType); 1435 disconnect(ui session(), &UISession::sigAdditionsStateChange, this, &UIMachineLogic::sltCheckForRequestedVisualStateType);1435 disconnect(uimachine(), &UIMachine::sigAdditionsStateChange, this, &UIMachineLogic::sltCheckForRequestedVisualStateType); 1436 1436 1437 1437 /* We should stop watching for console events: */ 1438 disconnect(ui session(), &UISession::sigMachineStateChange, this, &UIMachineLogic::sltMachineStateChanged);1439 disconnect(ui session(), &UISession::sigAdditionsStateActualChange, this, &UIMachineLogic::sltAdditionsStateChanged);1438 disconnect(uimachine(), &UIMachine::sigMachineStateChange, this, &UIMachineLogic::sltMachineStateChanged); 1439 disconnect(uimachine(), &UIMachine::sigAdditionsStateActualChange, this, &UIMachineLogic::sltAdditionsStateChanged); 1440 1440 disconnect(uimachine(), &UIMachine::sigMouseCapabilityChange, this, &UIMachineLogic::sltMouseCapabilityChanged); 1441 1441 disconnect(uimachine(), &UIMachine::sigKeyboardLedsChange, this, &UIMachineLogic::sltKeyboardLedsChanged); 1442 disconnect(ui session(), &UISession::sigUSBDeviceStateChange, this, &UIMachineLogic::sltUSBDeviceStateChange);1443 disconnect(ui session(), &UISession::sigRuntimeError, this, &UIMachineLogic::sltRuntimeError);1442 disconnect(uimachine(), &UIMachine::sigUSBDeviceStateChange, this, &UIMachineLogic::sltUSBDeviceStateChange); 1443 disconnect(uimachine(), &UIMachine::sigRuntimeError, this, &UIMachineLogic::sltRuntimeError); 1444 1444 #ifdef VBOX_WS_MAC 1445 1445 disconnect(uisession(), &UISession::sigShowWindows, this, &UIMachineLogic::sltShowWindows); 1446 #endif /* VBOX_WS_MAC */1447 disconnect(ui session(), &UISession::sigGuestMonitorChange, this, &UIMachineLogic::sltGuestMonitorChange);1446 #endif 1447 disconnect(uimachine(), &UIMachine::sigGuestMonitorChange, this, &UIMachineLogic::sltGuestMonitorChange); 1448 1448 1449 1449 /* We should stop watching for host-screen-change events: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r98379 r98385 1385 1385 { 1386 1386 /* Machine state-change updater: */ 1387 connect(ui session(), &UISession::sigMachineStateChange, this, &UIMachineView::sltMachineStateChanged);1387 connect(uimachine(), &UIMachine::sigMachineStateChange, this, &UIMachineView::sltMachineStateChanged); 1388 1388 /* Mouse pointer shape updater: */ 1389 1389 connect(uimachine(), &UIMachine::sigMousePointerShapeChange, this, &UIMachineView::sltMousePointerShapeChange); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r98376 r98385 559 559 { 560 560 /* We should watch for console events: */ 561 connect(ui session(), &UISession::sigMachineStateChange, this, &UIMachineWindow::sltMachineStateChanged);561 connect(uimachine(), &UIMachine::sigMachineStateChange, this, &UIMachineWindow::sltMachineStateChanged); 562 562 } 563 563 … … 641 641 { 642 642 /* We should stop watching for console events: */ 643 disconnect(ui session(), &UISession::sigMachineStateChange, this, &UIMachineWindow::sltMachineStateChanged);643 disconnect(uimachine(), &UIMachine::sigMachineStateChange, this, &UIMachineWindow::sltMachineStateChanged); 644 644 } 645 645 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r98379 r98385 527 527 { 528 528 /* Machine state-change updater: */ 529 connect(ui session(), &UISession::sigMachineStateChange, this, &UIMouseHandler::sltMachineStateChanged);529 connect(uimachine(), &UIMachine::sigMachineStateChange, this, &UIMouseHandler::sltMachineStateChanged); 530 530 531 531 /* Mouse capability state-change updater: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r98384 r98385 612 612 emit sigAudioAdapterChange(); 613 613 614 }615 616 void UISession::sltClipboardModeChange(KClipboardMode enmMode)617 {618 emit sigClipboardModeChange(enmMode);619 }620 621 void UISession::sltDnDModeChange(KDnDMode enmMode)622 {623 emit sigDnDModeChange(enmMode);624 614 } 625 615 … … 920 910 m_pConsoleEventhandler = new UIConsoleEventHandler(this); 921 911 922 /* Add console event connections: */ 912 /* Console event connections: */ 913 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigAdditionsChange, 914 this, &UISession::sltAdditionsChange); 915 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigAudioAdapterChange, 916 this, &UISession::sltAudioAdapterChange); 917 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigClipboardModeChange, 918 this, &UISession::sigClipboardModeChange); 919 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigCPUExecutionCapChange, 920 this, &UISession::sigCPUExecutionCapChange); 921 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigDnDModeChange, 922 this, &UISession::sigDnDModeChange); 923 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigGuestMonitorChange, 924 this, &UISession::sltGuestMonitorChange); 925 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigMediumChange, 926 this, &UISession::sigMediumChange); 927 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigNetworkAdapterChange, 928 this, &UISession::sigNetworkAdapterChange); 929 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigRecordingChange, 930 this, &UISession::sltRecordingChange); 931 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigSharedFolderChange, 932 this, &UISession::sigSharedFolderChange); 933 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigStateChange, 934 this, &UISession::sltStateChange); 935 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigStorageDeviceChange, 936 this, &UISession::sltHandleStorageDeviceChange); 937 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigUSBControllerChange, 938 this, &UISession::sigUSBControllerChange); 939 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigUSBDeviceStateChange, 940 this, &UISession::sigUSBDeviceStateChange); 941 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigVRDEChange, 942 this, &UISession::sltVRDEChange); 943 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigRuntimeError, 944 this, &UISession::sigRuntimeError); 945 946 #ifdef VBOX_WS_MAC 947 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigShowWindow, 948 this, &UISession::sigShowWindows, Qt::QueuedConnection); 949 #endif 950 951 /* Console keyboard connections: */ 952 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigKeyboardLedsChange, 953 this, &UISession::sigKeyboardLedsChange); 954 955 /* Console mouse connections: */ 923 956 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigMousePointerShapeChange, 924 957 this, &UISession::sigMousePointerShapeChange); … … 927 960 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigCursorPositionChange, 928 961 this, &UISession::sigCursorPositionChange); 929 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigKeyboardLedsChange,930 this, &UISession::sigKeyboardLedsChange);931 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigStateChange,932 this, &UISession::sltStateChange);933 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigAdditionsChange,934 this, &UISession::sltAdditionsChange);935 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigVRDEChange,936 this, &UISession::sltVRDEChange);937 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigRecordingChange,938 this, &UISession::sltRecordingChange);939 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigNetworkAdapterChange,940 this, &UISession::sigNetworkAdapterChange);941 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigStorageDeviceChange,942 this, &UISession::sltHandleStorageDeviceChange);943 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigMediumChange,944 this, &UISession::sigMediumChange);945 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigUSBControllerChange,946 this, &UISession::sigUSBControllerChange);947 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigUSBDeviceStateChange,948 this, &UISession::sigUSBDeviceStateChange);949 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigSharedFolderChange,950 this, &UISession::sigSharedFolderChange);951 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigRuntimeError,952 this, &UISession::sigRuntimeError);953 #ifdef VBOX_WS_MAC954 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigShowWindow,955 this, &UISession::sigShowWindows, Qt::QueuedConnection);956 #endif /* VBOX_WS_MAC */957 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigCPUExecutionCapChange,958 this, &UISession::sigCPUExecutionCapChange);959 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigGuestMonitorChange,960 this, &UISession::sltGuestMonitorChange);961 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigAudioAdapterChange,962 this, &UISession::sltAudioAdapterChange);963 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigClipboardModeChange,964 this, &UISession::sltClipboardModeChange);965 connect(m_pConsoleEventhandler, &UIConsoleEventHandler::sigDnDModeChange,966 this, &UISession::sltDnDModeChange);967 962 } 968 963 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r98384 r98385 78 78 signals: 79 79 80 /** Notifies about frame-buffer resize. */ 81 void sigFrameBufferResize(); 82 83 /* Console callback signals: */ 80 /** Notifies listeners about session initialized. */ 81 void sigInitialized(); 82 83 /** Notifies about additions state change. */ 84 void sigAdditionsStateChange(); 85 /** Notifies about additions state actually change. */ 86 void sigAdditionsStateActualChange(); 87 /** Notifies about additions state actually change. */ 88 void sigAudioAdapterChange(); 89 /** Notifies about clipboard mode change. */ 90 void sigClipboardModeChange(KClipboardMode enmMode); 91 /** Notifies about CPU execution cap change. */ 92 void sigCPUExecutionCapChange(); 93 /** Notifies about DnD mode change. */ 94 void sigDnDModeChange(KDnDMode enmMode); 95 /** Notifies about guest monitor change. */ 96 void sigGuestMonitorChange(KGuestMonitorChangedEventType enmChangeType, ulong uScreenId, QRect screenGeo); 97 /** Notifies about machine change. */ 98 void sigMachineStateChange(); 99 /** Notifies about medium change. */ 100 void sigMediumChange(const CMediumAttachment &comMediumAttachment); 101 /** Notifies about network adapter change. */ 102 void sigNetworkAdapterChange(const CNetworkAdapter &comNetworkAdapter); 103 /** Notifies about recording change. */ 104 void sigRecordingChange(); 105 /** Notifies about shared folder change. */ 106 void sigSharedFolderChange(); 107 /** Notifies about storage device change for @a attachment, which was @a fRemoved and it was @a fSilent for guest. */ 108 void sigStorageDeviceChange(const CMediumAttachment &comAttachment, bool fRemoved, bool fSilent); 109 /** Handles USB controller change signal. */ 110 void sigUSBControllerChange(); 111 /** Handles USB device state change signal. */ 112 void sigUSBDeviceStateChange(const CUSBDevice &comDevice, bool fAttached, const CVirtualBoxErrorInfo &comError); 113 /** Notifies about VRDE change. */ 114 void sigVRDEChange(); 115 116 /** Notifies about runtime error happened. */ 117 void sigRuntimeError(bool fFatal, const QString &strErrorId, const QString &strMessage); 118 119 #ifdef VBOX_WS_MAC 120 /** Notifies about VM window should be shown. */ 121 void sigShowWindows(); 122 #endif 123 124 /** Notifies about keyboard LEDs change. */ 125 void sigKeyboardLedsChange(bool fNumLock, bool fCapsLock, bool fScrollLock); 126 84 127 /** Notifies listeners about mouse pointer shape change. */ 85 128 void sigMousePointerShapeChange(const UIMousePointerShapeData &shapeData); … … 90 133 /** Notifies listeners about cursor position change. */ 91 134 void sigCursorPositionChange(bool fContainsData, unsigned long uX, unsigned long uY); 92 void sigKeyboardLedsChange(bool fNumLock, bool fCapsLock, bool fScrollLock);93 void sigMachineStateChange();94 void sigAdditionsStateChange();95 void sigAdditionsStateActualChange();96 void sigNetworkAdapterChange(const CNetworkAdapter &networkAdapter);97 /** Notifies about storage device change for @a attachment, which was @a fRemoved and it was @a fSilent for guest. */98 void sigStorageDeviceChange(const CMediumAttachment &attachment, bool fRemoved, bool fSilent);99 void sigMediumChange(const CMediumAttachment &mediumAttachment);100 void sigVRDEChange();101 void sigRecordingChange();102 void sigUSBControllerChange();103 void sigUSBDeviceStateChange(const CUSBDevice &device, bool bIsAttached, const CVirtualBoxErrorInfo &error);104 void sigSharedFolderChange();105 void sigRuntimeError(bool bIsFatal, const QString &strErrorId, const QString &strMessage);106 #ifdef RT_OS_DARWIN107 void sigShowWindows();108 #endif /* RT_OS_DARWIN */109 void sigCPUExecutionCapChange();110 void sigGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo);111 void sigAudioAdapterChange();112 void sigClipboardModeChange(KClipboardMode enmMode);113 void sigDnDModeChange(KDnDMode enmMode);114 135 115 136 /** Notifies about host-screen count change. */ … … 120 141 void sigHostScreenAvailableAreaChange(); 121 142 122 /* Session signals:*/123 void sig Initialized();143 /** Notifies about frame-buffer resize. */ 144 void sigFrameBufferResize(); 124 145 125 146 public: … … 327 348 /** Handles audio adapter change. */ 328 349 void sltAudioAdapterChange(); 329 /** Handles clip board mode change. */330 void sltClipboardModeChange(KClipboardMode enmMode);331 /** Handles drag and drop mode change. */332 void sltDnDModeChange(KDnDMode enmMode);333 350 334 351 /* Handlers: Display reconfiguration stuff: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r98103 r98385 35 35 36 36 /* GUI includes: */ 37 #include "UIActionPoolRuntime.h" 38 #include "UIDesktopWidgetWatchdog.h" 39 #include "UIExtraDataManager.h" 40 #include "UIFrameBuffer.h" 41 #include "UIMachine.h" 42 #include "UIMachineLogicFullscreen.h" 43 #include "UIMachineViewFullscreen.h" 44 #include "UIMachineWindow.h" 37 45 #include "UISession.h" 38 #include "UIActionPoolRuntime.h"39 #include "UIMachineLogicFullscreen.h"40 #include "UIMachineWindow.h"41 #include "UIMachineViewFullscreen.h"42 #include "UIFrameBuffer.h"43 #include "UIExtraDataManager.h"44 #include "UIDesktopWidgetWatchdog.h"45 46 46 47 /* Other VBox includes: */ … … 118 119 119 120 /* Guest additions state-change updater: */ 120 connect(ui session(), &UISession::sigAdditionsStateActualChange, this, &UIMachineViewFullscreen::sltAdditionsStateChanged);121 connect(uimachine(), &UIMachine::sigAdditionsStateActualChange, this, &UIMachineViewFullscreen::sltAdditionsStateChanged); 121 122 } 122 123 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.cpp
r98103 r98385 41 41 #include "UIIconPool.h" 42 42 #include "UIInformationRuntime.h" 43 #include "UI Session.h"43 #include "UIMachine.h" 44 44 45 45 /* COM includes: */ 46 #include "CDisplay.h" 46 47 #include "CGraphicsAdapter.h" 47 48 #include "CGuest.h" 49 #include "CMachineDebugger.h" 48 50 #include "CVRDEServerInfo.h" 49 51 … … 497 499 *********************************************************************************************************************************/ 498 500 499 UIInformationRuntime::UIInformationRuntime(QWidget *pParent, const CMachine &machine, const CConsole &console, const UI Session *pSession)501 UIInformationRuntime::UIInformationRuntime(QWidget *pParent, const CMachine &machine, const CConsole &console, const UIMachine *pMachine) 500 502 : QIWithRetranslateUI<QWidget>(pParent) 501 503 , m_machine(machine) … … 507 509 if (!m_console.isNull()) 508 510 m_comGuest = m_console.GetGuest(); 509 connect(p Session, &UISession::sigAdditionsStateChange, this, &UIInformationRuntime::sltGuestAdditionsStateChange);510 connect(p Session, &UISession::sigGuestMonitorChange, this, &UIInformationRuntime::sltGuestMonitorChange);511 connect(p Session, &UISession::sigVRDEChange, this, &UIInformationRuntime::sltVRDEChange);512 connect(p Session, &UISession::sigClipboardModeChange, this, &UIInformationRuntime::sltClipboardChange);513 connect(p Session, &UISession::sigDnDModeChange, this, &UIInformationRuntime::sltDnDModeChange);511 connect(pMachine, &UIMachine::sigAdditionsStateChange, this, &UIInformationRuntime::sltGuestAdditionsStateChange); 512 connect(pMachine, &UIMachine::sigGuestMonitorChange, this, &UIInformationRuntime::sltGuestMonitorChange); 513 connect(pMachine, &UIMachine::sigVRDEChange, this, &UIInformationRuntime::sltVRDEChange); 514 connect(pMachine, &UIMachine::sigClipboardModeChange, this, &UIInformationRuntime::sltClipboardChange); 515 connect(pMachine, &UIMachine::sigDnDModeChange, this, &UIInformationRuntime::sltDnDModeChange); 514 516 515 517 prepareObjects(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.h
r98103 r98385 47 47 class QAction; 48 48 class QVBoxLayout; 49 class UI Session;49 class UIMachine; 50 50 class UIRuntimeInfoWidget; 51 51 … … 61 61 * @param machine is machine reference. 62 62 * @param console is machine console reference. */ 63 UIInformationRuntime(QWidget *pParent, const CMachine &machine, const CConsole &console, const UI Session *pSession);63 UIInformationRuntime(QWidget *pParent, const CMachine &machine, const CConsole &console, const UIMachine *pMachine); 64 64 65 65 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r98103 r98385 247 247 /* Create Runtime Information tab: */ 248 248 UIInformationRuntime *pInformationRuntimeWidget = 249 new UIInformationRuntime(this, m_pMachineWindow->machine(), m_pMachineWindow->console(), m_pMachineWindow->ui session());249 new UIInformationRuntime(this, m_pMachineWindow->machine(), m_pMachineWindow->console(), m_pMachineWindow->uimachine()); 250 250 if (pInformationRuntimeWidget) 251 251 { … … 259 259 if (pVMActivityMonitorWidget) 260 260 { 261 connect(m_pMachineWindow->ui session(), &UISession::sigAdditionsStateChange,261 connect(m_pMachineWindow->uimachine(), &UIMachine::sigAdditionsStateChange, 262 262 pVMActivityMonitorWidget, &UIVMActivityMonitor::sltGuestAdditionsStateChange); 263 263 m_tabs.insert(Tabs_ActivityMonitor, pVMActivityMonitorWidget); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r98103 r98385 34 34 35 35 /* GUI includes: */ 36 #include "UIActionPoolRuntime.h" 37 #include "UIDesktopWidgetWatchdog.h" 38 #include "UIExtraDataManager.h" 39 #include "UIFrameBuffer.h" 40 #include "UIMachine.h" 41 #include "UIMachineLogic.h" 42 #include "UIMachineViewNormal.h" 43 #include "UIMachineWindow.h" 36 44 #include "UISession.h" 37 #include "UIActionPoolRuntime.h"38 #include "UIMachineLogic.h"39 #include "UIMachineWindow.h"40 #include "UIMachineViewNormal.h"41 #include "UIFrameBuffer.h"42 #include "UIExtraDataManager.h"43 #include "UIDesktopWidgetWatchdog.h"44 45 45 46 /* Other VBox includes: */ … … 132 133 133 134 /* Guest additions state-change updater: */ 134 connect(ui session(), &UISession::sigAdditionsStateActualChange, this, &UIMachineViewNormal::sltAdditionsStateChanged);135 connect(uimachine(), &UIMachine::sigAdditionsStateActualChange, this, &UIMachineViewNormal::sltAdditionsStateChanged); 135 136 } 136 137 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r98375 r98385 44 44 #include "UIIndicatorsPool.h" 45 45 #include "UIKeyboardHandler.h" 46 #include "UIMachine.h" 46 47 #include "UIMouseHandler.h" 47 48 #include "UIMachineLogic.h" … … 254 255 UIMachineWindow::prepareSessionConnections(); 255 256 256 /* We should watchfor console events: */257 connect(machineLogic()->ui session(), &UISession::sigMediumChange,257 /* Start watching for console events: */ 258 connect(machineLogic()->uimachine(), &UIMachine::sigMediumChange, 258 259 this, &UIMachineWindowNormal::sltMediumChange); 259 connect(machineLogic()->ui session(), &UISession::sigUSBControllerChange,260 connect(machineLogic()->uimachine(), &UIMachine::sigUSBControllerChange, 260 261 this, &UIMachineWindowNormal::sltUSBControllerChange); 261 connect(machineLogic()->ui session(), &UISession::sigUSBDeviceStateChange,262 connect(machineLogic()->uimachine(), &UIMachine::sigUSBDeviceStateChange, 262 263 this, &UIMachineWindowNormal::sltUSBDeviceStateChange); 263 connect(machineLogic()->ui session(), &UISession::sigAudioAdapterChange,264 connect(machineLogic()->uimachine(), &UIMachine::sigAudioAdapterChange, 264 265 this, &UIMachineWindowNormal::sltAudioAdapterChange); 265 connect(machineLogic()->ui session(), &UISession::sigNetworkAdapterChange,266 connect(machineLogic()->uimachine(), &UIMachine::sigNetworkAdapterChange, 266 267 this, &UIMachineWindowNormal::sltNetworkAdapterChange); 267 connect(machineLogic()->ui session(), &UISession::sigSharedFolderChange,268 connect(machineLogic()->uimachine(), &UIMachine::sigSharedFolderChange, 268 269 this, &UIMachineWindowNormal::sltSharedFolderChange); 269 connect(machineLogic()->ui session(), &UISession::sigRecordingChange,270 connect(machineLogic()->uimachine(), &UIMachine::sigRecordingChange, 270 271 this, &UIMachineWindowNormal::sltRecordingChange); 271 connect(machineLogic()->ui session(), &UISession::sigCPUExecutionCapChange,272 connect(machineLogic()->uimachine(), &UIMachine::sigCPUExecutionCapChange, 272 273 this, &UIMachineWindowNormal::sltCPUExecutionCapChange); 274 275 /* Watch for UISession signals: */ 273 276 connect(machineLogic()->uisession(), &UISession::sigInitialized, 274 277 this, &UIMachineWindowNormal::sltHandleSessionInitialized); … … 459 462 void UIMachineWindowNormal::cleanupSessionConnections() 460 463 { 461 /* We should stop watching for console events: */462 disconnect(machineLogic()->ui session(), &UISession::sigMediumChange,464 /* Stop watching for console events: */ 465 disconnect(machineLogic()->uimachine(), &UIMachine::sigMediumChange, 463 466 this, &UIMachineWindowNormal::sltMediumChange); 464 disconnect(machineLogic()->ui session(), &UISession::sigUSBControllerChange,467 disconnect(machineLogic()->uimachine(), &UIMachine::sigUSBControllerChange, 465 468 this, &UIMachineWindowNormal::sltUSBControllerChange); 466 disconnect(machineLogic()->ui session(), &UISession::sigUSBDeviceStateChange,469 disconnect(machineLogic()->uimachine(), &UIMachine::sigUSBDeviceStateChange, 467 470 this, &UIMachineWindowNormal::sltUSBDeviceStateChange); 468 disconnect(machineLogic()->ui session(), &UISession::sigNetworkAdapterChange,471 disconnect(machineLogic()->uimachine(), &UIMachine::sigNetworkAdapterChange, 469 472 this, &UIMachineWindowNormal::sltNetworkAdapterChange); 470 disconnect(machineLogic()->ui session(), &UISession::sigAudioAdapterChange,473 disconnect(machineLogic()->uimachine(), &UIMachine::sigAudioAdapterChange, 471 474 this, &UIMachineWindowNormal::sltAudioAdapterChange); 472 disconnect(machineLogic()->ui session(), &UISession::sigSharedFolderChange,475 disconnect(machineLogic()->uimachine(), &UIMachine::sigSharedFolderChange, 473 476 this, &UIMachineWindowNormal::sltSharedFolderChange); 474 disconnect(machineLogic()->ui session(), &UISession::sigRecordingChange,477 disconnect(machineLogic()->uimachine(), &UIMachine::sigRecordingChange, 475 478 this, &UIMachineWindowNormal::sltRecordingChange); 476 disconnect(machineLogic()->ui session(), &UISession::sigCPUExecutionCapChange,479 disconnect(machineLogic()->uimachine(), &UIMachine::sigCPUExecutionCapChange, 477 480 this, &UIMachineWindowNormal::sltCPUExecutionCapChange); 478 481 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp
r98103 r98385 35 35 36 36 /* GUI includes: */ 37 #include "UIDesktopWidgetWatchdog.h" 38 #include "UIExtraDataManager.h" 39 #include "UIFrameBuffer.h" 40 #include "UIMachine.h" 41 #include "UIMachineLogicSeamless.h" 42 #include "UIMachineViewSeamless.h" 43 #include "UIMachineWindow.h" 37 44 #include "UISession.h" 38 #include "UIMachineLogicSeamless.h"39 #include "UIMachineWindow.h"40 #include "UIMachineViewSeamless.h"41 #include "UIFrameBuffer.h"42 #include "UIExtraDataManager.h"43 #include "UIDesktopWidgetWatchdog.h"44 45 45 46 /* COM includes: */ … … 129 130 130 131 /* Guest additions state-change updater: */ 131 connect(ui session(), &UISession::sigAdditionsStateActualChange, this, &UIMachineViewSeamless::sltAdditionsStateChanged);132 connect(uimachine(), &UIMachine::sigAdditionsStateActualChange, this, &UIMachineViewSeamless::sltAdditionsStateChanged); 132 133 } 133 134
Note:
See TracChangeset
for help on using the changeset viewer.