Changeset 31217 in vbox
- Timestamp:
- Jul 29, 2010 3:00:29 PM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r31070 r31217 1945 1945 if (details == VMINFO_FULL) 1946 1946 { 1947 rc = guest->COMGETTER(AdditionsV ersion)(guestString.asOutParam());1947 rc = guest->COMGETTER(AdditionsVBoxVersion)(guestString.asOutParam()); 1948 1948 if ( SUCCEEDED(rc) 1949 1949 && !guestString.isEmpty()) -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMInformationDlg.cpp
r30192 r31217 472 472 if (!addVersion.isEmpty() && !addRevision.isEmpty()) 473 473 { 474 QString addInfo = console.GetGuest().GetAdditionsV ersion();474 QString addInfo = console.GetGuest().GetAdditionsVBoxVersion(); 475 475 addVersionStr = (addInfo.isEmpty() ? "(" : "") 476 476 + addVersion -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r30996 r31217 828 828 if (!fIsAdditionsActive) 829 829 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. */ 831 831 CGuest guest = session().GetConsole().GetGuest(); 832 QString strVersion = guest.GetAdditions Version();832 QString strVersion = guest.GetAdditionsInterfaceVersion(); 833 833 uint uVersion = strVersion.toUInt(); 834 834 /** @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 176 176 } 177 177 178 STDMETHODIMP Guest::COMGETTER(Additions Version) (BSTR *aAdditionsVersion)179 { 180 CheckComArgOutPointerValid(a AdditionsVersion);178 STDMETHODIMP Guest::COMGETTER(AdditionsInterfaceVersion) (BSTR *aVersion) 179 { 180 CheckComArgOutPointerValid(aVersion); 181 181 182 182 AutoCaller autoCaller(this); … … 185 185 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 186 186 187 mData.mAdditionsVersion.cloneTo(aAdditionsVersion); 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); 188 202 189 203 return S_OK; … … 1443 1457 * API version and OS type. 1444 1458 * 1445 * @param a Version1459 * @param aInterfaceVersion 1446 1460 * @param aOsType 1447 1461 */ 1448 void Guest::setAdditionsInfo(Bstr a Version, VBOXOSTYPE aOsType)1462 void Guest::setAdditionsInfo(Bstr aInterfaceVersion, VBOXOSTYPE aOsType) 1449 1463 { 1450 1464 AutoCaller autoCaller(this); … … 1457 1471 * Note that this is *not* the actual Guest Additions version and may differ! 1458 1472 */ 1459 mData.m AdditionsVersion = aVersion;1473 mData.mInterfaceVersion = aInterfaceVersion; 1460 1474 /* 1461 1475 * Older Additions rely on the Additions API version whether they … … 1463 1477 * this immediately. 1464 1478 */ 1465 mData.mAdditionsActive = !a Version.isEmpty();1479 mData.mAdditionsActive = !aInterfaceVersion.isEmpty(); 1466 1480 /* 1467 1481 * Older Additions didn't have this finer grained capability bit, … … 1487 1501 * @param ulFlags 1488 1502 */ 1489 void Guest::setAdditionsStatus 1503 void Guest::setAdditionsStatus(VBoxGuestStatusFacility Facility, VBoxGuestStatusCurrent Status, ULONG ulFlags) 1490 1504 { 1491 1505 AutoCaller autoCaller(this); … … 1507 1521 * @param ulActive 1508 1522 */ 1509 void Guest::setSupportedFeatures 1523 void Guest::setSupportedFeatures(ULONG64 ulCaps, ULONG64 ulActive) 1510 1524 { 1511 1525 AutoCaller autoCaller(this); -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r31116 r31217 7732 7732 <interface 7733 7733 name="IGuest" extends="$unknown" 7734 uuid=" d915dff1-ed38-495a-91f1-ab6c53932468"7734 uuid="a3f4b219-ae2a-464c-b488-36cd8ac06b79" 7735 7735 wsmap="managed" 7736 7736 > … … 7767 7767 </attribute> 7768 7768 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. 7776 7785 </desc> 7777 7786 </attribute> -
trunk/src/VBox/Main/include/GuestImpl.h
r30778 r31217 80 80 #endif 81 81 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); 87 84 /** @todo Remove */ 88 85 STDMETHOD(COMGETTER(SupportsSeamless)) (BOOL *aSupportsSeamless); … … 175 172 BOOL mAdditionsActive; 176 173 Bstr mAdditionsVersion; 174 Bstr mInterfaceVersion; 177 175 BOOL mSupportsSeamless; 178 176 BOOL mSupportsGraphics;
Note:
See TracChangeset
for help on using the changeset viewer.