VirtualBox

Changeset 84327 in vbox


Ignore:
Timestamp:
May 18, 2020 11:32:10 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: New Cloud VM wizard: Using new API which allows to list source boot-volumes only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.cpp

    r84289 r84327  
    296296            setClient(comCloudClient);
    297297
    298             /* Gather image names, ids and states.
    299              * Currently we are interested in Available images only. */
     298            /* Gather source names and ids, depending on current source tab-bar index: */
    300299            CStringArray comNames;
    301300            CStringArray comIDs;
    302             const QVector<KCloudImageState> cloudImageStates  = QVector<KCloudImageState>()
    303                                                              << KCloudImageState_Available;
    304 
    305             /* Depending on current source tab-bar index: */
    306301            CProgress comProgress;
    307302            switch (m_pSourceTabBar->currentIndex())
     
    309304                case 0:
    310305                {
    311                     /* Ask for cloud boot-volumes: */
    312                     comProgress = comCloudClient.ListBootVolumes(comNames, comIDs);
     306                    /* Ask for cloud boot-volumes, currently we are interested in Source boot-volumes only: */
     307                    comProgress = comCloudClient.ListSourceBootVolumes(comNames, comIDs);
    313308                    break;
    314309                }
    315310                case 1:
    316311                {
    317                     /* Ask for cloud images: */
     312                    /* Ask for cloud images, currently we are interested in Available images only: */
     313                    const QVector<KCloudImageState> cloudImageStates  = QVector<KCloudImageState>()
     314                                                                     << KCloudImageState_Available;
    318315                    comProgress = comCloudClient.ListImages(cloudImageStates, comNames, comIDs);
    319316                    break;
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