Changeset 102282 in vbox
- Timestamp:
- Nov 23, 2023 7:52:48 PM (12 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r102274 r102282 1411 1411 { 1412 1412 m_pGuestOSTypeManager = new UIGuestOSTypeManager; 1413 m_pGuestOSTypeManager->reCacheGuestOSTypes( m_comVBox.GetGuestOSTypes());1413 m_pGuestOSTypeManager->reCacheGuestOSTypes(); 1414 1414 } 1415 1415 … … 2972 2972 /* Re-initialize guest OS type database: */ 2973 2973 if (m_pGuestOSTypeManager) 2974 m_pGuestOSTypeManager->reCacheGuestOSTypes( m_comVBox.GetGuestOSTypes());2974 m_pGuestOSTypeManager->reCacheGuestOSTypes(); 2975 2975 2976 2976 /* Mark wrappers valid: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.cpp
r102281 r102282 32 32 /* COM includes: */ 33 33 #include "CGuestOSType.h" 34 35 36 void UIGuestOSTypeManager::reCacheGuestOSTypes(const CGuestOSTypeVector &guestOSTypes) 37 { 34 #include "CPlatformProperties.h" 35 #include "CSystemProperties.h" 36 37 38 void UIGuestOSTypeManager::reCacheGuestOSTypes() 39 { 40 /* Acquire a list of guest OS types supported by this host: */ 41 CGuestOSTypeVector guestOSTypes; 42 CSystemProperties comSysProps = uiCommon().virtualBox().GetSystemProperties(); 43 foreach (const KPlatformArchitecture &enmArch, comSysProps.GetSupportedPlatformArchitectures()) 44 { 45 CPlatformProperties comPlatProps = uiCommon().virtualBox().GetPlatformProperties(enmArch); 46 guestOSTypes += comPlatProps.GetSupportedGuestOSTypes(); 47 } 48 49 /* Wipe out cache: */ 38 50 m_typeIdIndexMap.clear(); 39 51 m_guestOSTypes.clear(); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.h
r102281 r102282 109 109 110 110 /** Re-create the guest OS type database. */ 111 void reCacheGuestOSTypes( const CGuestOSTypeVector &guestOSTypes);111 void reCacheGuestOSTypes(); 112 112 113 113 /** Returns a list of all families (id and description). */
Note:
See TracChangeset
for help on using the changeset viewer.