Changeset 29363 in vbox
- Timestamp:
- May 11, 2010 3:12:07 PM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r29326 r29363 3878 3878 * @note Locks this object for writing. 3879 3879 */ 3880 HRESULT Console::onVRDPServerChange( )3880 HRESULT Console::onVRDPServerChange(BOOL aRestart) 3881 3881 { 3882 3882 AutoCaller autoCaller(this); … … 3899 3899 ComAssertComRCRetRC(rc); 3900 3900 3901 /* VRDP server may call this Console object back from other threads (VRDP INPUT or OUTPUT). */ 3902 alock.leave(); 3903 3904 if (vrdpEnabled) 3905 { 3906 // If there was no VRDP server started the 'stop' will do nothing. 3907 // However if a server was started and this notification was called, 3908 // we have to restart the server. 3909 mConsoleVRDPServer->Stop(); 3910 3911 if (RT_FAILURE(mConsoleVRDPServer->Launch())) 3901 if (aRestart) 3902 { 3903 /* VRDP server may call this Console object back from other threads (VRDP INPUT or OUTPUT). */ 3904 alock.leave(); 3905 3906 if (vrdpEnabled) 3912 3907 { 3913 rc = E_FAIL; 3908 // If there was no VRDP server started the 'stop' will do nothing. 3909 // However if a server was started and this notification was called, 3910 // we have to restart the server. 3911 mConsoleVRDPServer->Stop(); 3912 3913 if (RT_FAILURE(mConsoleVRDPServer->Launch())) 3914 { 3915 rc = E_FAIL; 3916 } 3917 else 3918 { 3919 mConsoleVRDPServer->EnableConnections(); 3920 } 3914 3921 } 3915 3922 else 3916 3923 { 3917 mConsoleVRDPServer-> EnableConnections();3924 mConsoleVRDPServer->Stop(); 3918 3925 } 3919 } 3920 else 3921 { 3922 mConsoleVRDPServer->Stop(); 3923 } 3924 3925 alock.enter(); 3926 3927 alock.enter(); 3928 } 3926 3929 } 3927 3930 -
trunk/src/VBox/Main/MachineImpl.cpp
r29354 r29363 8929 8929 8930 8930 if (flModifications & IsModified_VRDPServer) 8931 that->onVRDPServerChange( );8931 that->onVRDPServerChange(/* aRestart */ TRUE); 8932 8932 if (flModifications & IsModified_USB) 8933 8933 that->onUSBControllerChange(); … … 10565 10565 * @note Locks this object for reading. 10566 10566 */ 10567 HRESULT SessionMachine::onVRDPServerChange( )10567 HRESULT SessionMachine::onVRDPServerChange(BOOL aRestart) 10568 10568 { 10569 10569 LogFlowThisFunc(("\n")); … … 10582 10582 return S_OK; 10583 10583 10584 return directControl->OnVRDPServerChange( );10584 return directControl->OnVRDPServerChange(aRestart); 10585 10585 } 10586 10586 -
trunk/src/VBox/Main/SessionImpl.cpp
r28835 r29363 582 582 } 583 583 584 STDMETHODIMP Session::OnVRDPServerChange( )584 STDMETHODIMP Session::OnVRDPServerChange(BOOL aRestart) 585 585 { 586 586 LogFlowThisFunc(("\n")); … … 593 593 AssertReturn(mType == SessionType_Direct, VBOX_E_INVALID_OBJECT_STATE); 594 594 595 return mConsole->onVRDPServerChange( );595 return mConsole->onVRDPServerChange(aRestart); 596 596 } 597 597 -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r29354 r29363 13148 13148 <interface 13149 13149 name="IInternalSessionControl" extends="$unknown" 13150 uuid=" cc8d63a0-568e-45dd-9bf6-6354049ece1e"13150 uuid="ab161f72-e4b3-44e6-a919-2256474bda66" 13151 13151 internal="yes" 13152 13152 wsmap="suppress" … … 13341 13341 13342 13342 </desc> 13343 <param name="restart" type="boolean" dir="in"> 13344 <desc>Flag whether the server must be restarted</desc> 13345 </param> 13343 13346 </method> 13344 13347 -
trunk/src/VBox/Main/include/ConsoleImpl.h
r29224 r29363 175 175 HRESULT onMediumChange(IMediumAttachment *aMediumAttachment, BOOL aForce); 176 176 HRESULT onCPUChange(ULONG aCPU, BOOL aRemove); 177 HRESULT onVRDPServerChange( );177 HRESULT onVRDPServerChange(BOOL aRestart); 178 178 HRESULT onUSBControllerChange(); 179 179 HRESULT onSharedFolderChange(BOOL aGlobal); -
trunk/src/VBox/Main/include/MachineImpl.h
r29354 r29363 605 605 virtual HRESULT onSerialPortChange(ISerialPort * /* serialPort */) { return S_OK; } 606 606 virtual HRESULT onParallelPortChange(IParallelPort * /* parallelPort */) { return S_OK; } 607 virtual HRESULT onVRDPServerChange( ) { return S_OK; }607 virtual HRESULT onVRDPServerChange(BOOL /* aRestart */) { return S_OK; } 608 608 virtual HRESULT onUSBControllerChange() { return S_OK; } 609 609 virtual HRESULT onStorageControllerChange() { return S_OK; } … … 943 943 HRESULT onParallelPortChange(IParallelPort *parallelPort); 944 944 HRESULT onCPUChange(ULONG aCPU, BOOL aRemove); 945 HRESULT onVRDPServerChange( );945 HRESULT onVRDPServerChange(BOOL aRestart); 946 946 HRESULT onUSBControllerChange(); 947 947 HRESULT onUSBDeviceAttach(IUSBDevice *aDevice, -
trunk/src/VBox/Main/include/SessionImpl.h
r28835 r29363 93 93 STDMETHOD(OnMediumChange)(IMediumAttachment *aMediumAttachment, BOOL aForce); 94 94 STDMETHOD(OnCPUChange)(ULONG aCPU, BOOL aRemove); 95 STDMETHOD(OnVRDPServerChange)( );95 STDMETHOD(OnVRDPServerChange)(BOOL aRestart); 96 96 STDMETHOD(OnUSBControllerChange)(); 97 97 STDMETHOD(OnSharedFolderChange)(BOOL aGlobal);
Note:
See TracChangeset
for help on using the changeset viewer.