Changeset 10333 in vbox for trunk/src/VBox
- Timestamp:
- Jul 7, 2008 3:16:04 PM (17 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r9360 r10333 61 61 #include <VBox/VBoxHDD-new.h> 62 62 #include <VBox/version.h> 63 #include <package-generated.h> 63 64 64 65 #include <VBox/com/com.h> … … 98 99 99 100 // static 101 Bstr VirtualBox::sPackageType; 102 103 // static 100 104 Bstr VirtualBox::sSettingsFormatVersion; 101 105 … … 147 151 if (sVersion.isNull()) 148 152 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())); 150 156 151 157 if (sSettingsFormatVersion.isNull()) … … 472 478 473 479 sVersion.cloneTo (aVersion); 480 return S_OK; 481 } 482 483 STDMETHODIMP 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); 474 492 return S_OK; 475 493 } -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r10306 r10333 911 911 </attribute> 912 912 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 913 923 <attribute name="homeFolder" type="wstring" readonly="yes"> 914 924 <desc> -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r9360 r10333 112 112 /* IVirtualBox properties */ 113 113 STDMETHOD(COMGETTER(Version)) (BSTR *aVersion); 114 STDMETHOD(COMGETTER(PackageType)) (BSTR *aPackageType); 114 115 STDMETHOD(COMGETTER(HomeFolder)) (BSTR *aHomeFolder); 115 116 STDMETHOD(COMGETTER(SettingsFilePath)) (BSTR *aSettingsFilePath); … … 473 474 474 475 static Bstr sVersion; 476 static Bstr sPackageType; 475 477 static Bstr sSettingsFormatVersion; 476 478
Note:
See TracChangeset
for help on using the changeset viewer.