- Timestamp:
- Sep 27, 2023 3:03:51 PM (19 months ago)
- svn:sync-xref-src-repo-rev:
- 159281
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.cpp
r101294 r101295 29 29 #include "UIGuestOSType.h" 30 30 31 32 /********************************************************************************************************************************* 33 * UIGuestOSType definition. * 34 *********************************************************************************************************************************/ 31 35 32 36 /** A wrapper around CGuestOSType. Some of the properties are cached here for performance. */ … … 74 78 }; 75 79 80 /********************************************************************************************************************************* 81 * UIGuestOSTypeManager implementaion. * 82 *********************************************************************************************************************************/ 83 76 84 UIGuestOSTypeManager::UIGuestOSTypeManager() 77 85 :m_guestOSTypes(new QList<UIGuestOSType>()) … … 81 89 void UIGuestOSTypeManager::reCacheGuestOSTypes(const CGuestOSTypeVector &guestOSTypes) 82 90 { 91 AssertReturnVoid(m_guestOSTypes); 83 92 m_typeIdIndexMap.clear(); 84 93 m_guestOSTypes->clear(); … … 102 111 void UIGuestOSTypeManager::addGuestOSType(const CGuestOSType &comType) 103 112 { 113 AssertReturnVoid(m_guestOSTypes); 104 114 m_guestOSTypes->append(UIGuestOSType(comType)); 105 115 m_typeIdIndexMap[m_guestOSTypes->last().getId()] = m_guestOSTypes->size() - 1; … … 230 240 } 231 241 242 /********************************************************************************************************************************* 243 * UIGuestOSType implementaion. * 244 *********************************************************************************************************************************/ 245 232 246 UIGuestOSType::UIGuestOSType() 233 247 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.h
r101294 r101295 56 56 UIGuestOSTypeManager(const UIGuestOSTypeManager &other) = delete; 57 57 58 /* A list of all OS families. 'first' of each pair is familId and 'second' is family description. */58 /** A list of all OS families. 'first' of each pair is family Id and 'second' is family description. */ 59 59 typedef QVector<QPair<QString, QString> > UIGuestOSTypeFamilyInfo; 60 /** Guest OS type info list for all type. 'first' is typeId and 'second' is description. */ 60 61 typedef QVector<QPair<QString, QString> > UIGuestOSTypeInfo; 61 62 63 /** Re-create the guest OS type database. */ 62 64 void reCacheGuestOSTypes(const CGuestOSTypeVector &guestOSTypes); 63 65 66 /** Returns a list of all families (id and description). */ 64 67 const UIGuestOSTypeFamilyInfo &getFamilies() const; 65 QStringList getVariantListForFamilyId(const QString &strFamilyId) const; 68 /** Returns the list of variants for @p strFamilyId. This may be an empty list. */ 69 QStringList getVariantListForFamilyId(const QString &strFamilyId) const; 70 /** Returns a list of OS types for the @p strFamilyId. */ 71 UIGuestOSTypeInfo getTypeListForFamilyId(const QString &strFamilyId) const; 72 /** Returns a list of OS types for the @p strVariant. */ 73 UIGuestOSTypeInfo getTypeListForVariant(const QString &strVariant) const; 66 74 67 UIGuestOSTypeInfo getTypeListForFamilyId(const QString &strFamilyId) const; 68 UIGuestOSTypeInfo getTypeListForVariant(const QString &strVariant) const; 69 70 /** @name Getters UIGuestOSType properties. They utilize a map for faster access to UIGuestOSType instance with @p strTypeId 75 /** @name Getters for UIGuestOSType properties. They utilize a map for faster access to UIGuestOSType instance with @p strTypeId 71 76 * @{ */ 72 77 QString getFamilyId(const QString &strTypeId) const;
Note:
See TracChangeset
for help on using the changeset viewer.