VirtualBox

Ignore:
Timestamp:
Jan 26, 2024 12:12:12 PM (13 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161326
Message:

FE/Qt: Machine settings / System page: Boot order list should use API to get possible boot items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBootOrderEditor.cpp

    r102971 r103080  
    349349UIBootItemDataList UIBootDataTools::loadBootItems(const CMachine &comMachine)
    350350{
    351     /* Gather a list of all possible boot items.
    352      * Currently, it seems, we are supporting only 4 possible boot device types:
    353      * 1. Floppy, 2. DVD-ROM, 3. Hard Disk, 4. Network.
    354      * But maximum boot devices count supported by machine should be retrieved
    355      * through the ISystemProperties getter.  Moreover, possible boot device
    356      * types are not listed in some separate Main vector, so we should get them
    357      * (randomely?) from the list of all device types.  Until there will be a
    358      * separate Main getter for list of supported boot device types, this list
    359      * will be hard-coded here... */
    360     QVector<KDeviceType> possibleBootItems = QVector<KDeviceType>() << KDeviceType_Floppy
    361                                                                     << KDeviceType_DVD
    362                                                                     << KDeviceType_HardDisk
    363                                                                     << KDeviceType_Network;
    364351    CPlatform comPlatform = comMachine.GetPlatform();
    365352    const KPlatformArchitecture comArch = comPlatform.GetArchitecture();
    366353    const CPlatformProperties comProperties = uiCommon().virtualBox().GetPlatformProperties(comArch);
     354    QVector<KDeviceType> possibleBootItems = comProperties.GetSupportedBootDevices();
    367355    const int iPossibleBootListSize = qMin((ULONG)4, comProperties.GetMaxBootPosition());
    368356    possibleBootItems.resize(iPossibleBootListSize);
Note: See TracChangeset for help on using the changeset viewer.

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