VirtualBox

Ignore:
Timestamp:
Jan 24, 2007 6:32:53 PM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Added VRDP UI to the VM Settings dialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r281 r284  
    218218    }
    219219
     220    QString toString (CEnums::VRDPAuthType t) const
     221    {
     222        AssertMsg (!vrdpAuthTypes [t].isNull(), ("No text for %d", t));
     223        return vrdpAuthTypes [t];
     224    }
     225
     226    CEnums::VRDPAuthType toVRDPAuthType (const QString &s) const
     227    {
     228        QStringVector::const_iterator it =
     229            qFind (vrdpAuthTypes.begin(), vrdpAuthTypes.end(), s);
     230        AssertMsg (it != vrdpAuthTypes.end(), ("No value for {%s}", s.latin1()));
     231        return CEnums::VRDPAuthType (it - vrdpAuthTypes.begin());
     232    }
     233
    220234    /**
    221235     *  Similar to toString (CEnums::HardDiskType), but returns 'Differencing'
     
    421435    QStringVector diskTypes;
    422436    QStringVector diskStorageTypes;
     437    QStringVector vrdpAuthTypes;
    423438    QStringVector diskControllerDevices;
    424439    QStringVector audioDriverTypes;
Note: See TracChangeset for help on using the changeset viewer.

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