VirtualBox

Changeset 31219 in vbox


Ignore:
Timestamp:
Jul 29, 2010 3:16:51 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64227
Message:

Backed out r64225 for now.

Location:
trunk/src/VBox
Files:
6 edited

Legend:

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

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

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

    r31217 r31219  
    828828    if (!fIsAdditionsActive)
    829829        return;
    830     /* Check the Guest Additions interface version and warn the user about possible compatibility issues in case if the installed version is outdated. */
     830    /* Check the Guest Additions 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.GetAdditionsInterfaceVersion();
     832    QString strVersion = guest.GetAdditionsVersion();
    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

    r31217 r31219  
    176176}
    177177
    178 STDMETHODIMP Guest::COMGETTER(AdditionsInterfaceVersion) (BSTR *aVersion)
    179 {
    180     CheckComArgOutPointerValid(aVersion);
     178STDMETHODIMP Guest::COMGETTER(AdditionsVersion) (BSTR *aAdditionsVersion)
     179{
     180    CheckComArgOutPointerValid(aAdditionsVersion);
    181181
    182182    AutoCaller autoCaller(this);
     
    185185    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    186186
    187     mData.mInterfaceVersion.cloneTo(aVersion);
    188 
    189     return S_OK;
    190 }
    191 
    192 STDMETHODIMP 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);
     187    mData.mAdditionsVersion.cloneTo(aAdditionsVersion);
    202188
    203189    return S_OK;
     
    14571443 * API version and OS type.
    14581444 *
    1459  * @param aInterfaceVersion
     1445 * @param aVersion
    14601446 * @param aOsType
    14611447 */
    1462 void Guest::setAdditionsInfo(Bstr aInterfaceVersion, VBOXOSTYPE aOsType)
     1448void Guest::setAdditionsInfo(Bstr aVersion, VBOXOSTYPE aOsType)
    14631449{
    14641450    AutoCaller autoCaller(this);
     
    14711457     * Note that this is *not* the actual Guest Additions version and may differ!
    14721458     */
    1473     mData.mInterfaceVersion = aInterfaceVersion;
     1459    mData.mAdditionsVersion = aVersion;
    14741460    /*
    14751461     * Older Additions rely on the Additions API version whether they
     
    14771463     * this immediately.
    14781464     */
    1479     mData.mAdditionsActive = !aInterfaceVersion.isEmpty();
     1465    mData.mAdditionsActive = !aVersion.isEmpty();
    14801466    /*
    14811467     * Older Additions didn't have this finer grained capability bit,
     
    15011487 * @param ulFlags
    15021488 */
    1503 void Guest::setAdditionsStatus(VBoxGuestStatusFacility Facility, VBoxGuestStatusCurrent Status, ULONG ulFlags)
     1489void Guest::setAdditionsStatus (VBoxGuestStatusFacility Facility, VBoxGuestStatusCurrent Status, ULONG ulFlags)
    15041490{
    15051491    AutoCaller autoCaller(this);
     
    15211507 * @param ulActive
    15221508 */
    1523 void Guest::setSupportedFeatures(ULONG64 ulCaps, ULONG64 ulActive)
     1509void Guest::setSupportedFeatures (ULONG64 ulCaps, ULONG64 ulActive)
    15241510{
    15251511    AutoCaller autoCaller(this);
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

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

    r31217 r31219  
    8080#endif
    8181    STDMETHOD(COMGETTER(AdditionsActive)) (BOOL *aAdditionsActive);
    82     STDMETHOD(COMGETTER(AdditionsInterfaceVersion)) (BSTR *aVersion);
    83     STDMETHOD(COMGETTER(AdditionsVBoxVersion)) (BSTR *aVersion);
     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);
    8487    /** @todo Remove */
    8588    STDMETHOD(COMGETTER(SupportsSeamless)) (BOOL *aSupportsSeamless);
     
    172175        BOOL  mAdditionsActive;
    173176        Bstr  mAdditionsVersion;
    174         Bstr  mInterfaceVersion;
    175177        BOOL  mSupportsSeamless;
    176178        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