VirtualBox

Changeset 102152 in vbox


Ignore:
Timestamp:
Nov 20, 2023 2:58:48 PM (17 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160277
Message:

FE/Qt: bugref:10513: UIGuestOSType: A bit of refactoring; Rename UIGuestOSTypeFamilyInfo to UIGuestOSFamilyInfo; Introduce UIGuestInfoPair typedef for convenience.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.cpp

    r102102 r102152  
    6868}
    6969
    70 const UIGuestOSTypeManager::UIGuestOSTypeFamilyInfo &UIGuestOSTypeManager::getFamilies() const
     70const UIGuestOSTypeManager::UIGuestOSFamilyInfo &UIGuestOSTypeManager::getFamilies() const
    7171{
    7272    return m_guestOSFamilies;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.h

    r102102 r102152  
    103103    UIGuestOSTypeManager(const UIGuestOSTypeManager &other) = delete;
    104104
    105     /** A list of all OS families. 'first' of each pair is family Id and 'second' is family description. */
    106     typedef QVector<QPair<QString, QString> > UIGuestOSTypeFamilyInfo;
    107     /** Guest OS type info list for all type.  'first' is typeId and 'second' is description. */
    108     typedef QVector<QPair<QString, QString> > UIGuestOSTypeInfo;
     105    /** OS info pair. 'first' is id and 'second' is description. */
     106    typedef QPair<QString, QString> UIGuestInfoPair;
     107    /** A list of all OS family pairs. */
     108    typedef QVector<UIGuestInfoPair> UIGuestOSFamilyInfo;
     109    /** A list of all OS type pairs. */
     110    typedef QVector<UIGuestInfoPair> UIGuestOSTypeInfo;
    109111
    110112    /** Re-create the guest OS type database. */
     
    112114
    113115    /** Returns a list of all families (id and description). */
    114     const UIGuestOSTypeFamilyInfo &getFamilies() const;
     116    const UIGuestOSFamilyInfo &getFamilies() const;
    115117    /** Returns the list of subtypes for @p strFamilyId. This may be an empty list. */
    116     QStringList                    getSubtypeListForFamilyId(const QString &strFamilyId) const;
     118    QStringList                getSubtypeListForFamilyId(const QString &strFamilyId) const;
    117119    /** Returns a list of OS types for the @p strFamilyId. */
    118     UIGuestOSTypeInfo              getTypeListForFamilyId(const QString &strFamilyId) const;
     120    UIGuestOSTypeInfo          getTypeListForFamilyId(const QString &strFamilyId) const;
    119121    /** Returns a list of OS types for the @p strSubtype. */
    120     UIGuestOSTypeInfo              getTypeListForSubtype(const QString &strSubtype) const;
     122    UIGuestOSTypeInfo          getTypeListForSubtype(const QString &strSubtype) const;
    121123
    122124    static bool isDOSType(const QString &strOSTypeId);
     
    152154    QMap<QString, int> m_typeIdIndexMap;
    153155    /** First item of the pair is family id and the 2nd is family description. */
    154     UIGuestOSTypeInfo m_guestOSFamilies;
     156    UIGuestOSFamilyInfo m_guestOSFamilies;
    155157};
    156158
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp

    r101713 r102152  
    601601
    602602    /* Acquire family IDs: */
    603     const UIGuestOSTypeManager::UIGuestOSTypeFamilyInfo &families = uiCommon().guestOSTypeManager().getFamilies();
     603    const UIGuestOSTypeManager::UIGuestOSFamilyInfo &families = uiCommon().guestOSTypeManager().getFamilies();
    604604
    605605    /* Block signals initially and clear the combo: */
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIGuestOSTypeSelectionButton.cpp

    r101563 r102152  
    108108    m_pMainMenu->clear();
    109109
    110     UIGuestOSTypeManager::UIGuestOSTypeFamilyInfo familyList = uiCommon().guestOSTypeManager().getFamilies();
     110    UIGuestOSTypeManager::UIGuestOSFamilyInfo familyList = uiCommon().guestOSTypeManager().getFamilies();
    111111
    112112    for (int i = 0; i < familyList.size(); ++i)
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