Changeset 102281 in vbox
- Timestamp:
- Nov 23, 2023 7:48:16 PM (12 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.cpp
r102162 r102281 34 34 35 35 36 UIGuestOSTypeManager::UIGuestOSTypeManager()37 {38 }39 40 36 void UIGuestOSTypeManager::reCacheGuestOSTypes(const CGuestOSTypeVector &guestOSTypes) 41 37 { … … 43 39 m_guestOSTypes.clear(); 44 40 m_guestOSFamilies.clear(); 45 41 m_guestOSFamilyArch.clear(); 42 m_guestOSSubtypeArch.clear(); 43 44 /* Enumerate guest OS types: */ 46 45 QVector<CGuestOSType> otherOSTypes; 47 46 foreach (const CGuestOSType &comType, guestOSTypes) 48 47 { 48 /* Filter out "other" family types: */ 49 49 if (comType.GetFamilyId().contains("other", Qt::CaseInsensitive)) 50 50 { … … 54 54 addGuestOSType(comType); 55 55 } 56 /* Add OS types with family other to the end of the lists: */ 56 57 /* Add OS types with family "other" to the end of the lists: */ 57 58 foreach (const CGuestOSType &comType, otherOSTypes) 58 59 addGuestOSType(comType); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.h
r102162 r102281 33 33 34 34 /* Qt includes: */ 35 #include <QVector>36 35 #include <QMap> 37 36 #include <QString> 37 #include <QVector> 38 38 39 39 /* COM includes: */ 40 40 #include "COMEnums.h" 41 41 #include "CGuestOSType.h" 42 43 class UIGuestOSType;44 42 45 43 /** A wrapper around CGuestOSType. Some of the properties are cached here for performance. */ … … 48 46 49 47 public: 50 51 48 52 49 UIGuestOSType(const CGuestOSType &comGuestOSType); … … 97 94 class SHARED_LIBRARY_STUFF UIGuestOSTypeManager 98 95 { 99 100 96 public: 101 102 UIGuestOSTypeManager();103 UIGuestOSTypeManager(const UIGuestOSTypeManager &other) = delete;104 97 105 98 /** OS info pair. 'first' is id and 'second' is description. */ … … 109 102 /** A list of all OS type pairs. */ 110 103 typedef QVector<UIGuestInfoPair> UIGuestOSTypeInfo; 104 105 /** Constructs guest OS type manager. */ 106 UIGuestOSTypeManager() {} 107 /** Prohibits to copy guest OS type manager. */ 108 UIGuestOSTypeManager(const UIGuestOSTypeManager &other) = delete; 111 109 112 110 /** Re-create the guest OS type database. */ … … 125 123 KPlatformArchitecture enmArch = KPlatformArchitecture_None) const; 126 124 125 /** Returns whether specified @a strOSTypeId is of DOS type. */ 127 126 static bool isDOSType(const QString &strOSTypeId); 128 127 129 /** @name Getters for UIGuestOSType properties. They utilize a map for faster access to UIGuestOSType instance with @p strTypeId 128 /** @name Getters for UIGuestOSType properties. 129 * They utilize a map for faster access to UIGuestOSType instance with @p strTypeId. 130 130 * @{ */ 131 131 QString getFamilyId(const QString &strTypeId) const; … … 149 149 private: 150 150 151 /** Adds certain @a comType to internal cache. */ 151 152 void addGuestOSType(const CGuestOSType &comType); 152 153 … … 165 166 }; 166 167 167 168 168 #endif /* !FEQT_INCLUDED_SRC_globals_UIGuestOSType_h */
Note:
See TracChangeset
for help on using the changeset viewer.