Changeset 101593 in vbox for trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
- Timestamp:
- Oct 25, 2023 3:37:09 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r101289 r101593 823 823 guestOS->COMGETTER(FamilyDescription)(familyDescription.asOutParam()); 824 824 RTPrintf(List::tr("Family Desc: %ls\n"), familyDescription.raw()); 825 Bstr guestOS Variant;826 guestOS->COMGETTER( Variant)(guestOSVariant.asOutParam());827 if (guestOS Variant.isNotEmpty())828 RTPrintf(List::tr("OS Variant: %ls\n"), guestOSVariant.raw());825 Bstr guestOSSubtype; 826 guestOS->COMGETTER(Subtype)(guestOSSubtype.asOutParam()); 827 if (guestOSSubtype.isNotEmpty()) 828 RTPrintf(List::tr("OS Subtype: %ls\n"), guestOSSubtype.raw()); 829 829 BOOL is64Bit; 830 830 guestOS->COMGETTER(Is64Bit)(&is64Bit); … … 2062 2062 kListRunningVMs, 2063 2063 kListOsTypes, 2064 kListOs Variants,2064 kListOsSubtypes, 2065 2065 kListHostDvds, 2066 2066 kListHostFloppies, … … 2208 2208 } 2209 2209 2210 case kListOs Variants:2210 case kListOsSubtypes: 2211 2211 { 2212 2212 com::SafeArray<BSTR> GuestOSFamilies; … … 2217 2217 { 2218 2218 const Bstr bstrOSFamily = GuestOSFamilies[i]; 2219 com::SafeArray<BSTR> GuestOS Variants;2219 com::SafeArray<BSTR> GuestOSSubtypes; 2220 2220 CHECK_ERROR(pVirtualBox, 2221 GetGuestOS VariantsByFamilyId(bstrOSFamily.raw(),2222 ComSafeArrayAsOutParam(GuestOS Variants)));2221 GetGuestOSSubtypesByFamilyId(bstrOSFamily.raw(), 2222 ComSafeArrayAsOutParam(GuestOSSubtypes))); 2223 2223 if (SUCCEEDED(hrc)) 2224 2224 { 2225 2225 RTPrintf("%ls\n", bstrOSFamily.raw()); 2226 for (size_t j = 0; j < GuestOS Variants.size(); ++j)2226 for (size_t j = 0; j < GuestOSSubtypes.size(); ++j) 2227 2227 { 2228 RTPrintf("\t%ls\n", GuestOS Variants[j]);2228 RTPrintf("\t%ls\n", GuestOSSubtypes[j]); 2229 2229 com::SafeArray<BSTR> GuestOSDescs; 2230 const Bstr bstrOS Variant = GuestOSVariants[j];2230 const Bstr bstrOSSubtype = GuestOSSubtypes[j]; 2231 2231 CHECK_ERROR(pVirtualBox, 2232 GetGuestOSDescsBy Variant(bstrOSVariant.raw(),2232 GetGuestOSDescsBySubtype(bstrOSSubtype.raw(), 2233 2233 ComSafeArrayAsOutParam(GuestOSDescs))); 2234 2234 if (SUCCEEDED(hrc)) … … 2478 2478 { "runningvms", kListRunningVMs, RTGETOPT_REQ_NOTHING }, 2479 2479 { "ostypes", kListOsTypes, RTGETOPT_REQ_NOTHING }, 2480 { "os variants", kListOsVariants, RTGETOPT_REQ_NOTHING },2480 { "ossubtypes", kListOsSubtypes, RTGETOPT_REQ_NOTHING }, 2481 2481 { "hostdvds", kListHostDvds, RTGETOPT_REQ_NOTHING }, 2482 2482 { "hostfloppies", kListHostFloppies, RTGETOPT_REQ_NOTHING }, … … 2545 2545 case kListRunningVMs: 2546 2546 case kListOsTypes: 2547 case kListOs Variants:2547 case kListOsSubtypes: 2548 2548 case kListHostDvds: 2549 2549 case kListHostFloppies:
Note:
See TracChangeset
for help on using the changeset viewer.