- Timestamp:
- Jun 17, 2013 12:52:13 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r46015 r46586 62 62 #include "CExtPackFile.h" 63 63 #include "CHostNetworkInterface.h" 64 #include "CVRDEServer.h" 64 65 #ifdef VBOX_WITH_DRAG_AND_DROP 65 66 # include "CGuest.h" … … 1978 1979 .arg(strDevice, strMachineName), 1979 1980 formatErrorInfo(errorInfo)); 1981 } 1982 1983 void UIMessageCenter::cannotToggleVRDEServer(const CVRDEServer &server, const QString &strMachineName, bool fEnable) 1984 { 1985 error(0, MessageType_Error, 1986 fEnable ? 1987 tr("Failed to enable the remote desktop server for the virtual machine <b>%1</b>.").arg(strMachineName) : 1988 tr("Failed to disable the remote desktop server for the virtual machine <b>%1</b>.").arg(strMachineName), 1989 formatErrorInfo(server)); 1980 1990 } 1981 1991 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r45690 r46586 298 298 void cannotDetachUSBDevice(const CConsole &console, const QString &strDevice) const; 299 299 void cannotDetachUSBDevice(const CVirtualBoxErrorInfo &errorInfo, const QString &strDevice, const QString &strMachineName) const; 300 void cannotToggleVRDEServer(const CVRDEServer &server, const QString &strMachineName, bool fEnable); 300 301 void remindAboutGuestAdditionsAreNotActive() const; 301 302 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r46582 r46586 1892 1892 void UIMachineLogic::sltSwitchVrde(bool fOn) 1893 1893 { 1894 /* Enable VRDE server if possible: */ 1895 CVRDEServer server = session().GetMachine().GetVRDEServer(); 1894 /* Prepare variables: */ 1895 CMachine machine = session().GetMachine(); 1896 CVRDEServer server = machine.GetVRDEServer(); 1896 1897 AssertMsg(!server.isNull(), ("VRDE server should not be null!\n")); 1898 1899 /* Toggle VRDE server state: */ 1897 1900 server.SetEnabled(fOn); 1901 if (!server.isOk()) 1902 { 1903 /* Notify about the error: */ 1904 msgCenter().cannotToggleVRDEServer(server, machine.GetName(), fOn); 1905 /* Make sure action is updated! */ 1906 uisession()->updateStatusVRDE(); 1907 } 1898 1908 } 1899 1909 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r46542 r46586 168 168 void setFrameBuffer(ulong uScreenId, UIFrameBuffer* pFrameBuffer); 169 169 170 /* Temporary API: VRDE stuff: */ 171 void updateStatusVRDE() { sltVRDEChange(); } 172 170 173 signals: 171 174
Note:
See TracChangeset
for help on using the changeset viewer.