Changeset 33386 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 24, 2010 3:57:55 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 66973
- Location:
- trunk/src/VBox/Main
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r33108 r33386 276 276 kOnCPUChanged, 277 277 kOnCPUExecutionCapChanged, 278 kOnVRD PServerChanged,279 kOn RemoteDisplayInfoChanged,278 kOnVRDEServerChanged, 279 kOnVRDEServerInfoChanged, 280 280 kOnUSBControllerChanged, 281 281 kOnUSBDeviceStateChanged, … … 426 426 427 427 #ifdef VBOX_WITH_VRDP 428 rc = mMachine->COMGETTER(VRD PServer)(unconst(mVRDPServer).asOutParam());428 rc = mMachine->COMGETTER(VRDEServer)(unconst(mVRDEServer).asOutParam()); 429 429 AssertComRCReturnRC(rc); 430 430 #endif … … 453 453 AssertComRCReturnRC(rc); 454 454 455 unconst(m RemoteDisplayInfo).createObject();456 rc = m RemoteDisplayInfo->init(this);455 unconst(mVRDEServerInfo).createObject(); 456 rc = mVRDEServerInfo->init(this); 457 457 AssertComRCReturnRC(rc); 458 458 … … 555 555 mUSBDevices.clear(); 556 556 557 if (m RemoteDisplayInfo)558 { 559 m RemoteDisplayInfo->uninit();560 unconst(m RemoteDisplayInfo).setNull();;557 if (mVRDEServerInfo) 558 { 559 mVRDEServerInfo->uninit(); 560 unconst(mVRDEServerInfo).setNull();; 561 561 } 562 562 … … 598 598 599 599 #ifdef VBOX_WITH_VRDP 600 unconst(mVRD PServer).setNull();600 unconst(mVRDEServer).setNull(); 601 601 #endif 602 602 … … 644 644 { 645 645 Bstr clientName; 646 m RemoteDisplayInfo->COMGETTER(ClientName)(clientName.asOutParam());646 mVRDEServerInfo->COMGETTER(ClientName)(clientName.asOutParam()); 647 647 648 648 mMachine->SetGuestProperty(Bstr(pszPropertyName).raw(), … … 753 753 AssertComRCReturn(hrc, VERR_ACCESS_DENIED); 754 754 755 VRDPAuthType_T authType = VRDPAuthType_Null;756 hrc = mVRD PServer->COMGETTER(AuthType)(&authType);755 AuthType_T authType = AuthType_Null; 756 hrc = mVRDEServer->COMGETTER(AuthType)(&authType); 757 757 AssertComRCReturn(hrc, VERR_ACCESS_DENIED); 758 758 759 759 ULONG authTimeout = 0; 760 hrc = mVRD PServer->COMGETTER(AuthTimeout)(&authTimeout);760 hrc = mVRDEServer->COMGETTER(AuthTimeout)(&authTimeout); 761 761 AssertComRCReturn(hrc, VERR_ACCESS_DENIED); 762 762 … … 768 768 LogRel(("VRDPAUTH: User: [%s]. Domain: [%s]. Authentication type: [%s]\n", 769 769 pszUser, pszDomain, 770 authType == VRDPAuthType_Null?770 authType == AuthType_Null? 771 771 "Null": 772 (authType == VRDPAuthType_External?772 (authType == AuthType_External? 773 773 "External": 774 (authType == VRDPAuthType_Guest?774 (authType == AuthType_Guest? 775 775 "Guest": 776 776 "INVALID" … … 781 781 switch (authType) 782 782 { 783 case VRDPAuthType_Null:783 case AuthType_Null: 784 784 { 785 785 result = VRDPAuthAccessGranted; … … 787 787 } 788 788 789 case VRDPAuthType_External:789 case AuthType_External: 790 790 { 791 791 /* Call the external library. */ … … 802 802 } /* pass through */ 803 803 804 case VRDPAuthType_Guest:804 case AuthType_Guest: 805 805 { 806 806 guestJudgement = VRDPAuthGuestNotReacted; … … 848 848 } 849 849 850 if (authType == VRDPAuthType_External)850 if (authType == AuthType_External) 851 851 { 852 852 LogRel(("VRDPAUTH: Guest judgement %d.\n", guestJudgement)); … … 886 886 /* Multiconnection check must be made after authentication, so bad clients would not interfere with a good one. */ 887 887 BOOL allowMultiConnection = FALSE; 888 hrc = mVRD PServer->COMGETTER(AllowMultiConnection)(&allowMultiConnection);888 hrc = mVRDEServer->COMGETTER(AllowMultiConnection)(&allowMultiConnection); 889 889 AssertComRCReturn(hrc, VERR_ACCESS_DENIED); 890 890 891 891 BOOL reuseSingleConnection = FALSE; 892 hrc = mVRD PServer->COMGETTER(ReuseSingleConnection)(&reuseSingleConnection);892 hrc = mVRDEServer->COMGETTER(ReuseSingleConnection)(&reuseSingleConnection); 893 893 AssertComRCReturn(hrc, VERR_ACCESS_DENIED); 894 894 … … 1054 1054 AssertComRC(hrc); 1055 1055 1056 VRDPAuthType_T authType = VRDPAuthType_Null;1057 hrc = mVRD PServer->COMGETTER(AuthType)(&authType);1056 AuthType_T authType = AuthType_Null; 1057 hrc = mVRDEServer->COMGETTER(AuthType)(&authType); 1058 1058 AssertComRC(hrc); 1059 1059 1060 if (authType == VRDPAuthType_External)1060 if (authType == AuthType_External) 1061 1061 mConsoleVRDPServer->AuthDisconnect(uuid, u32ClientId); 1062 1062 … … 1624 1624 } 1625 1625 1626 STDMETHODIMP Console::COMGETTER( RemoteDisplayInfo)(IRemoteDisplayInfo **aRemoteDisplayInfo)1627 { 1628 CheckComArgOutPointerValid(a RemoteDisplayInfo);1626 STDMETHODIMP Console::COMGETTER(VRDEServerInfo)(IVRDEServerInfo **aVRDEServerInfo) 1627 { 1628 CheckComArgOutPointerValid(aVRDEServerInfo); 1629 1629 1630 1630 AutoCaller autoCaller(this); … … 1632 1632 1633 1633 /* mDisplay is constant during life time, no need to lock */ 1634 m RemoteDisplayInfo.queryInterfaceTo(aRemoteDisplayInfo);1634 mVRDEServerInfo.queryInterfaceTo(aVRDEServerInfo); 1635 1635 1636 1636 return S_OK; … … 3938 3938 3939 3939 /** 3940 * Called by IInternalSessionControl::OnVRD PServerChange().3940 * Called by IInternalSessionControl::OnVRDEServerChange(). 3941 3941 * 3942 3942 * @note Locks this object for writing. 3943 3943 */ 3944 HRESULT Console::onVRD PServerChange(BOOL aRestart)3944 HRESULT Console::onVRDEServerChange(BOOL aRestart) 3945 3945 { 3946 3946 AutoCaller autoCaller(this); … … 3951 3951 HRESULT rc = S_OK; 3952 3952 3953 if ( mVRD PServer3953 if ( mVRDEServer 3954 3954 && ( mMachineState == MachineState_Running 3955 3955 || mMachineState == MachineState_Teleporting … … 3960 3960 BOOL vrdpEnabled = FALSE; 3961 3961 3962 rc = mVRD PServer->COMGETTER(Enabled)(&vrdpEnabled);3962 rc = mVRDEServer->COMGETTER(Enabled)(&vrdpEnabled); 3963 3963 ComAssertComRCRetRC(rc); 3964 3964 … … 3991 3991 /* notify console callbacks on success */ 3992 3992 if (SUCCEEDED(rc)) 3993 CONSOLE_DO_CALLBACKS0(OnVRD PServerChanged);3993 CONSOLE_DO_CALLBACKS0(OnVRDEServerChanged); 3994 3994 3995 3995 return rc; … … 3999 3999 * @note Locks this object for reading. 4000 4000 */ 4001 void Console::on RemoteDisplayInfoChange()4001 void Console::onVRDEServerInfoChange() 4002 4002 { 4003 4003 AutoCaller autoCaller(this); … … 4006 4006 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 4007 4007 4008 CONSOLE_DO_CALLBACKS0(On RemoteDisplayInfoChanged);4008 CONSOLE_DO_CALLBACKS0(OnVRDEServerInfoChanged); 4009 4009 } 4010 4010 … … 7431 7431 7432 7432 #ifdef VBOX_WITH_VRDP 7433 7434 7433 /* Create the VRDP server. In case of headless operation, this will 7435 7434 * also create the framebuffer, required at VM creation. … … 7449 7448 Utf8Str errMsg; 7450 7449 Bstr bstr; 7451 console->mVRD PServer->COMGETTER(Ports)(bstr.asOutParam());7450 console->mVRDEServer->GetVRDEProperty(Bstr("TCP/Ports").raw(), bstr.asOutParam()); 7452 7451 Utf8Str ports = bstr; 7453 errMsg = Utf8StrFmt(tr("V RDP server can't bind to aport: %s"),7452 errMsg = Utf8StrFmt(tr("VirtualBox Remote Desktop Extension server can't bind to the port: %s"), 7454 7453 ports.c_str()); 7455 LogRel((" Warning: failed to launch VRDPserver (%Rrc): '%s'\n",7454 LogRel(("VRDE: Warning: failed to launch VRDE server (%Rrc): '%s'\n", 7456 7455 vrc, errMsg.c_str())); 7457 7456 } 7457 else if (vrc == VINF_NOT_SUPPORTED) 7458 { 7459 /* This means that the VRDE is not installed. */ 7460 LogRel(("VRDE: VirtualBox Remote Desktop Extension is not available.\n")); 7461 } 7458 7462 else if (RT_FAILURE(vrc)) 7459 7463 { 7464 /* Fail, if the server is installed but can't start. */ 7460 7465 Utf8Str errMsg; 7461 7466 switch (vrc) … … 7463 7468 case VERR_FILE_NOT_FOUND: 7464 7469 { 7465 errMsg = Utf8StrFmt(tr("Could not load the VRDP library")); 7470 /* VRDE library file is missing. */ 7471 errMsg = Utf8StrFmt(tr("Could not find the VirtualBox Remote Desktop Extension library.")); 7466 7472 break; 7467 7473 } 7468 7474 default: 7469 errMsg = Utf8StrFmt(tr("Failed to launch VRDPserver (%Rrc)"),7475 errMsg = Utf8StrFmt(tr("Failed to launch Remote Desktop Extension server (%Rrc)"), 7470 7476 vrc); 7471 7477 } 7472 LogRel((" Failed to launch VRDP server(%Rrc), error message: '%s'\n",7478 LogRel(("VRDE: Failed: (%Rrc), error message: '%s'\n", 7473 7479 vrc, errMsg.c_str())); 7474 7480 throw setErrorStatic(E_FAIL, errMsg.c_str()); -
trunk/src/VBox/Main/ConsoleVRDPServer.cpp
r33005 r33386 582 582 case VRDE_QP_NETWORK_PORT: 583 583 { 584 /* This is obsolete, the VRD Pserver uses VRDE_QP_NETWORK_PORT_RANGE instead. */584 /* This is obsolete, the VRDE server uses VRDE_QP_NETWORK_PORT_RANGE instead. */ 585 585 ULONG port = 0; 586 586 … … 601 601 { 602 602 com::Bstr bstr; 603 server->mConsole->getVRD PServer()->COMGETTER(NetAddress)(bstr.asOutParam());603 server->mConsole->getVRDEServer()->GetVRDEProperty(Bstr("TCP/Address").raw(), bstr.asOutParam()); 604 604 605 605 /* The server expects UTF8. */ … … 650 650 { 651 651 com::Bstr bstr; 652 HRESULT hrc = server->mConsole->getVRD PServer()->COMGETTER(Ports)(bstr.asOutParam());652 HRESULT hrc = server->mConsole->getVRDEServer()->GetVRDEProperty(Bstr("TCP/Ports").raw(), bstr.asOutParam()); 653 653 654 654 if (hrc != S_OK) … … 692 692 BOOL fVideoEnabled = FALSE; 693 693 694 server->mConsole->getVRD PServer()->COMGETTER(VideoChannel)(&fVideoEnabled);694 server->mConsole->getVRDEServer()->COMGETTER(VideoChannel)(&fVideoEnabled); 695 695 696 696 if (cbBuffer >= sizeof(uint32_t)) … … 711 711 ULONG ulQuality = 0; 712 712 713 server->mConsole->getVRD PServer()->COMGETTER(VideoChannelQuality)(&ulQuality);713 server->mConsole->getVRDEServer()->COMGETTER(VideoChannelQuality)(&ulQuality); 714 714 715 715 if (cbBuffer >= sizeof(uint32_t)) … … 844 844 } 845 845 846 server->mConsole->on RemoteDisplayInfoChange();846 server->mConsole->onVRDEServerInfoChange(); 847 847 } break; 848 848 … … 1256 1256 #ifdef VBOX_WITH_VRDP 1257 1257 int rc = VINF_SUCCESS; 1258 IVRDPServer *vrdpserver = mConsole->getVRDPServer(); 1259 Assert(vrdpserver); 1260 BOOL vrdpEnabled = FALSE; 1261 1262 HRESULT rc2 = vrdpserver->COMGETTER(Enabled)(&vrdpEnabled); 1263 AssertComRC(rc2); 1264 1265 if (SUCCEEDED(rc2) && vrdpEnabled) 1266 { 1267 if (loadVRDPLibrary()) 1258 1259 /* 1260 * Check that a VRDE library name is set. 1261 */ 1262 Utf8Str filename; 1263 1264 ComPtr<IMachine> machine; 1265 HRESULT hrc = mConsole->COMGETTER(Machine)(machine.asOutParam()); 1266 1267 if (SUCCEEDED(hrc)) 1268 { 1269 ComPtr<IVirtualBox> virtualBox; 1270 hrc = machine->COMGETTER(Parent)(virtualBox.asOutParam()); 1271 1272 if (SUCCEEDED(hrc)) 1273 { 1274 ComPtr<ISystemProperties> systemProperties; 1275 hrc = virtualBox->COMGETTER(SystemProperties)(systemProperties.asOutParam()); 1276 1277 if (SUCCEEDED(hrc)) 1278 { 1279 Bstr library; 1280 hrc = systemProperties->COMGETTER(DefaultVRDELibrary)(library.asOutParam()); 1281 1282 if (SUCCEEDED(hrc)) 1283 { 1284 filename = library; 1285 } 1286 } 1287 } 1288 } 1289 1290 if (FAILED(hrc) || filename.isEmpty()) 1291 { 1292 return VINF_NOT_SUPPORTED; 1293 } 1294 1295 /* 1296 * Load the VRDE library and start the server, if it is enabled. 1297 */ 1298 IVRDEServer *server = mConsole->getVRDEServer(); 1299 Assert(server); 1300 BOOL fEnabled = FALSE; 1301 1302 hrc = server->COMGETTER(Enabled)(&fEnabled); 1303 AssertComRC(hrc); 1304 1305 if (SUCCEEDED(hrc) && fEnabled) 1306 { 1307 rc = loadVRDPLibrary(filename.c_str()); 1308 1309 if (RT_SUCCESS(rc)) 1268 1310 { 1269 1311 rc = mpfnVRDECreateServer(&mCallbacks.header, this, (VRDEINTERFACEHDR **)&mpEntryPoints, &mhServer); … … 1276 1318 } 1277 1319 else if (rc != VERR_NET_ADDRESS_IN_USE) 1278 AssertMsgFailed(("Could not start VRDP server: rc = %Rrc\n", rc)); 1279 } 1280 else 1281 { 1282 AssertMsgFailed(("Could not load the VRDP library\n")); 1283 rc = VERR_FILE_NOT_FOUND; 1320 { 1321 LogRel(("VRDE: Could not start VRDP server rc = %Rrc\n", rc)); 1322 } 1284 1323 } 1285 1324 } … … 1509 1548 1510 1549 Bstr authLibrary; 1511 systemProperties->COMGETTER( RemoteDisplayAuthLibrary)(authLibrary.asOutParam());1550 systemProperties->COMGETTER(VRDEAuthLibrary)(authLibrary.asOutParam()); 1512 1551 1513 1552 Utf8Str filename = authLibrary; … … 2131 2170 2132 2171 #ifdef VBOX_WITH_VRDP 2133 /* note: static function now! */ 2134 bool ConsoleVRDPServer::loadVRDPLibrary(void) 2172 /* static */ int ConsoleVRDPServer::loadVRDPLibrary(const char *pszLibraryName) 2135 2173 { 2136 2174 int rc = VINF_SUCCESS; … … 2138 2176 if (!mVRDPLibrary) 2139 2177 { 2140 rc = SUPR3HardenedLdrLoadAppPriv( "VBoxVRDP", &mVRDPLibrary);2178 rc = SUPR3HardenedLdrLoadAppPriv(pszLibraryName, &mVRDPLibrary); 2141 2179 2142 2180 if (RT_SUCCESS(rc)) 2143 2181 { 2144 LogFlow(("VRDPServer::loadLibrary(): successfully loaded VRDP library.\n"));2145 2146 2182 struct SymbolEntry 2147 2183 { … … 2163 2199 rc = RTLdrGetSymbol(mVRDPLibrary, symbols[i].name, symbols[i].ppfn); 2164 2200 2165 AssertMsgRC(rc, ("Error resolving VRDP symbol %s\n", symbols[i].name));2166 2167 2201 if (RT_FAILURE(rc)) 2168 2202 { 2203 LogRel(("VRDE: Error resolving symbol '%s', rc %Rrc.\n", symbols[i].name, rc)); 2169 2204 break; 2170 2205 } … … 2173 2208 else 2174 2209 { 2175 LogRel(("VRDPServer::loadLibrary(): failed to load VRDP library! VRDP not available: rc = %Rrc\n", rc)); 2210 if (rc != VERR_FILE_NOT_FOUND) 2211 { 2212 LogRel(("VRDE: Error loading the library '%s' rc = %Rrc.\n", pszLibraryName, rc)); 2213 } 2214 2176 2215 mVRDPLibrary = NULL; 2177 2216 } 2178 2217 } 2179 2218 2180 // just to be safe2181 2219 if (RT_FAILURE(rc)) 2182 2220 { … … 2188 2226 } 2189 2227 2190 return (mVRDPLibrary != NULL);2228 return rc; 2191 2229 } 2192 2230 #endif /* VBOX_WITH_VRDP */ 2193 2231 2194 2232 /* 2195 * I RemoteDisplayInfo implementation.2233 * IVRDEServerInfo implementation. 2196 2234 */ 2197 2235 // constructor / destructor 2198 2236 ///////////////////////////////////////////////////////////////////////////// 2199 2237 2200 RemoteDisplayInfo::RemoteDisplayInfo()2238 VRDEServerInfo::VRDEServerInfo() 2201 2239 : mParent(NULL) 2202 2240 { 2203 2241 } 2204 2242 2205 RemoteDisplayInfo::~RemoteDisplayInfo()2206 { 2207 } 2208 2209 2210 HRESULT RemoteDisplayInfo::FinalConstruct()2243 VRDEServerInfo::~VRDEServerInfo() 2244 { 2245 } 2246 2247 2248 HRESULT VRDEServerInfo::FinalConstruct() 2211 2249 { 2212 2250 return S_OK; 2213 2251 } 2214 2252 2215 void RemoteDisplayInfo::FinalRelease()2253 void VRDEServerInfo::FinalRelease() 2216 2254 { 2217 2255 uninit(); … … 2224 2262 * Initializes the guest object. 2225 2263 */ 2226 HRESULT RemoteDisplayInfo::init(Console *aParent)2264 HRESULT VRDEServerInfo::init(Console *aParent) 2227 2265 { 2228 2266 LogFlowThisFunc(("aParent=%p\n", aParent)); … … 2246 2284 * Called either from FinalRelease() or by the parent when it gets destroyed. 2247 2285 */ 2248 void RemoteDisplayInfo::uninit()2286 void VRDEServerInfo::uninit() 2249 2287 { 2250 2288 LogFlowThisFunc(("\n")); … … 2258 2296 } 2259 2297 2260 // I RemoteDisplayInfo properties2298 // IVRDEServerInfo properties 2261 2299 ///////////////////////////////////////////////////////////////////////////// 2262 2300 2263 2301 #define IMPL_GETTER_BOOL(_aType, _aName, _aIndex) \ 2264 STDMETHODIMP RemoteDisplayInfo::COMGETTER(_aName)(_aType *a##_aName) \2302 STDMETHODIMP VRDEServerInfo::COMGETTER(_aName)(_aType *a##_aName) \ 2265 2303 { \ 2266 2304 if (!a##_aName) \ … … 2286 2324 2287 2325 #define IMPL_GETTER_SCALAR(_aType, _aName, _aIndex, _aValueMask) \ 2288 STDMETHODIMP RemoteDisplayInfo::COMGETTER(_aName)(_aType *a##_aName) \2326 STDMETHODIMP VRDEServerInfo::COMGETTER(_aName)(_aType *a##_aName) \ 2289 2327 { \ 2290 2328 if (!a##_aName) \ … … 2311 2349 2312 2350 #define IMPL_GETTER_BSTR(_aType, _aName, _aIndex) \ 2313 STDMETHODIMP RemoteDisplayInfo::COMGETTER(_aName)(_aType *a##_aName) \2351 STDMETHODIMP VRDEServerInfo::COMGETTER(_aName)(_aType *a##_aName) \ 2314 2352 { \ 2315 2353 if (!a##_aName) \ … … 2338 2376 if (!pchBuffer) \ 2339 2377 { \ 2340 Log((" RemoteDisplayInfo::"\2378 Log(("VRDEServerInfo::" \ 2341 2379 #_aName \ 2342 2380 ": Failed to allocate memory %d bytes\n", cbOut)); \ -
trunk/src/VBox/Main/MachineImpl.cpp
r33312 r33386 2147 2147 } 2148 2148 2149 STDMETHODIMP Machine::COMGETTER(VRD PServer)(IVRDPServer **vrdpServer)2149 STDMETHODIMP Machine::COMGETTER(VRDEServer)(IVRDEServer **vrdeServer) 2150 2150 { 2151 2151 #ifdef VBOX_WITH_VRDP 2152 if (!vrd pServer)2152 if (!vrdeServer) 2153 2153 return E_POINTER; 2154 2154 … … 2158 2158 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 2159 2159 2160 Assert(!!mVRD PServer);2161 mVRD PServer.queryInterfaceTo(vrdpServer);2160 Assert(!!mVRDEServer); 2161 mVRDEServer.queryInterfaceTo(vrdeServer); 2162 2162 2163 2163 return S_OK; 2164 2164 #else 2165 NOREF(vrd pServer);2165 NOREF(vrde); 2166 2166 ReturnComNotImplemented(); 2167 2167 #endif … … 5988 5988 || strType == "capture" 5989 5989 #ifdef VBOX_WITH_VRDP 5990 || strType == "vrdp" 5990 || strType == "vrdp" /* Deprecated. Same as headless. */ 5991 5991 #endif 5992 5992 ) 5993 5993 { 5994 /* On pre-4.0 the "headless" type was used for passing "--vrdp off" to VBoxHeadless to let it work in OSE, 5995 * which did not contain VRDP server. In VBox 4.0 the remote desktop server (VRDE) is optional, 5996 * and a VM works even if the server has not been installed. 5997 * So in 4.0 the "headless" behavior remains the same for default VBox installations. 5998 * Only if a VRDE has been installed and the VM enables it, the "headless" will work 5999 * differently in 4.0 and 3.x. 6000 */ 5994 6001 const char VBoxHeadless_exe[] = "VBoxHeadless" HOSTSUFF_EXE; 5995 6002 Assert(sz >= sizeof(VBoxHeadless_exe)); … … 5997 6004 5998 6005 Utf8Str idStr = mData->mUuid.toString(); 5999 /* Leave space for 2 args, as "headless" needs --vrdp off on non-OSE. */ 6000 const char * args[] = {szPath, "--comment", mUserData->s.strName.c_str(), "--startvm", idStr.c_str(), 0, 0, 0 }; 6001 #ifdef VBOX_WITH_VRDP 6002 if (strType == "headless") 6003 { 6004 unsigned pos = RT_ELEMENTS(args) - 3; 6005 args[pos++] = "--vrdp"; 6006 args[pos] = "off"; 6007 } 6008 #endif 6006 /* Leave space for "--capture" arg. */ 6007 const char * args[] = {szPath, "--comment", mUserData->s.strName.c_str(), "--startvm", idStr.c_str(), 0, 0 }; 6009 6008 if (strType == "capture") 6010 6009 { 6011 unsigned pos = RT_ELEMENTS(args) - 3;6010 unsigned pos = RT_ELEMENTS(args) - 2; 6012 6011 args[pos] = "--capture"; 6013 6012 } … … 6541 6540 6542 6541 #ifdef VBOX_WITH_VRDP 6543 /* create an associated VRD PServerobject (default is disabled) */6544 unconst(mVRD PServer).createObject();6545 mVRD PServer->init(this);6542 /* create an associated VRDE object (default is disabled) */ 6543 unconst(mVRDEServer).createObject(); 6544 mVRDEServer->init(this); 6546 6545 #endif 6547 6546 … … 6640 6639 6641 6640 #ifdef VBOX_WITH_VRDP 6642 if (mVRD PServer)6643 { 6644 mVRD PServer->uninit();6645 unconst(mVRD PServer).setNull();6641 if (mVRDEServer) 6642 { 6643 mVRDEServer->uninit(); 6644 unconst(mVRDEServer).setNull(); 6646 6645 } 6647 6646 #endif … … 7150 7149 7151 7150 #ifdef VBOX_WITH_VRDP 7152 /* RemoteDisplay*/7153 rc = mVRD PServer->loadSettings(data.vrdpSettings);7151 /* VRDEServer */ 7152 rc = mVRDEServer->loadSettings(data.vrdeSettings); 7154 7153 if (FAILED(rc)) return rc; 7155 7154 #endif … … 8183 8182 8184 8183 #ifdef VBOX_WITH_VRDP 8185 /* VRD Psettings (optional) */8186 rc = mVRD PServer->saveSettings(data.vrdpSettings);8184 /* VRDEServer settings (optional) */ 8185 rc = mVRDEServer->saveSettings(data.vrdeSettings); 8187 8186 if (FAILED(rc)) throw rc; 8188 8187 #endif … … 9329 9328 9330 9329 #ifdef VBOX_WITH_VRDP 9331 if (mVRD PServer && (mData->flModifications & IsModified_VRDPServer))9332 mVRD PServer->rollback();9330 if (mVRDEServer && (mData->flModifications & IsModified_VRDEServer)) 9331 mVRDEServer->rollback(); 9333 9332 #endif 9334 9333 … … 9381 9380 that->onSharedFolderChange(); 9382 9381 9383 if (flModifications & IsModified_VRD PServer)9384 that->onVRD PServerChange(/* aRestart */ TRUE);9382 if (flModifications & IsModified_VRDEServer) 9383 that->onVRDEServerChange(/* aRestart */ TRUE); 9385 9384 if (flModifications & IsModified_USB) 9386 9385 that->onUSBControllerChange(); … … 9431 9430 mBIOSSettings->commit(); 9432 9431 #ifdef VBOX_WITH_VRDP 9433 mVRD PServer->commit();9432 mVRDEServer->commit(); 9434 9433 #endif 9435 9434 mAudioAdapter->commit(); … … 9563 9562 mBIOSSettings->copyFrom(aThat->mBIOSSettings); 9564 9563 #ifdef VBOX_WITH_VRDP 9565 mVRD PServer->copyFrom(aThat->mVRDPServer);9564 mVRDEServer->copyFrom(aThat->mVRDEServer); 9566 9565 #endif 9567 9566 mAudioAdapter->copyFrom(aThat->mAudioAdapter); … … 9892 9891 mBIOSSettings->init(this, aMachine->mBIOSSettings); 9893 9892 #ifdef VBOX_WITH_VRDP 9894 /* create another VRD PServer object that will be mutable */9895 unconst(mVRD PServer).createObject();9896 mVRD PServer->init(this, aMachine->mVRDPServer);9893 /* create another VRDEServer object that will be mutable */ 9894 unconst(mVRDEServer).createObject(); 9895 mVRDEServer->init(this, aMachine->mVRDEServer); 9897 9896 #endif 9898 9897 /* create another audio adapter object that will be mutable */ … … 11082 11081 * @note Locks this object for reading. 11083 11082 */ 11084 HRESULT SessionMachine::onVRD PServerChange(BOOL aRestart)11083 HRESULT SessionMachine::onVRDEServerChange(BOOL aRestart) 11085 11084 { 11086 11085 LogFlowThisFunc(("\n")); … … 11099 11098 return S_OK; 11100 11099 11101 return directControl->OnVRD PServerChange(aRestart);11100 return directControl->OnVRDEServerChange(aRestart); 11102 11101 } 11103 11102 -
trunk/src/VBox/Main/SessionImpl.cpp
r32885 r33386 610 610 } 611 611 612 STDMETHODIMP Session::OnVRD PServerChange(BOOL aRestart)612 STDMETHODIMP Session::OnVRDEServerChange(BOOL aRestart) 613 613 { 614 614 LogFlowThisFunc(("\n")); … … 621 621 AssertReturn(mType == SessionType_WriteLock, VBOX_E_INVALID_OBJECT_STATE); 622 622 623 return mConsole->onVRD PServerChange(aRestart);623 return mConsole->onVRDEServerChange(aRestart); 624 624 } 625 625 -
trunk/src/VBox/Main/SnapshotImpl.cpp
r33318 r33386 1007 1007 1008 1008 #ifdef VBOX_WITH_VRDP 1009 unconst(mVRD PServer).createObject();1010 mVRD PServer->initCopy(this, mPeer->mVRDPServer);1009 unconst(mVRDEServer).createObject(); 1010 mVRDEServer->initCopy(this, mPeer->mVRDEServer); 1011 1011 #endif 1012 1012 … … 1100 1100 1101 1101 #ifdef VBOX_WITH_VRDP 1102 unconst(mVRD PServer).createObject();1103 mVRD PServer->init(this);1102 unconst(mVRDEServer).createObject(); 1103 mVRDEServer->init(this); 1104 1104 #endif 1105 1105 -
trunk/src/VBox/Main/SystemPropertiesImpl.cpp
r33344 r33386 87 87 setDefaultHardDiskFormat(Utf8Str::Empty); 88 88 89 setRemoteDisplayAuthLibrary(Utf8Str::Empty); 89 setVRDEAuthLibrary(Utf8Str::Empty); 90 setDefaultVRDELibrary(Utf8Str::Empty); 90 91 91 92 m->ulLogHistoryCount = 3; … … 666 667 } 667 668 668 STDMETHODIMP SystemProperties::COMGETTER( RemoteDisplayAuthLibrary)(BSTR *aRemoteDisplayAuthLibrary)669 { 670 CheckComArgOutPointerValid(a RemoteDisplayAuthLibrary);671 672 AutoCaller autoCaller(this); 673 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 674 675 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 676 677 m->str RemoteDisplayAuthLibrary.cloneTo(aRemoteDisplayAuthLibrary);678 679 return S_OK; 680 } 681 682 STDMETHODIMP SystemProperties::COMSETTER( RemoteDisplayAuthLibrary)(IN_BSTR aRemoteDisplayAuthLibrary)669 STDMETHODIMP SystemProperties::COMGETTER(VRDEAuthLibrary)(BSTR *aVRDEAuthLibrary) 670 { 671 CheckComArgOutPointerValid(aVRDEAuthLibrary); 672 673 AutoCaller autoCaller(this); 674 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 675 676 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 677 678 m->strVRDEAuthLibrary.cloneTo(aVRDEAuthLibrary); 679 680 return S_OK; 681 } 682 683 STDMETHODIMP SystemProperties::COMSETTER(VRDEAuthLibrary)(IN_BSTR aVRDEAuthLibrary) 683 684 { 684 685 AutoCaller autoCaller(this); … … 686 687 687 688 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 688 HRESULT rc = set RemoteDisplayAuthLibrary(aRemoteDisplayAuthLibrary);689 HRESULT rc = setVRDEAuthLibrary(aVRDEAuthLibrary); 689 690 alock.release(); 690 691 … … 732 733 } 733 734 735 STDMETHODIMP SystemProperties::COMGETTER(DefaultVRDELibrary)(BSTR *aVRDELibrary) 736 { 737 CheckComArgOutPointerValid(aVRDELibrary); 738 739 AutoCaller autoCaller(this); 740 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 741 742 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 743 744 m->strDefaultVRDELibrary.cloneTo(aVRDELibrary); 745 746 return S_OK; 747 } 748 749 STDMETHODIMP SystemProperties::COMSETTER(DefaultVRDELibrary)(IN_BSTR aVRDELibrary) 750 { 751 AutoCaller autoCaller(this); 752 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 753 754 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 755 HRESULT rc = setDefaultVRDELibrary(aVRDELibrary); 756 alock.release(); 757 758 if (SUCCEEDED(rc)) 759 { 760 // VirtualBox::saveSettings() needs vbox write lock 761 AutoWriteLock vboxLock(mParent COMMA_LOCKVAL_SRC_POS); 762 rc = mParent->saveSettings(); 763 } 764 765 return rc; 766 } 767 734 768 STDMETHODIMP SystemProperties::COMGETTER(LogHistoryCount)(ULONG *count) 735 769 { … … 794 828 if (FAILED(rc)) return rc; 795 829 796 rc = set RemoteDisplayAuthLibrary(data.strRemoteDisplayAuthLibrary);830 rc = setVRDEAuthLibrary(data.strVRDEAuthLibrary); 797 831 if (FAILED(rc)) return rc; 798 832 799 833 rc = setWebServiceAuthLibrary(data.strWebServiceAuthLibrary); 834 if (FAILED(rc)) return rc; 835 836 rc = setDefaultVRDELibrary(data.strDefaultVRDELibrary); 800 837 if (FAILED(rc)) return rc; 801 838 … … 924 961 } 925 962 926 HRESULT SystemProperties::set RemoteDisplayAuthLibrary(const Utf8Str &aPath)963 HRESULT SystemProperties::setVRDEAuthLibrary(const Utf8Str &aPath) 927 964 { 928 965 if (!aPath.isEmpty()) 929 m->str RemoteDisplayAuthLibrary = aPath;966 m->strVRDEAuthLibrary = aPath; 930 967 else 931 m->strRemoteDisplayAuthLibrary = "VRDPAuth"; 968 m->strVRDEAuthLibrary = "VRDPAuth"; 969 970 return S_OK; 971 } 972 973 HRESULT SystemProperties::setDefaultVRDELibrary(const Utf8Str &aPath) 974 { 975 m->strDefaultVRDELibrary = aPath; 932 976 933 977 return S_OK; -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r33294 r33386 4456 4456 } 4457 4457 4458 STDMETHODIMP VirtualBox::VRDERegisterLibrary(IN_BSTR aName) 4459 { 4460 return E_FAIL; /* @todo VRDE */ 4461 } 4462 4463 STDMETHODIMP VirtualBox::VRDEUnregisterLibrary(IN_BSTR aName) 4464 { 4465 return E_FAIL; /* @todo VRDE */ 4466 } 4467 4468 STDMETHODIMP VirtualBox::VRDEListLibraries(ComSafeArrayOut(BSTR, aNames)) 4469 { 4470 return E_FAIL; /* @todo VRDE */ 4471 } 4472 4458 4473 /* vi: set tabstop=4 shiftwidth=4 expandtab: */ -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r33307 r33386 77 77 implementation, is used. 78 78 79 All the parts that a typical VirtualBox user interacts with (the Qt GUI ,80 the VBoxManage command-line interface and the VBoxVRDP server) are technically79 All the parts that a typical VirtualBox user interacts with (the Qt GUI 80 and the VBoxManage command-line interface) are technically 81 81 front-ends to the Main API and only use the interfaces that are documented 82 82 in this Main API documentation. This ensures that, with any given release … … 1374 1374 <interface 1375 1375 name="IVirtualBox" extends="$unknown" 1376 uuid=" 5e887b09-e3f3-4787-b9f3-8ade5d04d675"1376 uuid="2ecb8c49-ce8a-41fc-96da-9a438b44e4b1" 1377 1377 wsmap="managed" 1378 1378 > … … 2163 2163 <param name="result" type="boolean" dir="return"> 2164 2164 <desc>If firmware of this type and version is available.</desc> 2165 </param> 2166 </method> 2167 2168 <method name="VRDERegisterLibrary"> 2169 <desc> 2170 Appends a VRDE library to this VirtualBox installation. 2171 2172 The library implements a VirtualBox Remote Desktop Extension (VRDE), 2173 which is used to remotely connect to the virtual machines. 2174 2175 The system library extension (".DLL" or ".so") must be omitted. 2176 The library must reside in the VirtualBox installation directory. 2177 </desc> 2178 <param name="name" type="wstring" dir="in"> 2179 <desc>The library name.</desc> 2180 </param> 2181 </method> 2182 2183 <method name="VRDEUnregisterLibrary"> 2184 <desc> 2185 Removes a VRDE library from this VirtualBox installation. 2186 </desc> 2187 <param name="name" type="wstring" dir="in"> 2188 <desc>The library name.</desc> 2189 </param> 2190 </method> 2191 2192 <method name="VRDEListLibraries"> 2193 <desc> 2194 List registered libraries. 2195 </desc> 2196 <param name="names" type="wstring" dir="return" safearray="yes"> 2197 <desc>Array of names of the libraries.</desc> 2165 2198 </param> 2166 2199 </method> … … 3346 3379 <interface 3347 3380 name="IMachine" extends="$unknown" 3348 uuid=" 14136b33-438a-45de-884c-550e9eb34f23"3381 uuid="8934e426-1c09-459f-bbc4-58dba016fbbe" 3349 3382 wsmap="managed" 3350 3383 > … … 3649 3682 </attribute> 3650 3683 3651 <attribute name="VRD PServer" type="IVRDPServer" readonly="yes">3652 <desc>V RDPserver object.</desc>3684 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes"> 3685 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc> 3653 3686 </attribute> 3654 3687 … … 4124 4157 <ul> 4125 4158 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li> 4126 <li><tt>" vrdp"</tt>: VBoxHeadless (VRDPServer) front-end</li>4159 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li> 4127 4160 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li> 4128 4161 </ul> … … 5627 5660 5628 5661 <interface 5629 name="I RemoteDisplayInfo" extends="$unknown"5630 uuid=" b3741084-806f-4c3b-8c42-ebad1a81e45a"5662 name="IVRDEServerInfo" extends="$unknown" 5663 uuid="6890123c-5218-42ba-9afd-c71699475115" 5631 5664 wsmap="struct" 5632 5665 > 5633 5666 <desc> 5634 Contains information about the remote d isplay (VRDP)capabilities and status.5635 This is used in the <link to="IConsole:: remoteDisplayInfo" /> attribute.5667 Contains information about the remote desktop (VRDE) server capabilities and status. 5668 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute. 5636 5669 </desc> 5637 5670 5638 5671 <attribute name="active" type="boolean" readonly="yes"> 5639 5672 <desc> 5640 Whether the remote d isplayconnection is active.5673 Whether the remote desktop connection is active. 5641 5674 </desc> 5642 5675 </attribute> … … 5644 5677 <attribute name="port" type="long" readonly="yes"> 5645 5678 <desc> 5646 VRD Pserver port number. If this property is equal to <tt>0</tt>, then5647 the VRD P server failed to start, usually because there are no free TCP5648 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRD P5679 VRDE server port number. If this property is equal to <tt>0</tt>, then 5680 the VRDE server failed to start, usually because there are no free IP 5681 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE 5649 5682 server has not yet been started. 5650 5683 </desc> … … 5736 5769 <interface 5737 5770 name="IConsole" extends="$unknown" 5738 uuid=" 03cb7897-ea17-4e6c-81ae-4bd90be2fde2"5771 uuid="3c4a453e-d27b-44a2-b59d-dda6e1835e57" 5739 5772 wsmap="managed" 5740 5773 > … … 5829 5862 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes"> 5830 5863 <desc> 5831 List of USB devices currently attached to the remote VRD Pclient.5864 List of USB devices currently attached to the remote VRDE client. 5832 5865 Once a new device is physically attached to the remote host computer, 5833 5866 it appears in this list and remains there until detached. … … 5851 5884 </attribute> 5852 5885 5853 <attribute name=" remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">5854 <desc> 5855 Interface that provides information on Remote D isplay (VRDP) connection.5886 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes"> 5887 <desc> 5888 Interface that provides information on Remote Desktop Extension (VRDE) connection. 5856 5889 </desc> 5857 5890 </attribute> … … 7086 7119 name="ISystemProperties" 7087 7120 extends="$unknown" 7088 uuid=" f8fff1f1-eeb4-4483-a2a4-b4186fab5a1e"7121 uuid="2af0100b-fda2-4c6a-8e8f-31e4ba871886" 7089 7122 wsmap="managed" 7090 7123 > … … 7278 7311 </attribute> 7279 7312 7280 <attribute name=" remoteDisplayAuthLibrary" type="wstring">7281 <desc> 7282 Library that provides authentication for VRDPclients. The library7313 <attribute name="VRDEAuthLibrary" type="wstring"> 7314 <desc> 7315 Library that provides authentication for Remote Desktop clients. The library 7283 7316 is used if a virtual machine's authentication type is set to "external" 7284 7317 in the VM RemoteDisplay configuration. … … 7308 7341 within the <link to="IWebsessionManager::logon" /> implementation. 7309 7342 7310 As opposed to <link to="ISystemProperties:: remoteDisplayAuthLibrary" />,7343 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />, 7311 7344 there is no per-VM setting for this, as the webservice is a global 7312 7345 resource (if it is running). Only for this setting (for the webservice), … … 7317 7350 The initial value of this property is <tt>"VRDPAuth"</tt>, 7318 7351 meaning that the webservice will use the same authentication 7319 library that is used by default for V BoxVRDP(again, see7320 <link to="ISystemProperties:: remoteDisplayAuthLibrary" />).7352 library that is used by default for VRDE (again, see 7353 <link to="ISystemProperties::VRDEAuthLibrary" />). 7321 7354 The format and calling convention of authentication libraries 7322 is the same for the webservice as it is for V BoxVRDP.7355 is the same for the webservice as it is for VRDE. 7323 7356 7324 7357 <note> … … 7326 7359 initial value. 7327 7360 </note> 7361 </desc> 7362 </attribute> 7363 7364 <attribute name="defaultVRDELibrary" type="wstring"> 7365 <desc> 7366 Default VRDE library. 7367 7368 The default value of this property is an empty string, which means that the 7369 VRDE is not available. 7370 7371 For details about VirtualBox Remote Desktop Extension and how to implement 7372 it, please refer to the VirtualBox SDK. 7328 7373 </desc> 7329 7374 </attribute> … … 11821 11866 <attribute name="remote" type="boolean" readonly="yes"> 11822 11867 <desc> 11823 Whether the device is physically connected to a remote VRD P11868 Whether the device is physically connected to a remote VRDE 11824 11869 client or to a local host machine. 11825 11870 </desc> … … 12248 12293 </interface> 12249 12294 12250 <!--12251 // IVRDPServer12252 /////////////////////////////////////////////////////////////////////////12253 -->12254 12255 12295 <enum 12256 name=" VRDPAuthType"12257 uuid=" 3d91887a-b67f-4b33-85bf-2da7ab1ea83a"12296 name="AuthType" 12297 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d" 12258 12298 > 12259 12299 <desc> 12260 V RDPauthentication type.12300 VirtualBox authentication type. 12261 12301 </desc> 12262 12302 … … 12268 12308 </enum> 12269 12309 12310 <!-- 12311 // IVRDEServer 12312 ///////////////////////////////////////////////////////////////////////// 12313 --> 12314 12270 12315 <interface 12271 name="IVRD PServer" extends="$unknown"12272 uuid=" 7aeeb530-0b08-41fe-835d-9be9ec1dbe5c"12316 name="IVRDEServer" extends="$unknown" 12317 uuid="f68a6b34-6f09-4040-8de1-e8d746c4a9ea" 12273 12318 wsmap="managed" 12274 12319 > 12275 12320 <attribute name="enabled" type="boolean"> 12276 <desc>VRDP server status.</desc> 12277 </attribute> 12278 12279 <attribute name="ports" type="wstring"> 12280 <desc> 12281 VRDP server port numbers. The server will try to bind to one of free ports from the list. 12282 <note> 12283 This is a string of comma separated TCP port numbers or port number ranges. 12284 Example <tt>5000,5010-5012,5015</tt> 12285 </note> 12286 </desc> 12287 </attribute> 12288 12289 <attribute name="netAddress" type="wstring"> 12290 <desc>VRDP server address.</desc> 12291 </attribute> 12292 12293 <attribute name="authType" type="VRDPAuthType"> 12294 <desc>VRDP authentication method.</desc> 12321 <desc>VRDE server status.</desc> 12322 </attribute> 12323 12324 <attribute name="authType" type="AuthType"> 12325 <desc>VRDE authentication method.</desc> 12295 12326 </attribute> 12296 12327 … … 12309 12340 <desc> 12310 12341 Flag whether the existing connection must be dropped and a new connection 12311 must be established by the VRD Pserver, when a new client connects in single12342 must be established by the VRDE server, when a new client connects in single 12312 12343 connection mode. 12313 12344 </desc> … … 12316 12347 <attribute name="videoChannel" type="boolean"> 12317 12348 <desc> 12318 Flag whether RDP video channel is supported.12349 Flag whether video redirectiron channel is enabled. 12319 12350 </desc> 12320 12351 </attribute> … … 12325 12356 </desc> 12326 12357 </attribute> 12358 12359 <method name="setVRDEProperty"> 12360 <desc> 12361 Sets a VRDE specific property string. 12362 12363 If you pass @c null or empty string as a key @a value, the given @a key 12364 will be deleted. 12365 12366 </desc> 12367 <param name="key" type="wstring" dir="in"> 12368 <desc>Name of the key to set.</desc> 12369 </param> 12370 <param name="value" type="wstring" dir="in"> 12371 <desc>Value to assign to the key.</desc> 12372 </param> 12373 </method> 12374 12375 <method name="getVRDEProperty"> 12376 <desc> 12377 Returns a VRDE specific property string. 12378 12379 If the requested data @a key does not exist, this function will 12380 succeed and return an empty string in the @a value argument. 12381 12382 </desc> 12383 <param name="key" type="wstring" dir="in"> 12384 <desc>Name of the key to get.</desc> 12385 </param> 12386 <param name="value" type="wstring" dir="return"> 12387 <desc>Value of the requested key.</desc> 12388 </param> 12389 </method> 12327 12390 12328 12391 </interface> … … 12442 12505 <interface 12443 12506 name="IInternalSessionControl" extends="$unknown" 12444 uuid="0 431ef9e-2c2e-42af-87d7-c8f52455f28a"12507 uuid="06ef98a7-f7c0-45ba-bf99-9aca7a4d5530" 12445 12508 internal="yes" 12446 12509 wsmap="suppress" … … 12631 12694 </method> 12632 12695 12633 <method name="onVRD PServerChange">12634 <desc> 12635 Triggered when settings of the VRD Pserver object of the12696 <method name="onVRDEServerChange"> 12697 <desc> 12698 Triggered when settings of the VRDE server object of the 12636 12699 associated virtual machine have changed. 12637 12700 … … 13851 13914 <enum 13852 13915 name="VBoxEventType" 13853 uuid=" 1728bb3b-4843-4f12-af67-f7a1f69f3a52">13916 uuid="e085d0b1-05e6-4f40-a709-b7266fbdb236"> 13854 13917 13855 13918 <desc> … … 14013 14076 </desc> 14014 14077 </const> 14015 <const name="OnVRD PServerChanged" value="53">14016 <desc> 14017 See <link to="IVRD PServerChangedEvent">IVRDPServerChangedEvent</link>.14078 <const name="OnVRDEServerChanged" value="53"> 14079 <desc> 14080 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>. 14018 14081 </desc> 14019 14082 </const> … … 14053 14116 </desc> 14054 14117 </const> 14055 <const name="On RemoteDisplayInfoChanged" value="61">14056 <desc> 14057 See <link to="I RemoteDisplayInfoChangedEvent">IRemoteDisplayInfoChangedEvent</link>.14118 <const name="OnVRDEServerInfoChanged" value="61"> 14119 <desc> 14120 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>. 14058 14121 </desc> 14059 14122 </const> … … 14908 14971 14909 14972 <interface 14910 name="IVRD PServerChangedEvent" extends="IEvent"14911 uuid=" 726038B6-6279-4A7A-8037-D041693D1915"14912 wsmap="managed" autogen="VBoxEvent" id="OnVRD PServerChanged"14973 name="IVRDEServerChangedEvent" extends="IEvent" 14974 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c" 14975 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged" 14913 14976 > 14914 14977 <desc> 14915 14978 Notification when a property of the 14916 <link to="IMachine::VRD PServer">VRDPserver</link> changes.14917 Interested callees should use IVRD PServer methods and attributes to14979 <link to="IMachine::VRDEServer">VRDE server</link> changes. 14980 Interested callees should use IVRDEServer methods and attributes to 14918 14981 find out what has changed. 14919 14982 </desc> … … 14921 14984 14922 14985 <interface 14923 name="I RemoteDisplayInfoChangedEvent" extends="IEvent"14924 uuid=" 65B556C5-2A99-47D8-B311-FC177F0914CD"14925 wsmap="managed" autogen="VBoxEvent" id="On RemoteDisplayInfoChanged"14986 name="IVRDEServerInfoChangedEvent" extends="IEvent" 14987 uuid="dd6a1080-e1b7-4339-a549-f0878115596e" 14988 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged" 14926 14989 > 14927 14990 <desc> 14928 Notification when the status of the VRD Pserver changes. Interested callees14929 should use <link to="IConsole:: remoteDisplayInfo">IRemoteDisplayInfo</link>14991 Notification when the status of the VRDE server changes. Interested callees 14992 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link> 14930 14993 attributes to find out what is the current status. 14931 14994 </desc> -
trunk/src/VBox/Main/include/ConsoleImpl.h
r33004 r33386 33 33 class RemoteUSBDevice; 34 34 class SharedFolder; 35 class RemoteDisplayInfo;35 class VRDEServerInfo; 36 36 class AudioSniffer; 37 37 class ConsoleVRDPServer; … … 121 121 STDMETHOD(COMGETTER(USBDevices))(ComSafeArrayOut(IUSBDevice *, aUSBDevices)); 122 122 STDMETHOD(COMGETTER(RemoteUSBDevices))(ComSafeArrayOut(IHostUSBDevice *, aRemoteUSBDevices)); 123 STDMETHOD(COMGETTER( RemoteDisplayInfo))(IRemoteDisplayInfo **aRemoteDisplayInfo);123 STDMETHOD(COMGETTER(VRDEServerInfo))(IVRDEServerInfo **aVRDEServerInfo); 124 124 STDMETHOD(COMGETTER(SharedFolders))(ComSafeArrayOut(ISharedFolder *, aSharedFolders)); 125 125 STDMETHOD(COMGETTER(EventSource)) (IEventSource ** aEventSource); … … 169 169 170 170 /** Method is called only from ConsoleVRDPServer */ 171 IVRD PServer *getVRDPServer() const { return mVRDPServer; }171 IVRDEServer *getVRDEServer() const { return mVRDEServer; } 172 172 173 173 ConsoleVRDPServer *consoleVRDPServer() const { return mConsoleVRDPServer; } … … 183 183 HRESULT onCPUChange(ULONG aCPU, BOOL aRemove); 184 184 HRESULT onCPUExecutionCapChange(ULONG aExecutionCap); 185 HRESULT onVRD PServerChange(BOOL aRestart);185 HRESULT onVRDEServerChange(BOOL aRestart); 186 186 HRESULT onUSBControllerChange(); 187 187 HRESULT onSharedFolderChange(BOOL aGlobal); … … 228 228 void onRuntimeError(BOOL aFatal, IN_BSTR aErrorID, IN_BSTR aMessage); 229 229 HRESULT onShowWindow(BOOL aCheck, BOOL *aCanShow, LONG64 *aWinId); 230 void on RemoteDisplayInfoChange();230 void onVRDEServerInfoChange(); 231 231 232 232 static const PDMDRVREG DrvStatusReg; … … 594 594 const ComPtr<IInternalMachineControl> mControl; 595 595 596 const ComPtr <IVRD PServer> mVRDPServer;596 const ComPtr <IVRDEServer> mVRDEServer; 597 597 598 598 ConsoleVRDPServer * const mConsoleVRDPServer; … … 603 603 const ComObjPtr<Display> mDisplay; 604 604 const ComObjPtr<MachineDebugger> mDebugger; 605 const ComObjPtr< RemoteDisplayInfo> mRemoteDisplayInfo;605 const ComObjPtr<VRDEServerInfo> mVRDEServerInfo; 606 606 const ComObjPtr<EventSource> mEventSource; 607 607 -
trunk/src/VBox/Main/include/ConsoleVRDPServer.h
r33005 r33386 3 3 /** @file 4 4 * 5 * VBox Console VRD P Helper class and implementation of IRemoteDisplayInfo5 * VBox Console VRDE Server Helper class and implementation of IVRDEServerInfo 6 6 */ 7 7 8 8 /* 9 * Copyright (C) 2006-20 08Oracle Corporation9 * Copyright (C) 2006-2010 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 149 149 HVRDESERVER mhServer; 150 150 151 static bool loadVRDPLibrary (void);151 static int loadVRDPLibrary (const char *pszLibraryName); 152 152 153 153 /** Static because will never load this more than once! */ … … 230 230 class Console; 231 231 232 class ATL_NO_VTABLE RemoteDisplayInfo :232 class ATL_NO_VTABLE VRDEServerInfo : 233 233 public VirtualBoxBase, 234 VBOX_SCRIPTABLE_IMPL(I RemoteDisplayInfo)234 VBOX_SCRIPTABLE_IMPL(IVRDEServerInfo) 235 235 { 236 236 public: 237 237 238 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT( RemoteDisplayInfo, IRemoteDisplayInfo)239 240 DECLARE_NOT_AGGREGATABLE( RemoteDisplayInfo)238 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(VRDEServerInfo, IVRDEServerInfo) 239 240 DECLARE_NOT_AGGREGATABLE(VRDEServerInfo) 241 241 242 242 DECLARE_PROTECT_FINAL_CONSTRUCT() 243 243 244 BEGIN_COM_MAP( RemoteDisplayInfo)244 BEGIN_COM_MAP(VRDEServerInfo) 245 245 COM_INTERFACE_ENTRY(ISupportErrorInfo) 246 COM_INTERFACE_ENTRY(I RemoteDisplayInfo)246 COM_INTERFACE_ENTRY(IVRDEServerInfo) 247 247 COM_INTERFACE_ENTRY(IDispatch) 248 248 END_COM_MAP() 249 249 250 DECLARE_EMPTY_CTOR_DTOR ( RemoteDisplayInfo)250 DECLARE_EMPTY_CTOR_DTOR (VRDEServerInfo) 251 251 252 252 HRESULT FinalConstruct(); … … 257 257 void uninit(); 258 258 259 /* I RemoteDisplayInfo properties */259 /* IVRDEServerInfo properties */ 260 260 #define DECL_GETTER(_aType, _aName) STDMETHOD(COMGETTER(_aName)) (_aType *a##_aName) 261 261 DECL_GETTER (BOOL, Active); -
trunk/src/VBox/Main/include/MachineImpl.h
r33300 r33386 404 404 STDMETHOD(COMSETTER(SnapshotFolder))(IN_BSTR aSavedStateFolder); 405 405 STDMETHOD(COMGETTER(MediumAttachments))(ComSafeArrayOut(IMediumAttachment *, aAttachments)); 406 STDMETHOD(COMGETTER(VRD PServer))(IVRDPServer **vrdpServer);406 STDMETHOD(COMGETTER(VRDEServer))(IVRDEServer **vrdeServer); 407 407 STDMETHOD(COMGETTER(AudioAdapter))(IAudioAdapter **audioAdapter); 408 408 STDMETHOD(COMGETTER(USBController))(IUSBController * *aUSBController); … … 602 602 IsModified_SerialPorts = 0x0010, 603 603 IsModified_ParallelPorts = 0x0020, 604 IsModified_VRD PServer = 0x0040,604 IsModified_VRDEServer = 0x0040, 605 605 IsModified_AudioAdapter = 0x0080, 606 606 IsModified_USB = 0x0100, … … 616 616 virtual HRESULT onSerialPortChange(ISerialPort * /* serialPort */) { return S_OK; } 617 617 virtual HRESULT onParallelPortChange(IParallelPort * /* parallelPort */) { return S_OK; } 618 virtual HRESULT onVRD PServerChange(BOOL /* aRestart */) { return S_OK; }618 virtual HRESULT onVRDEServerChange(BOOL /* aRestart */) { return S_OK; } 619 619 virtual HRESULT onUSBControllerChange() { return S_OK; } 620 620 virtual HRESULT onStorageControllerChange() { return S_OK; } … … 848 848 // so they cannot be a part of HWData 849 849 850 const ComObjPtr<VRD PServer> mVRDPServer;850 const ComObjPtr<VRDEServer> mVRDEServer; 851 851 const ComObjPtr<SerialPort> mSerialPorts[SchemaDefs::SerialPortCount]; 852 852 const ComObjPtr<ParallelPort> mParallelPorts[SchemaDefs::ParallelPortCount]; … … 961 961 HRESULT onCPUChange(ULONG aCPU, BOOL aRemove); 962 962 HRESULT onCPUExecutionCapChange(ULONG aCpuExecutionCap); 963 HRESULT onVRD PServerChange(BOOL aRestart);963 HRESULT onVRDEServerChange(BOOL aRestart); 964 964 HRESULT onUSBControllerChange(); 965 965 HRESULT onUSBDeviceAttach(IUSBDevice *aDevice, -
trunk/src/VBox/Main/include/SessionImpl.h
r32885 r33386 91 91 STDMETHOD(OnCPUChange)(ULONG aCPU, BOOL aRemove); 92 92 STDMETHOD(OnCPUExecutionCapChange)(ULONG aExecutionCap); 93 STDMETHOD(OnVRD PServerChange)(BOOL aRestart);93 STDMETHOD(OnVRDEServerChange)(BOOL aRestart); 94 94 STDMETHOD(OnUSBControllerChange)(); 95 95 STDMETHOD(OnSharedFolderChange)(BOOL aGlobal); -
trunk/src/VBox/Main/include/SystemPropertiesImpl.h
r33344 r33386 86 86 STDMETHOD(COMGETTER(FreeDiskSpacePercentError))(ULONG *aFreeDiskSpacePercent); 87 87 STDMETHOD(COMSETTER(FreeDiskSpacePercentError))(ULONG aFreeDiskSpacePercent); 88 STDMETHOD(COMGETTER( RemoteDisplayAuthLibrary))(BSTR *aRemoteDisplayAuthLibrary);89 STDMETHOD(COMSETTER( RemoteDisplayAuthLibrary))(IN_BSTR aRemoteDisplayAuthLibrary);88 STDMETHOD(COMGETTER(VRDEAuthLibrary))(BSTR *aVRDEAuthLibrary); 89 STDMETHOD(COMSETTER(VRDEAuthLibrary))(IN_BSTR aVRDEAuthLibrary); 90 90 STDMETHOD(COMGETTER(WebServiceAuthLibrary))(BSTR *aWebServiceAuthLibrary); 91 91 STDMETHOD(COMSETTER(WebServiceAuthLibrary))(IN_BSTR aWebServiceAuthLibrary); 92 STDMETHOD(COMGETTER(DefaultVRDELibrary))(BSTR *aVRDELibrary); 93 STDMETHOD(COMSETTER(DefaultVRDELibrary))(IN_BSTR aVRDELibrary); 92 94 STDMETHOD(COMGETTER(LogHistoryCount))(ULONG *count); 93 95 STDMETHOD(COMSETTER(LogHistoryCount))(ULONG count); … … 119 121 HRESULT setDefaultHardDiskFormat(const Utf8Str &aFormat); 120 122 121 HRESULT set RemoteDisplayAuthLibrary(const Utf8Str &aPath);123 HRESULT setVRDEAuthLibrary(const Utf8Str &aPath); 122 124 HRESULT setWebServiceAuthLibrary(const Utf8Str &aPath); 125 HRESULT setDefaultVRDELibrary(const Utf8Str &aPath); 123 126 124 127 VirtualBox * const mParent; -
trunk/src/VBox/Main/include/VRDPServerImpl.h
r30739 r33386 7 7 8 8 /* 9 * Copyright (C) 2006-20 07Oracle Corporation9 * Copyright (C) 2006-2010 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 27 27 namespace settings 28 28 { 29 struct VRD PSettings;29 struct VRDESettings; 30 30 } 31 31 32 class ATL_NO_VTABLE VRD PServer :32 class ATL_NO_VTABLE VRDEServer : 33 33 public VirtualBoxBase, 34 VBOX_SCRIPTABLE_IMPL(IVRD PServer)34 VBOX_SCRIPTABLE_IMPL(IVRDEServer) 35 35 { 36 36 public: … … 39 39 { 40 40 BOOL mEnabled; 41 Bstr m VRDPPorts;42 Bstr m VRDPAddress;43 VRDPAuthType_T mAuthType;41 Bstr mPorts; 42 Bstr mAddress; 43 AuthType_T mAuthType; 44 44 ULONG mAuthTimeout; 45 45 BOOL mAllowMultiConnection; … … 49 49 }; 50 50 51 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(VRD PServer, IVRDPServer)51 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(VRDEServer, IVRDEServer) 52 52 53 DECLARE_NOT_AGGREGATABLE(VRD PServer)53 DECLARE_NOT_AGGREGATABLE(VRDEServer) 54 54 55 55 DECLARE_PROTECT_FINAL_CONSTRUCT() 56 56 57 BEGIN_COM_MAP(VRD PServer)57 BEGIN_COM_MAP(VRDEServer) 58 58 COM_INTERFACE_ENTRY (ISupportErrorInfo) 59 COM_INTERFACE_ENTRY (IVRD PServer)60 COM_INTERFACE_ENTRY2 (IDispatch, IVRD PServer)59 COM_INTERFACE_ENTRY (IVRDEServer) 60 COM_INTERFACE_ENTRY2 (IDispatch, IVRDEServer) 61 61 END_COM_MAP() 62 62 63 DECLARE_EMPTY_CTOR_DTOR (VRD PServer)63 DECLARE_EMPTY_CTOR_DTOR (VRDEServer) 64 64 65 65 HRESULT FinalConstruct(); … … 68 68 // public initializer/uninitializer for internal purposes only 69 69 HRESULT init(Machine *aParent); 70 HRESULT init(Machine *aParent, VRD PServer *aThat);71 HRESULT initCopy (Machine *aParent, VRD PServer *aThat);70 HRESULT init(Machine *aParent, VRDEServer *aThat); 71 HRESULT initCopy (Machine *aParent, VRDEServer *aThat); 72 72 void uninit(); 73 73 74 // IVRD PServer properties74 // IVRDEServer properties 75 75 STDMETHOD(COMGETTER(Enabled)) (BOOL *aEnabled); 76 76 STDMETHOD(COMSETTER(Enabled)) (BOOL aEnable); 77 STDMETHOD(COMGETTER(Ports)) (BSTR *aPorts); 78 STDMETHOD(COMSETTER(Ports)) (IN_BSTR aPorts); 79 STDMETHOD(COMGETTER(NetAddress)) (BSTR *aAddress); 80 STDMETHOD(COMSETTER(NetAddress)) (IN_BSTR aAddress); 81 STDMETHOD(COMGETTER(AuthType)) (VRDPAuthType_T *aType); 82 STDMETHOD(COMSETTER(AuthType)) (VRDPAuthType_T aType); 77 STDMETHOD(COMGETTER(AuthType)) (AuthType_T *aType); 78 STDMETHOD(COMSETTER(AuthType)) (AuthType_T aType); 83 79 STDMETHOD(COMGETTER(AuthTimeout)) (ULONG *aTimeout); 84 80 STDMETHOD(COMSETTER(AuthTimeout)) (ULONG aTimeout); … … 92 88 STDMETHOD(COMSETTER(VideoChannelQuality)) (ULONG aVideoChannelQuality); 93 89 94 // IVRDPServer methods 90 // IVRDEServer methods 91 STDMETHOD(SetVRDEProperty) (IN_BSTR aKey, IN_BSTR aValue); 92 STDMETHOD(GetVRDEProperty) (IN_BSTR aKey, BSTR *aValue); 95 93 96 94 // public methods only for internal purposes 97 95 98 HRESULT loadSettings(const settings::VRD PSettings &data);99 HRESULT saveSettings(settings::VRD PSettings &data);96 HRESULT loadSettings(const settings::VRDESettings &data); 97 HRESULT saveSettings(settings::VRDESettings &data); 100 98 101 99 void rollback(); 102 100 void commit(); 103 void copyFrom (VRD PServer *aThat);101 void copyFrom (VRDEServer *aThat); 104 102 105 103 private: 106 104 107 105 Machine * const mParent; 108 const ComObjPtr<VRD PServer> mPeer;106 const ComObjPtr<VRDEServer> mPeer; 109 107 110 108 Backupable<Data> mData; -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r33294 r33386 154 154 BSTR * aUrl, BSTR * aFile, BOOL * aResult); 155 155 156 STDMETHOD(VRDERegisterLibrary)(IN_BSTR aName); 157 STDMETHOD(VRDEUnregisterLibrary)(IN_BSTR aName); 158 STDMETHOD(VRDEListLibraries)(ComSafeArrayOut(BSTR, aNames)); 156 159 /* public methods only for internal purposes */ 157 160 -
trunk/src/VBox/Main/testcase/tstAPI.cpp
r32718 r33386 1041 1041 #if 0 1042 1042 RTPrintf("\n"); 1043 RTPrintf("Enabling the VRD Pserver (must succeed even if the VM is saved):\n");1044 ComPtr<IVRD PServer> vrdp;1045 CHECK_ERROR_BREAK(sessionMachine, COMGETTER(VRD PServer)(vrdp.asOutParam()));1046 if (FAILED(vrd p->COMSETTER(Enabled)(TRUE)))1047 { 1048 PRINT_ERROR_INFO(com::ErrorInfo(vrd p));1043 RTPrintf("Enabling the VRDE server (must succeed even if the VM is saved):\n"); 1044 ComPtr<IVRDEServer> vrdeServer; 1045 CHECK_ERROR_BREAK(sessionMachine, COMGETTER(VRDEServer)(vrdeServer.asOutParam())); 1046 if (FAILED(vrdeServer->COMSETTER(Enabled)(TRUE))) 1047 { 1048 PRINT_ERROR_INFO(com::ErrorInfo(vrdeServer)); 1049 1049 } 1050 1050 else 1051 1051 { 1052 1052 BOOL enabled = FALSE; 1053 CHECK_ERROR_BREAK(vrd p, COMGETTER(Enabled)(&enabled));1054 RTPrintf("VRD Pserver is %s\n", enabled ? "enabled" : "disabled");1053 CHECK_ERROR_BREAK(vrdeServer, COMGETTER(Enabled)(&enabled)); 1054 RTPrintf("VRDE server is %s\n", enabled ? "enabled" : "disabled"); 1055 1055 } 1056 1056 #endif … … 1233 1233 ComPtr<IMachine> machine; 1234 1234 Bstr name = argc > 1 ? argv[1] : "dsl"; 1235 Bstr sessionType = argc > 2 ? argv[2] : " vrdp";1235 Bstr sessionType = argc > 2 ? argv[2] : "headless"; 1236 1236 RTPrintf("Getting a machine object named '%ls'...\n", name.raw()); 1237 1237 CHECK_RC_BREAK(virtualBox->FindMachine(name, machine.asOutParam())); -
trunk/src/VBox/Main/xml/Settings.cpp
r33238 r33386 1229 1229 pelmGlobalChild->getAttributeValue("defaultMachineFolder", systemProperties.strDefaultMachineFolder); 1230 1230 pelmGlobalChild->getAttributeValue("defaultHardDiskFormat", systemProperties.strDefaultHardDiskFormat); 1231 pelmGlobalChild->getAttributeValue("remoteDisplayAuthLibrary", systemProperties.strRemoteDisplayAuthLibrary); 1231 if (!pelmGlobalChild->getAttributeValue("VRDEAuthLibrary", systemProperties.strVRDEAuthLibrary)) 1232 // pre-1.11 used @remoteDisplayAuthLibrary instead 1233 pelmGlobalChild->getAttributeValue("remoteDisplayAuthLibrary", systemProperties.strVRDEAuthLibrary); 1232 1234 pelmGlobalChild->getAttributeValue("webServiceAuthLibrary", systemProperties.strWebServiceAuthLibrary); 1235 pelmGlobalChild->getAttributeValue("defaultVRDELibrary", systemProperties.strDefaultVRDELibrary); 1233 1236 pelmGlobalChild->getAttributeValue("LogHistoryCount", systemProperties.ulLogHistoryCount); 1234 1237 } … … 1335 1338 if (systemProperties.strDefaultHardDiskFormat.length()) 1336 1339 pelmSysProps->setAttribute("defaultHardDiskFormat", systemProperties.strDefaultHardDiskFormat); 1337 if (systemProperties.str RemoteDisplayAuthLibrary.length())1338 pelmSysProps->setAttribute(" remoteDisplayAuthLibrary", systemProperties.strRemoteDisplayAuthLibrary);1340 if (systemProperties.strVRDEAuthLibrary.length()) 1341 pelmSysProps->setAttribute("VRDEAuthLibrary", systemProperties.strVRDEAuthLibrary); 1339 1342 if (systemProperties.strWebServiceAuthLibrary.length()) 1340 1343 pelmSysProps->setAttribute("webServiceAuthLibrary", systemProperties.strWebServiceAuthLibrary); 1344 if (systemProperties.strDefaultVRDELibrary.length()) 1345 pelmSysProps->setAttribute("defaultVRDELibrary", systemProperties.strDefaultVRDELibrary); 1341 1346 pelmSysProps->setAttribute("LogHistoryCount", systemProperties.ulLogHistoryCount); 1342 1347 … … 1365 1370 * machine settings have really changed and thus need to be written out to disk. 1366 1371 */ 1367 bool VRD PSettings::operator==(const VRDPSettings& v) const1372 bool VRDESettings::operator==(const VRDESettings& v) const 1368 1373 { 1369 1374 return ( (this == &v) … … 1595 1600 && (keyboardHidType == h.keyboardHidType) 1596 1601 && (chipsetType == h.chipsetType) 1597 && (vrd pSettings == h.vrdpSettings)1602 && (vrdeSettings == h.vrdeSettings) 1598 1603 && (biosSettings == h.biosSettings) 1599 1604 && (usbController == h.usbController) … … 2426 2431 else if (pelmHwChild->nameEquals("RemoteDisplay")) 2427 2432 { 2428 pelmHwChild->getAttributeValue("enabled", hw.vrd pSettings.fEnabled);2429 pelmHwChild->getAttributeValue("port", hw.vrd pSettings.strPort);2430 pelmHwChild->getAttributeValue("netAddress", hw.vrd pSettings.strNetAddress);2433 pelmHwChild->getAttributeValue("enabled", hw.vrdeSettings.fEnabled); 2434 pelmHwChild->getAttributeValue("port", hw.vrdeSettings.strPort); 2435 pelmHwChild->getAttributeValue("netAddress", hw.vrdeSettings.strNetAddress); 2431 2436 2432 2437 Utf8Str strAuthType; … … 2436 2441 strAuthType.toUpper(); 2437 2442 if (strAuthType == "NULL") 2438 hw.vrd pSettings.authType = VRDPAuthType_Null;2443 hw.vrdeSettings.authType = AuthType_Null; 2439 2444 else if (strAuthType == "GUEST") 2440 hw.vrd pSettings.authType = VRDPAuthType_Guest;2445 hw.vrdeSettings.authType = AuthType_Guest; 2441 2446 else if (strAuthType == "EXTERNAL") 2442 hw.vrd pSettings.authType = VRDPAuthType_External;2447 hw.vrdeSettings.authType = AuthType_External; 2443 2448 else 2444 2449 throw ConfigFileError(this, pelmHwChild, N_("Invalid value '%s' in RemoteDisplay/@authType attribute"), strAuthType.c_str()); 2445 2450 } 2446 2451 2447 pelmHwChild->getAttributeValue("authTimeout", hw.vrd pSettings.ulAuthTimeout);2448 pelmHwChild->getAttributeValue("allowMultiConnection", hw.vrd pSettings.fAllowMultiConnection);2449 pelmHwChild->getAttributeValue("reuseSingleConnection", hw.vrd pSettings.fReuseSingleConnection);2452 pelmHwChild->getAttributeValue("authTimeout", hw.vrdeSettings.ulAuthTimeout); 2453 pelmHwChild->getAttributeValue("allowMultiConnection", hw.vrdeSettings.fAllowMultiConnection); 2454 pelmHwChild->getAttributeValue("reuseSingleConnection", hw.vrdeSettings.fReuseSingleConnection); 2450 2455 2451 2456 const xml::ElementNode *pelmVideoChannel; 2452 2457 if ((pelmVideoChannel = pelmHwChild->findChildElement("VideoChannel"))) 2453 2458 { 2454 pelmVideoChannel->getAttributeValue("enabled", hw.vrd pSettings.fVideoChannel);2455 pelmVideoChannel->getAttributeValue("quality", hw.vrd pSettings.ulVideoChannelQuality);2456 hw.vrd pSettings.ulVideoChannelQuality = RT_CLAMP(hw.vrdpSettings.ulVideoChannelQuality, 10, 100);2459 pelmVideoChannel->getAttributeValue("enabled", hw.vrdeSettings.fVideoChannel); 2460 pelmVideoChannel->getAttributeValue("quality", hw.vrdeSettings.ulVideoChannelQuality); 2461 hw.vrdeSettings.ulVideoChannelQuality = RT_CLAMP(hw.vrdeSettings.ulVideoChannelQuality, 10, 100); 2457 2462 } 2458 2463 } … … 3341 3346 pelmDisplay->setAttribute("accelerate2DVideo", hw.fAccelerate2DVideo); 3342 3347 3343 xml::ElementNode *pelmVRD P= pelmHardware->createChild("RemoteDisplay");3344 pelmVRD P->setAttribute("enabled", hw.vrdpSettings.fEnabled);3345 Utf8Str strPort = hw.vrd pSettings.strPort;3348 xml::ElementNode *pelmVRDE = pelmHardware->createChild("RemoteDisplay"); 3349 pelmVRDE->setAttribute("enabled", hw.vrdeSettings.fEnabled); 3350 Utf8Str strPort = hw.vrdeSettings.strPort; 3346 3351 if (!strPort.length()) 3347 3352 strPort = "3389"; 3348 pelmVRD P->setAttribute("port", strPort);3349 if (hw.vrd pSettings.strNetAddress.length())3350 pelmVRD P->setAttribute("netAddress", hw.vrdpSettings.strNetAddress);3353 pelmVRDE->setAttribute("port", strPort); 3354 if (hw.vrdeSettings.strNetAddress.length()) 3355 pelmVRDE->setAttribute("netAddress", hw.vrdeSettings.strNetAddress); 3351 3356 const char *pcszAuthType; 3352 switch (hw.vrd pSettings.authType)3353 { 3354 case VRDPAuthType_Guest: pcszAuthType = "Guest"; break;3355 case VRDPAuthType_External: pcszAuthType = "External"; break;3356 default: /*case VRDPAuthType_Null:*/ pcszAuthType = "Null"; break;3357 } 3358 pelmVRD P->setAttribute("authType", pcszAuthType);3359 3360 if (hw.vrd pSettings.ulAuthTimeout != 0)3361 pelmVRD P->setAttribute("authTimeout", hw.vrdpSettings.ulAuthTimeout);3362 if (hw.vrd pSettings.fAllowMultiConnection)3363 pelmVRD P->setAttribute("allowMultiConnection", hw.vrdpSettings.fAllowMultiConnection);3364 if (hw.vrd pSettings.fReuseSingleConnection)3365 pelmVRD P->setAttribute("reuseSingleConnection", hw.vrdpSettings.fReuseSingleConnection);3357 switch (hw.vrdeSettings.authType) 3358 { 3359 case AuthType_Guest: pcszAuthType = "Guest"; break; 3360 case AuthType_External: pcszAuthType = "External"; break; 3361 default: /*case AuthType_Null:*/ pcszAuthType = "Null"; break; 3362 } 3363 pelmVRDE->setAttribute("authType", pcszAuthType); 3364 3365 if (hw.vrdeSettings.ulAuthTimeout != 0) 3366 pelmVRDE->setAttribute("authTimeout", hw.vrdeSettings.ulAuthTimeout); 3367 if (hw.vrdeSettings.fAllowMultiConnection) 3368 pelmVRDE->setAttribute("allowMultiConnection", hw.vrdeSettings.fAllowMultiConnection); 3369 if (hw.vrdeSettings.fReuseSingleConnection) 3370 pelmVRDE->setAttribute("reuseSingleConnection", hw.vrdeSettings.fReuseSingleConnection); 3366 3371 3367 3372 if (m->sv >= SettingsVersion_v1_10) 3368 3373 { 3369 xml::ElementNode *pelmVideoChannel = pelmVRD P->createChild("VideoChannel");3370 pelmVideoChannel->setAttribute("enabled", hw.vrd pSettings.fVideoChannel);3371 pelmVideoChannel->setAttribute("quality", hw.vrd pSettings.ulVideoChannelQuality);3374 xml::ElementNode *pelmVideoChannel = pelmVRDE->createChild("VideoChannel"); 3375 pelmVideoChannel->setAttribute("enabled", hw.vrdeSettings.fVideoChannel); 3376 pelmVideoChannel->setAttribute("quality", hw.vrdeSettings.ulVideoChannelQuality); 3372 3377 } 3373 3378 … … 4317 4322 if ( (hardwareMachine.ioSettings.fIoCacheEnabled != true) 4318 4323 || (hardwareMachine.ioSettings.ulIoCacheSize != 5) 4319 // and VRDP videochannel4320 || (hardwareMachine.vrd pSettings.fVideoChannel)4324 // and remote desktop video redirection channel 4325 || (hardwareMachine.vrdeSettings.fVideoChannel) 4321 4326 // and page fusion 4322 4327 || (hardwareMachine.fPageFusionEnabled) -
trunk/src/VBox/Main/xml/VirtualBox-settings-common.xsd
r32436 r33386 208 208 209 209 210 <xsd:simpleType name="T VRDPAuthType">210 <xsd:simpleType name="TAuthType"> 211 211 <xsd:restriction base="xsd:string"> 212 212 <xsd:enumeration value="Null"/> … … 356 356 <xsd:attribute name="defaultHardDiskFolder" type="TLocalFile"/> 357 357 <xsd:attribute name="defaultHardDiskFormat" type="TNonEmptyString"/> 358 <xsd:attribute name=" remoteDisplayAuthLibrary" type="TLocalFile"/>358 <xsd:attribute name="VRDEAuthLibrary" type="TLocalFile"/> 359 359 <xsd:attribute name="webServiceAuthLibrary" type="TLocalFile"/> 360 <xsd:attribute name="defaultVRDELibrary" type="TLocalFile"/> 360 361 <xsd:attribute name="HWVirtExEnabled" type="xsd:boolean"/> 361 362 <xsd:attribute name="LogHistoryCount" type="xsd:unsignedInt" default="3"/> … … 542 543 <xsd:attribute name="port" type="xsd:token" default="0"/> 543 544 <xsd:attribute name="netAddress" type="xsd:token" default=""/> 544 <xsd:attribute name="authType" type="T VRDPAuthType" default="Null"/>545 <xsd:attribute name="authType" type="TAuthType" default="Null"/> 545 546 <xsd:attribute name="authTimeout" type="xsd:unsignedInt" default="5000"/> 546 547 <xsd:attribute name="allowMultiConnection" type="xsd:boolean" default="false"/> -
trunk/src/VBox/Main/xpcom/module.cpp
r30825 r33386 70 70 NS_DECL_CLASSINFO(SharedFolder) 71 71 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(SharedFolder, ISharedFolder) 72 NS_DECL_CLASSINFO( RemoteDisplayInfo)73 NS_IMPL_THREADSAFE_ISUPPORTS1_CI( RemoteDisplayInfo, IRemoteDisplayInfo)72 NS_DECL_CLASSINFO(VRDEInfo) 73 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(VRDEInfo, IVRDEInfo) 74 74 75 75 NS_DECL_CLASSINFO(Session) -
trunk/src/VBox/Main/xpcom/server.cpp
r33112 r33386 141 141 142 142 #ifdef VBOX_WITH_VRDP 143 NS_DECL_CLASSINFO(VRD PServer)144 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(VRD PServer, IVRDPServer)143 NS_DECL_CLASSINFO(VRDE) 144 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(VRDE, IVRDE) 145 145 #endif 146 146
Note:
See TracChangeset
for help on using the changeset viewer.