Changeset 33386 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- Oct 24, 2010 3:57:55 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 66973
- Location:
- trunk/src/VBox/Main/xml
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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"/>
Note:
See TracChangeset
for help on using the changeset viewer.