VirtualBox

Changeset 33386 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Oct 24, 2010 3:57:55 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66973
Message:

VRDE: API changes for the VRDP server separation.

Location:
trunk/src/VBox/Main/xml
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r33238 r33386  
    12291229                        pelmGlobalChild->getAttributeValue("defaultMachineFolder", systemProperties.strDefaultMachineFolder);
    12301230                        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);
    12321234                        pelmGlobalChild->getAttributeValue("webServiceAuthLibrary", systemProperties.strWebServiceAuthLibrary);
     1235                        pelmGlobalChild->getAttributeValue("defaultVRDELibrary", systemProperties.strDefaultVRDELibrary);
    12331236                        pelmGlobalChild->getAttributeValue("LogHistoryCount", systemProperties.ulLogHistoryCount);
    12341237                    }
     
    13351338    if (systemProperties.strDefaultHardDiskFormat.length())
    13361339        pelmSysProps->setAttribute("defaultHardDiskFormat", systemProperties.strDefaultHardDiskFormat);
    1337     if (systemProperties.strRemoteDisplayAuthLibrary.length())
    1338         pelmSysProps->setAttribute("remoteDisplayAuthLibrary", systemProperties.strRemoteDisplayAuthLibrary);
     1340    if (systemProperties.strVRDEAuthLibrary.length())
     1341        pelmSysProps->setAttribute("VRDEAuthLibrary", systemProperties.strVRDEAuthLibrary);
    13391342    if (systemProperties.strWebServiceAuthLibrary.length())
    13401343        pelmSysProps->setAttribute("webServiceAuthLibrary", systemProperties.strWebServiceAuthLibrary);
     1344    if (systemProperties.strDefaultVRDELibrary.length())
     1345        pelmSysProps->setAttribute("defaultVRDELibrary", systemProperties.strDefaultVRDELibrary);
    13411346    pelmSysProps->setAttribute("LogHistoryCount", systemProperties.ulLogHistoryCount);
    13421347
     
    13651370 * machine settings have really changed and thus need to be written out to disk.
    13661371 */
    1367 bool VRDPSettings::operator==(const VRDPSettings& v) const
     1372bool VRDESettings::operator==(const VRDESettings& v) const
    13681373{
    13691374    return (    (this == &v)
     
    15951600                  && (keyboardHidType           == h.keyboardHidType)
    15961601                  && (chipsetType               == h.chipsetType)
    1597                   && (vrdpSettings              == h.vrdpSettings)
     1602                  && (vrdeSettings              == h.vrdeSettings)
    15981603                  && (biosSettings              == h.biosSettings)
    15991604                  && (usbController             == h.usbController)
     
    24262431        else if (pelmHwChild->nameEquals("RemoteDisplay"))
    24272432        {
    2428             pelmHwChild->getAttributeValue("enabled", hw.vrdpSettings.fEnabled);
    2429             pelmHwChild->getAttributeValue("port", hw.vrdpSettings.strPort);
    2430             pelmHwChild->getAttributeValue("netAddress", hw.vrdpSettings.strNetAddress);
     2433            pelmHwChild->getAttributeValue("enabled", hw.vrdeSettings.fEnabled);
     2434            pelmHwChild->getAttributeValue("port", hw.vrdeSettings.strPort);
     2435            pelmHwChild->getAttributeValue("netAddress", hw.vrdeSettings.strNetAddress);
    24312436
    24322437            Utf8Str strAuthType;
     
    24362441                strAuthType.toUpper();
    24372442                if (strAuthType == "NULL")
    2438                     hw.vrdpSettings.authType = VRDPAuthType_Null;
     2443                    hw.vrdeSettings.authType = AuthType_Null;
    24392444                else if (strAuthType == "GUEST")
    2440                     hw.vrdpSettings.authType = VRDPAuthType_Guest;
     2445                    hw.vrdeSettings.authType = AuthType_Guest;
    24412446                else if (strAuthType == "EXTERNAL")
    2442                     hw.vrdpSettings.authType = VRDPAuthType_External;
     2447                    hw.vrdeSettings.authType = AuthType_External;
    24432448                else
    24442449                    throw ConfigFileError(this, pelmHwChild, N_("Invalid value '%s' in RemoteDisplay/@authType attribute"), strAuthType.c_str());
    24452450            }
    24462451
    2447             pelmHwChild->getAttributeValue("authTimeout", hw.vrdpSettings.ulAuthTimeout);
    2448             pelmHwChild->getAttributeValue("allowMultiConnection", hw.vrdpSettings.fAllowMultiConnection);
    2449             pelmHwChild->getAttributeValue("reuseSingleConnection", hw.vrdpSettings.fReuseSingleConnection);
     2452            pelmHwChild->getAttributeValue("authTimeout", hw.vrdeSettings.ulAuthTimeout);
     2453            pelmHwChild->getAttributeValue("allowMultiConnection", hw.vrdeSettings.fAllowMultiConnection);
     2454            pelmHwChild->getAttributeValue("reuseSingleConnection", hw.vrdeSettings.fReuseSingleConnection);
    24502455
    24512456            const xml::ElementNode *pelmVideoChannel;
    24522457            if ((pelmVideoChannel = pelmHwChild->findChildElement("VideoChannel")))
    24532458            {
    2454                 pelmVideoChannel->getAttributeValue("enabled", hw.vrdpSettings.fVideoChannel);
    2455                 pelmVideoChannel->getAttributeValue("quality", hw.vrdpSettings.ulVideoChannelQuality);
    2456                 hw.vrdpSettings.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);
    24572462            }
    24582463        }
     
    33413346        pelmDisplay->setAttribute("accelerate2DVideo", hw.fAccelerate2DVideo);
    33423347
    3343     xml::ElementNode *pelmVRDP = pelmHardware->createChild("RemoteDisplay");
    3344     pelmVRDP->setAttribute("enabled", hw.vrdpSettings.fEnabled);
    3345     Utf8Str strPort = hw.vrdpSettings.strPort;
     3348    xml::ElementNode *pelmVRDE = pelmHardware->createChild("RemoteDisplay");
     3349    pelmVRDE->setAttribute("enabled", hw.vrdeSettings.fEnabled);
     3350    Utf8Str strPort = hw.vrdeSettings.strPort;
    33463351    if (!strPort.length())
    33473352        strPort = "3389";
    3348     pelmVRDP->setAttribute("port", strPort);
    3349     if (hw.vrdpSettings.strNetAddress.length())
    3350         pelmVRDP->setAttribute("netAddress", hw.vrdpSettings.strNetAddress);
     3353    pelmVRDE->setAttribute("port", strPort);
     3354    if (hw.vrdeSettings.strNetAddress.length())
     3355        pelmVRDE->setAttribute("netAddress", hw.vrdeSettings.strNetAddress);
    33513356    const char *pcszAuthType;
    3352     switch (hw.vrdpSettings.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     pelmVRDP->setAttribute("authType", pcszAuthType);
    3359 
    3360     if (hw.vrdpSettings.ulAuthTimeout != 0)
    3361         pelmVRDP->setAttribute("authTimeout", hw.vrdpSettings.ulAuthTimeout);
    3362     if (hw.vrdpSettings.fAllowMultiConnection)
    3363         pelmVRDP->setAttribute("allowMultiConnection", hw.vrdpSettings.fAllowMultiConnection);
    3364     if (hw.vrdpSettings.fReuseSingleConnection)
    3365         pelmVRDP->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);
    33663371
    33673372    if (m->sv >= SettingsVersion_v1_10)
    33683373    {
    3369         xml::ElementNode *pelmVideoChannel = pelmVRDP->createChild("VideoChannel");
    3370         pelmVideoChannel->setAttribute("enabled", hw.vrdpSettings.fVideoChannel);
    3371         pelmVideoChannel->setAttribute("quality", hw.vrdpSettings.ulVideoChannelQuality);
     3374        xml::ElementNode *pelmVideoChannel = pelmVRDE->createChild("VideoChannel");
     3375        pelmVideoChannel->setAttribute("enabled", hw.vrdeSettings.fVideoChannel);
     3376        pelmVideoChannel->setAttribute("quality", hw.vrdeSettings.ulVideoChannelQuality);
    33723377    }
    33733378
     
    43174322        if (   (hardwareMachine.ioSettings.fIoCacheEnabled != true)
    43184323            || (hardwareMachine.ioSettings.ulIoCacheSize != 5)
    4319                 // and VRDP video channel
    4320             || (hardwareMachine.vrdpSettings.fVideoChannel)
     4324                // and remote desktop video redirection channel
     4325            || (hardwareMachine.vrdeSettings.fVideoChannel)
    43214326                // and page fusion
    43224327            || (hardwareMachine.fPageFusionEnabled)
  • trunk/src/VBox/Main/xml/VirtualBox-settings-common.xsd

    r32436 r33386  
    208208
    209209
    210 <xsd:simpleType name="TVRDPAuthType">
     210<xsd:simpleType name="TAuthType">
    211211  <xsd:restriction base="xsd:string">
    212212    <xsd:enumeration value="Null"/>
     
    356356  <xsd:attribute name="defaultHardDiskFolder" type="TLocalFile"/>
    357357  <xsd:attribute name="defaultHardDiskFormat" type="TNonEmptyString"/>
    358   <xsd:attribute name="remoteDisplayAuthLibrary" type="TLocalFile"/>
     358  <xsd:attribute name="VRDEAuthLibrary" type="TLocalFile"/>
    359359  <xsd:attribute name="webServiceAuthLibrary" type="TLocalFile"/>
     360  <xsd:attribute name="defaultVRDELibrary" type="TLocalFile"/>
    360361  <xsd:attribute name="HWVirtExEnabled" type="xsd:boolean"/>
    361362  <xsd:attribute name="LogHistoryCount" type="xsd:unsignedInt" default="3"/>
     
    542543  <xsd:attribute name="port" type="xsd:token" default="0"/>
    543544  <xsd:attribute name="netAddress" type="xsd:token" default=""/>
    544   <xsd:attribute name="authType" type="TVRDPAuthType" default="Null"/>
     545  <xsd:attribute name="authType" type="TAuthType" default="Null"/>
    545546  <xsd:attribute name="authTimeout" type="xsd:unsignedInt" default="5000"/>
    546547  <xsd:attribute name="allowMultiConnection" type="xsd:boolean" default="false"/>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette