Changeset 23643 in vbox
- Timestamp:
- Oct 9, 2009 12:23:32 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 53341
- Location:
- trunk
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/settings.h
r23600 r23643 234 234 VRDPSettings() 235 235 : fEnabled(true), 236 ulPort(0),237 236 authType(VRDPAuthType_Null), 238 237 ulAuthTimeout(5000), … … 242 241 243 242 bool fEnabled; 244 uint32_t ulPort;243 com::Utf8Str strPort; 245 244 com::Utf8Str strNetAddress; 246 245 VRDPAuthType_T authType; -
trunk/include/VBox/vrdpapi.h
r22663 r23643 571 571 #define VRDP_QI_ENCRYPTION_STYLE (13) 572 572 573 /** TCP port where the server listens. 574 * Values: 0 - VRDP server failed to start. 575 * -1 - . 576 * int32_t. 577 */ 578 #define VRDP_QI_PORT (14) 579 573 580 574 581 /** Hints what has been intercepted by the application. */ -
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r23223 r23643 199 199 } 200 200 201 STDMETHOD(OnRemoteDisplayInfoChange)() 202 { 203 #ifdef VBOX_WITH_VRDP 204 if (gConsole) 205 { 206 ComPtr<IRemoteDisplayInfo> info; 207 gConsole->COMGETTER(RemoteDisplayInfo)(info.asOutParam()); 208 if (info) 209 { 210 LONG port; 211 info->COMGETTER(Port)(&port); 212 if (port != 0) 213 RTPrintf("Listening on port %d\n", port); 214 else 215 RTPrintf("VRDP server failed to start\n"); 216 } 217 } 218 #endif 219 return S_OK; 220 } 221 201 222 STDMETHOD(OnUSBControllerChange)() 202 223 { … … 398 419 { 399 420 #ifdef VBOX_WITH_VRDP 400 ULONG vrdpPort = ~0U;421 const char *vrdpPort = NULL; 401 422 const char *vrdpAddress = NULL; 402 423 const char *vrdpEnabled = NULL; … … 505 526 #ifdef VBOX_WITH_VRDP 506 527 case 'p': 507 vrdpPort = ValueUnion. u32;528 vrdpPort = ValueUnion.psz; 508 529 break; 509 530 case 'a': … … 850 871 851 872 /* set VRDP port if requested by the user */ 852 if (vrdpPort != ~0U) 853 CHECK_ERROR_BREAK(vrdpServer, COMSETTER(Port)(vrdpPort)); 854 else 855 CHECK_ERROR_BREAK(vrdpServer, COMGETTER(Port)(&vrdpPort)); 873 if (vrdpPort != NULL) 874 { 875 Bstr bstr = vrdpPort; 876 CHECK_ERROR_BREAK(vrdpServer, COMSETTER(Ports)(bstr)); 877 } 856 878 /* set VRDP address if requested by the user */ 857 879 if (vrdpAddress != NULL) … … 875 897 #endif 876 898 Log (("VBoxHeadless: Powering up the machine...\n")); 877 #ifdef VBOX_WITH_VRDP878 if (fVRDPEnable)879 RTPrintf("Listening on port %d\n", !vrdpPort ? VRDP_DEFAULT_PORT : vrdpPort);880 #endif881 899 882 900 ComPtr <IProgress> progress; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r23287 r23643 1018 1018 if (vrdpServer) 1019 1019 { 1020 uint16_t vrdpport;1020 Bstr vrdpports; 1021 1021 1022 1022 if (!strcmp(a->argv[2], "default")) 1023 { 1024 vrdpport = 0; 1025 } 1023 vrdpports = "0"; 1026 1024 else 1027 { 1028 int vrc = RTStrToUInt16Full(a->argv[2], 0, &vrdpport); 1029 1030 if (vrc != VINF_SUCCESS) 1031 { 1032 vrdpport = UINT16_MAX; 1033 } 1034 } 1035 1036 if (vrdpport != UINT16_MAX) 1037 { 1038 CHECK_ERROR_BREAK(vrdpServer, COMSETTER(Port)(vrdpport)); 1039 } 1040 else 1041 { 1042 errorArgument("Invalid vrdp server port '%s'", Utf8Str(a->argv[2]).raw()); 1043 rc = E_FAIL; 1044 break; 1045 } 1025 vrdpports = a->argv [2]; 1026 1027 CHECK_ERROR_BREAK(vrdpServer, COMSETTER(Ports)(vrdpports)); 1046 1028 } 1047 1029 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r23561 r23643 989 989 if (fEnabled) 990 990 { 991 ULONG port; 992 vrdpServer->COMGETTER(Port)(&port); 991 LONG vrdpPort = -1; 992 Bstr ports; 993 vrdpServer->COMGETTER(Ports)(ports.asOutParam()); 993 994 Bstr address; 994 995 vrdpServer->COMGETTER(NetAddress)(address.asOutParam()); … … 1015 1016 break; 1016 1017 } 1018 if (console) 1019 { 1020 ComPtr<IRemoteDisplayInfo> remoteDisplayInfo; 1021 CHECK_ERROR_RET(console, COMGETTER(RemoteDisplayInfo)(remoteDisplayInfo.asOutParam()), rc); 1022 rc = remoteDisplayInfo->COMGETTER(Port)(&vrdpPort); 1023 if (rc == E_ACCESSDENIED) 1024 { 1025 vrdpPort = -1; /* VM not powered up */ 1026 } 1027 if (FAILED(rc)) 1028 { 1029 com::ErrorInfo info (remoteDisplayInfo); 1030 GluePrintErrorInfo(info); 1031 return rc; 1032 } 1033 } 1017 1034 if (details == VMINFO_MACHINEREADABLE) 1018 1035 { 1019 1036 RTPrintf("vrdp=\"on\"\n"); 1020 RTPrintf("vrdpport=%d\n", port); 1037 RTPrintf("vrdpport=%d\n", vrdpPort); 1038 RTPrintf("vrdpports=\"%lS\"\n", ports.raw()); 1021 1039 RTPrintf("vrdpaddress=\"%lS\"\n", address.raw()); 1022 1040 RTPrintf("vrdpauthtype=\"%s\"\n", strAuthType); … … 1028 1046 if (address.isEmpty()) 1029 1047 address = "0.0.0.0"; 1030 RTPrintf("VRDP: enabled (Address %lS, Port %d, MultiConn: %s, ReuseSingleConn: %s, Authentication type: %s)\n", address.raw(), port, fMultiCon ? "on" : "off", fReuseCon ? "on" : "off", strAuthType); 1048 RTPrintf("VRDP: enabled (Address %lS, Ports %lS, MultiConn: %s, ReuseSingleConn: %s, Authentication type: %s)\n", address.raw(), ports.raw(), fMultiCon ? "on" : "off", fReuseCon ? "on" : "off", strAuthType); 1049 if (console && vrdpPort != -1 && vrdpPort != 0) 1050 RTPrintf("VRDP port: %d\n", vrdpPort); 1031 1051 } 1032 1052 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r23635 r23643 93 93 #ifdef VBOX_WITH_VRDP 94 94 char *vrdp = NULL; 95 uint16_t vrdpport = UINT16_MAX;95 char *vrdpport = NULL; 96 96 char *vrdpaddress = NULL; 97 97 char *vrdpauthtype = NULL; … … 609 609 i++; 610 610 if (!strcmp(a->argv[i], "default")) 611 vrdpport = 0;612 else 613 vrdpport = RTStrToUInt16(a->argv[i]);611 vrdpport = "0"; 612 else 613 vrdpport = a->argv[i]; 614 614 } 615 615 else if ( !strcmp(a->argv[i], "--vrdpaddress") … … 1812 1812 1813 1813 #ifdef VBOX_WITH_VRDP 1814 if (vrdp || (vrdpport != UINT16_MAX)|| vrdpaddress || vrdpauthtype || vrdpmulticon || vrdpreusecon)1814 if (vrdp || vrdpport || vrdpaddress || vrdpauthtype || vrdpmulticon || vrdpreusecon) 1815 1815 { 1816 1816 ComPtr<IVRDPServer> vrdpServer; … … 1836 1836 } 1837 1837 } 1838 if (vrdpport != UINT16_MAX)1839 { 1840 CHECK_ERROR(vrdpServer, COMSETTER(Port )(vrdpport));1838 if (vrdpport) 1839 { 1840 CHECK_ERROR(vrdpServer, COMSETTER(Ports)(Bstr(vrdpport))); 1841 1841 } 1842 1842 if (vrdpaddress) -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r23249 r23643 509 509 510 510 STDMETHOD(OnVRDPServerChange)() 511 { 512 return S_OK; 513 } 514 515 STDMETHOD(OnRemoteDisplayInfoChange)() 511 516 { 512 517 return S_OK; … … 865 870 char *fdaFile = NULL; 866 871 #ifdef VBOX_WITH_VRDP 867 int portVRDP = ~0;872 char *portVRDP = NULL; 868 873 #endif 869 874 bool fDiscardState = false; … … 1273 1278 { 1274 1279 // start with the standard VRDP port 1275 portVRDP = 0;1280 portVRDP = "0"; 1276 1281 1277 1282 // is there another argument 1278 1283 if (argc > (curArg + 1)) 1279 1284 { 1280 // check if the next argument is a number 1281 int port = atoi(argv[curArg + 1]); 1282 if (port > 0) 1283 { 1284 curArg++; 1285 portVRDP = port; 1286 LogFlow(("Using non standard VRDP port %d\n", portVRDP)); 1287 } 1285 curArg++; 1286 portVRDP = argv[curArg]; 1287 LogFlow(("Using non standard VRDP port %s\n", portVRDP)); 1288 1288 } 1289 1289 } … … 1838 1838 1839 1839 #ifdef VBOX_WITH_VRDP 1840 if (portVRDP != ~0)1840 if (portVRDP) 1841 1841 { 1842 1842 rc = gMachine->COMGETTER(VRDPServer)(gVrdpServer.asOutParam()); … … 1847 1847 if (portVRDP > 0) 1848 1848 { 1849 rc = gVrdpServer->COMSETTER(Port)(portVRDP); 1849 Bstr bstr = portVRDP; 1850 rc = gVrdpServer->COMSETTER(Ports)(bstr); 1850 1851 if (rc != S_OK) 1851 1852 { -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r23223 r23643 564 564 565 565 STDMETHOD(OnVRDPServerChange)() 566 { 567 return S_OK; 568 } 569 570 STDMETHOD(OnRemoteDisplayInfoChange)() 566 571 { 567 572 return S_OK; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r23588 r23643 1696 1696 item += QString (sSectionItemTpl2) 1697 1697 .arg (tr ("Remote Display Server Port", "details report (VRDP Server)")) 1698 .arg (srv.GetPort ());1698 .arg (srv.GetPorts()); 1699 1699 else 1700 1700 item += QString (sSectionItemTpl2) -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMInformationDlg.cpp
r23493 r23643 463 463 else 464 464 osType = vboxGlobal().vmGuestOSTypeDescription (osType); 465 int vrdpPort = console.GetRemoteDisplayInfo().GetPort(); 466 QString vrdpInfo = (vrdpPort == 0 || vrdpPort == -1)? 467 tr ("Not Available", "details report (VRDP server port)") : 468 QString ("%1").arg (vrdpPort); 465 469 466 470 /* Searching for longest string */ 467 471 QStringList valuesList; 468 valuesList << resolution << virtualization << nested << addVerisonStr << osType ;472 valuesList << resolution << virtualization << nested << addVerisonStr << osType << vrdpInfo; 469 473 int maxLength = 0; 470 474 foreach (const QString &value, valuesList) … … 478 482 result += formatValue (tr ("Guest Additions"), addVerisonStr, maxLength); 479 483 result += formatValue (tr ("Guest OS Type"), osType, maxLength); 484 result += formatValue (tr ("Remote Display Server Port"), vrdpInfo, maxLength); 480 485 result += paragraph; 481 486 } -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsDisplay.cpp
r23590 r23643 58 58 /* Setup validators */ 59 59 mLeMemory->setValidator (new QIntValidator (MinVRAM, MaxVRAM, this)); 60 mLeVRDPPort->setValidator (new Q IntValidator (0, 0xFFFF, this));60 mLeVRDPPort->setValidator (new QRegExpValidator (QRegExp ("(([0-9]{1,5}(\\-[0-9]{1,5}){0,1}),)*([0-9]{1,5}(\\-[0-9]{1,5}){0,1})"), this)); 61 61 mLeVRDPTimeout->setValidator (new QIntValidator (this)); 62 62 … … 123 123 { 124 124 mCbVRDP->setChecked (vrdp.GetEnabled()); 125 mLeVRDPPort->setText ( QString::number (vrdp.GetPort()));125 mLeVRDPPort->setText (vrdp.GetPorts()); 126 126 mCbVRDPMethod->setCurrentIndex (mCbVRDPMethod-> 127 127 findText (vboxGlobal().toString (vrdp.GetAuthType()))); … … 153 153 { 154 154 vrdp.SetEnabled (mCbVRDP->isChecked()); 155 vrdp.SetPort (mLeVRDPPort->text().toULong());155 vrdp.SetPorts (mLeVRDPPort->text()); 156 156 vrdp.SetAuthType (vboxGlobal().toVRDPAuthType (mCbVRDPMethod->currentText())); 157 157 vrdp.SetAuthTimeout (mLeVRDPTimeout->text().toULong()); -
trunk/src/VBox/Main/ConsoleImpl.cpp
r23633 r23643 3585 3585 3586 3586 /** 3587 * @note Locks this object for reading. 3588 */ 3589 void Console::onRemoteDisplayInfoChange() 3590 { 3591 AutoCaller autoCaller(this); 3592 AssertComRCReturnVoid(autoCaller.rc()); 3593 3594 AutoReadLock alock(this); 3595 3596 CallbackList::iterator it = mCallbacks.begin(); 3597 while (it != mCallbacks.end()) 3598 (*it++)->OnRemoteDisplayInfoChange(); 3599 } 3600 3601 3602 3603 /** 3587 3604 * Called by IInternalSessionControl::OnUSBControllerChange(). 3588 3605 * … … 6581 6598 { 6582 6599 Utf8Str errMsg; 6583 ULONG port = 0; 6584 console->mVRDPServer->COMGETTER(Port)(&port); 6585 errMsg = Utf8StrFmt(tr("VRDP server port %d is already in use"), 6586 port); 6600 Bstr bstr; 6601 console->mVRDPServer->COMGETTER(Ports)(bstr.asOutParam()); 6602 Utf8Str ports = bstr; 6603 errMsg = Utf8StrFmt(tr("VRDP server can't bind to a port: %s"), 6604 ports.raw()); 6587 6605 LogRel(("Warning: failed to launch VRDP server (%Rrc): '%s'\n", 6588 6606 vrc, errMsg.raw())); -
trunk/src/VBox/Main/ConsoleVRDPServer.cpp
r23223 r23643 143 143 144 144 STDMETHOD(OnVRDPServerChange)() 145 { 146 return S_OK; 147 } 148 149 STDMETHOD(OnRemoteDisplayInfoChange)() 145 150 { 146 151 return S_OK; … … 622 627 case VRDP_QP_NETWORK_PORT: 623 628 { 629 /* This is obsolete, the VRDP server uses VRDP_QP_NETWORK_PORT_RANGE instead. */ 624 630 ULONG port = 0; 625 server->mConsole->getVRDPServer ()->COMGETTER(Port) (&port);626 if (port == 0)627 {628 port = VRDP_DEFAULT_PORT;629 }630 631 631 632 if (cbBuffer >= sizeof (uint32_t)) … … 707 708 com::Bstr bstr; 708 709 HRESULT hrc = server->mConsole->machine ()->GetExtraData(Bstr("VBoxInternal2/VRDPPortRange"), bstr.asOutParam()); 710 if (hrc != S_OK || bstr == "") 711 { 712 hrc = server->mConsole->getVRDPServer ()->COMGETTER(Ports) (bstr.asOutParam()); 713 } 709 714 if (hrc != S_OK) 710 715 { 711 716 bstr = ""; 717 } 718 719 if (bstr == "0") 720 { 721 bstr = "3389"; 712 722 } 713 723 … … 758 768 759 769 ULONG port = *(uint32_t *)pvBuffer; 770 771 server->mVRDPBindPort = port; 760 772 761 773 com::Bstr bstr = Utf8StrFmt("%d", port); … … 769 781 *pcbOut = sizeof (uint32_t); 770 782 } 783 784 server->mConsole->onRemoteDisplayInfoChange (); 771 785 } break; 772 786 … … 1130 1144 1131 1145 mConsole->machine ()->SetExtraData(Bstr("VBoxInternal2/VRDPPortRange"), Bstr("")); 1146 mVRDPBindPort = -1; 1132 1147 #endif /* VBOX_WITH_VRDP */ 1133 1148 … … 2019 2034 { 2020 2035 #ifdef VBOX_WITH_VRDP 2021 if (mpEntryPoints && mhServer) 2036 if (index == VRDP_QI_PORT) 2037 { 2038 uint32_t cbOut = sizeof (int32_t); 2039 2040 if (cbBuffer >= cbOut) 2041 { 2042 *pcbOut = cbOut; 2043 *(int32_t *)pvBuffer = (int32_t)mVRDPBindPort; 2044 } 2045 } 2046 else if (mpEntryPoints && mhServer) 2022 2047 { 2023 2048 mpEntryPoints->VRDPQueryInfo (mhServer, index, pvBuffer, cbBuffer, pcbOut); … … 2242 2267 2243 2268 IMPL_GETTER_BOOL (BOOL, Active, VRDP_QI_ACTIVE); 2269 IMPL_GETTER_SCALAR (LONG, Port, VRDP_QI_PORT); 2244 2270 IMPL_GETTER_SCALAR (ULONG, NumberOfClients, VRDP_QI_NUMBER_OF_CLIENTS); 2245 2271 IMPL_GETTER_SCALAR (LONG64, BeginTime, VRDP_QI_BEGIN_TIME); -
trunk/src/VBox/Main/VirtualBoxCallbackImpl.cpp
r23223 r23643 230 230 return mConsoleCallback->OnParallelPortChange(aParallelPort); 231 231 } 232 233 STDMETHODIMP CallbackWrapper::OnRemoteDisplayInfoChange() 234 { 235 if (mConsoleCallback.isNull()) 236 return S_OK; 237 238 return mConsoleCallback->OnRemoteDisplayInfoChange(); 239 } 240 232 241 STDMETHODIMP CallbackWrapper::OnVRDPServerChange() 233 242 { -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r23601 r23643 5441 5441 <interface 5442 5442 name="IConsoleCallback" extends="$unknown" 5443 uuid="d b67f6e5-799d-474c-8452-b10d7736a412"5443 uuid="d6239535-bda2-4ef7-83f4-f4722e4a3b2c" 5444 5444 wsmap="suppress" 5445 5445 > … … 5625 5625 Interested callees should use IVRDPServer methods and attributes to 5626 5626 find out what has changed. 5627 </desc> 5628 </method> 5629 5630 <method name="onRemoteDisplayInfoChange"> 5631 <desc> 5632 Notification when the status of the VRDP server changes. Interested callees 5633 should use <link to="IConsole::RemoteDisplayInfo">IRemoteDisplayInfo</link> 5634 attributes to find out what is the current status. 5627 5635 </desc> 5628 5636 </method> … … 5842 5850 <interface 5843 5851 name="IRemoteDisplayInfo" extends="$unknown" 5844 uuid=" 550104cd-2dfd-4a6c-857d-f6f8e088e62c"5852 uuid="b3741084-806f-4c3b-8c42-ebad1a81e45a" 5845 5853 wsmap="struct" 5846 5854 > … … 5853 5861 <desc> 5854 5862 Whether the remote display connection is active. 5863 </desc> 5864 </attribute> 5865 5866 <attribute name="port" type="long" readonly="yes"> 5867 <desc> 5868 VRDP server port number. If this property is equal to <tt>0</tt>, then 5869 the VRDP server failed to start, usually because there are no free TCP 5870 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDP 5871 server has not yet been started. 5855 5872 </desc> 5856 5873 </attribute> … … 11789 11806 <interface 11790 11807 name="IVRDPServer" extends="$unknown" 11791 uuid=" f4584ae7-6bce-474b-83d6-17d235e6aa89"11808 uuid="72e671bc-1712-4052-ad6b-e45e76d9d3e4" 11792 11809 wsmap="managed" 11793 11810 > … … 11796 11813 </attribute> 11797 11814 11798 <attribute name="port " type="unsigned long">11799 <desc> 11800 VRDP server port number .11815 <attribute name="ports" type="wstring"> 11816 <desc> 11817 VRDP server port numbers. 11801 11818 <note> 11802 Setting the value of this property to <tt>0</tt> will reset the port 11803 number to the default value which is 11804 currently <tt>3389</tt>. Reading this property will always return a 11805 real port number, even after it has been set to <tt>0</tt> (in which 11806 case the default port is returned). 11819 This is a string of comma separated TCP port numbers or port number ranges. 11820 The server will try to bind to one of ports from the list. Example 11821 <tt>3000,3010-3012,3015</tt> 11807 11822 </note> 11808 11823 </desc> -
trunk/src/VBox/Main/include/ConsoleImpl.h
r23633 r23643 214 214 void onRuntimeError (BOOL aFatal, IN_BSTR aErrorID, IN_BSTR aMessage); 215 215 HRESULT onShowWindow (BOOL aCheck, BOOL *aCanShow, ULONG64 *aWinId); 216 void onRemoteDisplayInfoChange(); 216 217 217 218 static const PDMDRVREG DrvStatusReg; -
trunk/src/VBox/Main/include/ConsoleVRDPServer.h
r23223 r23643 185 185 186 186 VRDPInputSynch m_InputSynch; 187 188 int32_t mVRDPBindPort; 187 189 #endif /* VBOX_WITH_VRDP */ 188 190 … … 264 266 #define DECL_GETTER(_aType, _aName) STDMETHOD(COMGETTER(_aName)) (_aType *a##_aName) 265 267 DECL_GETTER (BOOL, Active); 268 DECL_GETTER (LONG, Port); 266 269 DECL_GETTER (ULONG, NumberOfClients); 267 270 DECL_GETTER (LONG64, BeginTime); -
trunk/src/VBox/Main/include/DisplayImpl.h
r23223 r23643 198 198 } 199 199 200 STDMETHOD(OnRemoteDisplayInfoChange)() 201 { 202 return S_OK; 203 } 204 200 205 STDMETHOD(OnUSBControllerChange)() 201 206 { -
trunk/src/VBox/Main/include/VRDPServerImpl.h
r23223 r23643 50 50 return this == &that || 51 51 (mEnabled == that.mEnabled && 52 mVRDPPort == that.mVRDPPort&&52 mVRDPPorts == that.mVRDPPorts && 53 53 mVRDPAddress == that.mVRDPAddress && 54 54 mAuthType == that.mAuthType && … … 59 59 60 60 BOOL mEnabled; 61 ULONG mVRDPPort;61 Bstr mVRDPPorts; 62 62 Bstr mVRDPAddress; 63 63 VRDPAuthType_T mAuthType; … … 93 93 STDMETHOD(COMGETTER(Enabled)) (BOOL *aEnabled); 94 94 STDMETHOD(COMSETTER(Enabled)) (BOOL aEnable); 95 STDMETHOD(COMGETTER(Port )) (ULONG *aPort);96 STDMETHOD(COMSETTER(Port )) (ULONG aPort);95 STDMETHOD(COMGETTER(Ports)) (BSTR *aPorts); 96 STDMETHOD(COMSETTER(Ports)) (IN_BSTR aPorts); 97 97 STDMETHOD(COMGETTER(NetAddress)) (BSTR *aAddress); 98 98 STDMETHOD(COMSETTER(NetAddress)) (IN_BSTR aAddress); -
trunk/src/VBox/Main/include/VirtualBoxCallbackImpl.h
r23223 r23643 87 87 STDMETHOD(OnParallelPortChange) (IParallelPort *aParallelPort); 88 88 STDMETHOD(OnVRDPServerChange)(); 89 STDMETHOD(OnRemoteDisplayInfoChange)(); 89 90 STDMETHOD(OnUSBControllerChange)(); 90 91 STDMETHOD(OnUSBDeviceStateChange) (IUSBDevice *aDevice, BOOL aAttached, -
trunk/src/VBox/Main/xml/Settings.cpp
r23600 r23643 1545 1545 { 1546 1546 pelmHwChild->getAttributeValue("enabled", hw.vrdpSettings.fEnabled); 1547 pelmHwChild->getAttributeValue("port", hw.vrdpSettings. ulPort);1547 pelmHwChild->getAttributeValue("port", hw.vrdpSettings.strPort); 1548 1548 pelmHwChild->getAttributeValue("netAddress", hw.vrdpSettings.strNetAddress); 1549 1549 … … 2357 2357 xml::ElementNode *pelmVRDP = pelmHardware->createChild("RemoteDisplay"); 2358 2358 pelmVRDP->setAttribute("enabled", hw.vrdpSettings.fEnabled); 2359 pelmVRDP->setAttribute("port", hw.vrdpSettings. ulPort);2359 pelmVRDP->setAttribute("port", hw.vrdpSettings.strPort); 2360 2360 if (hw.vrdpSettings.strNetAddress.length()) 2361 2361 pelmVRDP->setAttribute("netAddress", hw.vrdpSettings.strNetAddress); -
trunk/src/VBox/Main/xml/VirtualBox-settings-common.xsd
r23465 r23643 506 506 <xsd:complexType name="TRemoteDisplay"> 507 507 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/> 508 <xsd:attribute name="port" type="xsd: unsignedInt" default="0"/>508 <xsd:attribute name="port" type="xsd:token" default="0"/> 509 509 <xsd:attribute name="netAddress" type="xsd:token" default=""/> 510 510 <xsd:attribute name="authType" type="TVRDPAuthType" default="Null"/>
Note:
See TracChangeset
for help on using the changeset viewer.