VirtualBox

Changeset 10333 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 7, 2008 3:16:04 PM (17 years ago)
Author:
vboxsync
Message:

added package type property

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/VirtualBoxImpl.cpp

    r9360 r10333  
    6161#include <VBox/VBoxHDD-new.h>
    6262#include <VBox/version.h>
     63#include <package-generated.h>
    6364
    6465#include <VBox/com/com.h>
     
    9899
    99100// static
     101Bstr VirtualBox::sPackageType;
     102
     103// static
    100104Bstr VirtualBox::sSettingsFormatVersion;
    101105
     
    147151    if (sVersion.isNull())
    148152        sVersion = VBOX_VERSION_STRING;
    149     LogFlowThisFunc (("Version: %ls\n", sVersion.raw()));
     153    if (sPackageType.isNull())
     154        sPackageType = VBOX_PACKAGE_STRING;
     155    LogFlowThisFunc (("Version: %ls, Package: %ls\n", sVersion.raw(), sPackageType.raw()));
    150156
    151157    if (sSettingsFormatVersion.isNull())
     
    472478
    473479    sVersion.cloneTo (aVersion);
     480    return S_OK;
     481}
     482
     483STDMETHODIMP VirtualBox::COMGETTER(PackageType) (BSTR *aPackageType)
     484{
     485    if (!aPackageType)
     486        return E_INVALIDARG;
     487
     488    AutoCaller autoCaller (this);
     489    CheckComRCReturnRC (autoCaller.rc());
     490
     491    sVersion.cloneTo (aPackageType);
    474492    return S_OK;
    475493}
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r10306 r10333  
    911911    </attribute>
    912912
     913    <attribute name="packageType" type="wstring" readonly="yes">
     914      <desc>
     915        A string representing the package type of this product. The
     916        format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
     917        SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
     918        is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
     919        this.
     920      </desc>
     921    </attribute>
     922
    913923    <attribute name="homeFolder" type="wstring" readonly="yes">
    914924      <desc>
  • trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r9360 r10333  
    112112    /* IVirtualBox properties */
    113113    STDMETHOD(COMGETTER(Version)) (BSTR *aVersion);
     114    STDMETHOD(COMGETTER(PackageType)) (BSTR *aPackageType);
    114115    STDMETHOD(COMGETTER(HomeFolder)) (BSTR *aHomeFolder);
    115116    STDMETHOD(COMGETTER(SettingsFilePath)) (BSTR *aSettingsFilePath);
     
    473474
    474475    static Bstr sVersion;
     476    static Bstr sPackageType;
    475477    static Bstr sSettingsFormatVersion;
    476478
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