VirtualBox

Changeset 101295 in vbox for trunk


Ignore:
Timestamp:
Sep 27, 2023 3:03:51 PM (19 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159281
Message:

FE/Qt: bugref:10523. Some polishing.

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  
    2929#include "UIGuestOSType.h"
    3030
     31
     32/*********************************************************************************************************************************
     33*   UIGuestOSType definition.                                                                                     *
     34*********************************************************************************************************************************/
    3135
    3236/** A wrapper around CGuestOSType. Some of the properties are cached here for performance. */
     
    7478};
    7579
     80/*********************************************************************************************************************************
     81*   UIGuestOSTypeManager implementaion.                                                                                     *
     82*********************************************************************************************************************************/
     83
    7684UIGuestOSTypeManager::UIGuestOSTypeManager()
    7785    :m_guestOSTypes(new QList<UIGuestOSType>())
     
    8189void UIGuestOSTypeManager::reCacheGuestOSTypes(const CGuestOSTypeVector &guestOSTypes)
    8290{
     91    AssertReturnVoid(m_guestOSTypes);
    8392    m_typeIdIndexMap.clear();
    8493    m_guestOSTypes->clear();
     
    102111void UIGuestOSTypeManager::addGuestOSType(const CGuestOSType &comType)
    103112{
     113    AssertReturnVoid(m_guestOSTypes);
    104114    m_guestOSTypes->append(UIGuestOSType(comType));
    105115    m_typeIdIndexMap[m_guestOSTypes->last().getId()] = m_guestOSTypes->size() - 1;
     
    230240}
    231241
     242/*********************************************************************************************************************************
     243*   UIGuestOSType implementaion.                                                                                     *
     244*********************************************************************************************************************************/
     245
    232246UIGuestOSType::UIGuestOSType()
    233247{
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.h

    r101294 r101295  
    5656    UIGuestOSTypeManager(const UIGuestOSTypeManager &other) = delete;
    5757
    58     /* A list of all OS families. 'first' of each pair is famil Id and 'second' is family description. */
     58    /** A list of all OS families. 'first' of each pair is family Id and 'second' is family description. */
    5959    typedef QVector<QPair<QString, QString> > UIGuestOSTypeFamilyInfo;
     60    /** Guest OS type info list for all type.  'first' is typeId and 'second' is description. */
    6061    typedef QVector<QPair<QString, QString> > UIGuestOSTypeInfo;
    6162
     63    /** Re-create the guest OS type database. */
    6264    void reCacheGuestOSTypes(const CGuestOSTypeVector &guestOSTypes);
    6365
     66    /** Returns a list of all families (id and description). */
    6467    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;
    6674
    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
    7176      * @{ */
    7277        QString                 getFamilyId(const QString &strTypeId) const;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette