VirtualBox

Changeset 31217 in vbox


Ignore:
Timestamp:
Jul 29, 2010 3:00:29 PM (14 years ago)
Author:
vboxsync
Message:

VBox/InterfaceVersion: Added IGuest methods.

Location:
trunk/src/VBox
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r31070 r31217  
    19451945            if (details == VMINFO_FULL)
    19461946            {
    1947                 rc = guest->COMGETTER(AdditionsVersion)(guestString.asOutParam());
     1947                rc = guest->COMGETTER(AdditionsVBoxVersion)(guestString.asOutParam());
    19481948                if (   SUCCEEDED(rc)
    19491949                    && !guestString.isEmpty())
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMInformationDlg.cpp

    r30192 r31217  
    472472        if (!addVersion.isEmpty() && !addRevision.isEmpty())
    473473        {
    474             QString addInfo = console.GetGuest().GetAdditionsVersion();
     474            QString addInfo = console.GetGuest().GetAdditionsVBoxVersion();
    475475            addVersionStr = (addInfo.isEmpty() ? "(" : "")
    476476                          + addVersion
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r30996 r31217  
    828828    if (!fIsAdditionsActive)
    829829        return;
    830     /* Check the Guest Additions version and warn the user about possible compatibility issues in case if the installed version is outdated. */
     830    /* Check the Guest Additions interface version and warn the user about possible compatibility issues in case if the installed version is outdated. */
    831831    CGuest guest = session().GetConsole().GetGuest();
    832     QString strVersion = guest.GetAdditionsVersion();
     832    QString strVersion = guest.GetAdditionsInterfaceVersion();
    833833    uint uVersion = strVersion.toUInt();
    834834    /** @todo r=bird: This isn't want we want! We want the VirtualBox version of the additions, all three numbers. See @bugref{4084}.*/
  • trunk/src/VBox/Main/GuestImpl.cpp

    r30903 r31217  
    176176}
    177177
    178 STDMETHODIMP Guest::COMGETTER(AdditionsVersion) (BSTR *aAdditionsVersion)
    179 {
    180     CheckComArgOutPointerValid(aAdditionsVersion);
     178STDMETHODIMP Guest::COMGETTER(AdditionsInterfaceVersion) (BSTR *aVersion)
     179{
     180    CheckComArgOutPointerValid(aVersion);
    181181
    182182    AutoCaller autoCaller(this);
     
    185185    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    186186
    187     mData.mAdditionsVersion.cloneTo(aAdditionsVersion);
     187    mData.mInterfaceVersion.cloneTo(aVersion);
     188
     189    return S_OK;
     190}
     191
     192STDMETHODIMP Guest::COMGETTER(AdditionsVBoxVersion) (BSTR *aVersion)
     193{
     194    CheckComArgOutPointerValid(aVersion);
     195
     196    AutoCaller autoCaller(this);
     197    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     198
     199    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     200
     201    mData.mAdditionsVersion.cloneTo(aVersion);
    188202
    189203    return S_OK;
     
    14431457 * API version and OS type.
    14441458 *
    1445  * @param aVersion
     1459 * @param aInterfaceVersion
    14461460 * @param aOsType
    14471461 */
    1448 void Guest::setAdditionsInfo(Bstr aVersion, VBOXOSTYPE aOsType)
     1462void Guest::setAdditionsInfo(Bstr aInterfaceVersion, VBOXOSTYPE aOsType)
    14491463{
    14501464    AutoCaller autoCaller(this);
     
    14571471     * Note that this is *not* the actual Guest Additions version and may differ!
    14581472     */
    1459     mData.mAdditionsVersion = aVersion;
     1473    mData.mInterfaceVersion = aInterfaceVersion;
    14601474    /*
    14611475     * Older Additions rely on the Additions API version whether they
     
    14631477     * this immediately.
    14641478     */
    1465     mData.mAdditionsActive = !aVersion.isEmpty();
     1479    mData.mAdditionsActive = !aInterfaceVersion.isEmpty();
    14661480    /*
    14671481     * Older Additions didn't have this finer grained capability bit,
     
    14871501 * @param ulFlags
    14881502 */
    1489 void Guest::setAdditionsStatus (VBoxGuestStatusFacility Facility, VBoxGuestStatusCurrent Status, ULONG ulFlags)
     1503void Guest::setAdditionsStatus(VBoxGuestStatusFacility Facility, VBoxGuestStatusCurrent Status, ULONG ulFlags)
    14901504{
    14911505    AutoCaller autoCaller(this);
     
    15071521 * @param ulActive
    15081522 */
    1509 void Guest::setSupportedFeatures (ULONG64 ulCaps, ULONG64 ulActive)
     1523void Guest::setSupportedFeatures(ULONG64 ulCaps, ULONG64 ulActive)
    15101524{
    15111525    AutoCaller autoCaller(this);
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r31116 r31217  
    77327732  <interface
    77337733     name="IGuest" extends="$unknown"
    7734      uuid="d915dff1-ed38-495a-91f1-ab6c53932468"
     7734     uuid="a3f4b219-ae2a-464c-b488-36cd8ac06b79"
    77357735     wsmap="managed"
    77367736     >
     
    77677767    </attribute>
    77687768
    7769     <attribute name="additionsVersion" type="wstring" readonly="yes">
    7770       <desc>
    7771         Version of the Guest Additions (3 decimal numbers separated
    7772         by dots) or empty when the Additions are not installed. The
    7773         Additions may also report a version but yet not be active as
    7774         the version might be refused by VirtualBox (incompatible) or
    7775         other failures occurred.
     7769    <attribute name="additionsVBoxVersion" type="wstring" readonly="yes">
     7770      <desc>
     7771        Version of the installed Guest Additions package (3 decimal numbers
     7772        separated by dots) or empty when the Additions are not installed. The
     7773        Additions may also report a version but yet not be active as the version
     7774        might be refused by VirtualBox (incompatible) or other failures
     7775        occurred.
     7776      </desc>
     7777    </attribute>
     7778
     7779    <attribute name="additionsInterfaceVersion" type="wstring" readonly="yes">
     7780      <desc>
     7781        Version of the Guest Additions interface (2 decimal numbers separated by
     7782        a dot) or empty when the Additions are not installed. The Additions may
     7783        also report a version but yet not be active as the version might be
     7784        refused by VirtualBox (incompatible) or other failures occurred.
    77767785      </desc>
    77777786    </attribute>
  • trunk/src/VBox/Main/include/GuestImpl.h

    r30778 r31217  
    8080#endif
    8181    STDMETHOD(COMGETTER(AdditionsActive)) (BOOL *aAdditionsActive);
    82 #if 0
    83     /** @todo Will replace AdditionsVersion to be more clear. */
    84     STDMETHOD(COMGETTER(AdditionsAPIVersion)) (BSTR *aAdditionsVersion);
    85 #endif
    86     STDMETHOD(COMGETTER(AdditionsVersion)) (BSTR *aAdditionsVersion);
     82    STDMETHOD(COMGETTER(AdditionsInterfaceVersion)) (BSTR *aVersion);
     83    STDMETHOD(COMGETTER(AdditionsVBoxVersion)) (BSTR *aVersion);
    8784    /** @todo Remove */
    8885    STDMETHOD(COMGETTER(SupportsSeamless)) (BOOL *aSupportsSeamless);
     
    175172        BOOL  mAdditionsActive;
    176173        Bstr  mAdditionsVersion;
     174        Bstr  mInterfaceVersion;
    177175        BOOL  mSupportsSeamless;
    178176        BOOL  mSupportsGraphics;
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