VirtualBox

Changeset 47998 in vbox


Ignore:
Timestamp:
Aug 22, 2013 3:46:10 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: 6909: Medium-enumeration cleanup (part 2).

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

Legend:

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

    r47774 r47998  
    116116    connect (pMachineWindow->machineView(), SIGNAL (resizeHintDone()), this, SLOT (processStatistics()));
    117117    connect (mInfoStack, SIGNAL (currentChanged (int)), this, SLOT (onPageChanged (int)));
    118     connect (&vboxGlobal(), SIGNAL (mediumEnumFinished (const VBoxMediaList &)), this, SLOT (updateDetails()));
     118    connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationFinished(const VBoxMediaList&)), this, SLOT(updateDetails()));
    119119    connect (mStatTimer, SIGNAL (timeout()), this, SLOT (processStatistics()));
    120120
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r47995 r47998  
    17991799    AssertReturnVoid(m_pMediumEnumerationThread);
    18001800
    1801     /* Emit mediumEnumStarted() after we set m_pMediumEnumerationThread to != NULL
     1801    /* Emit signal *after* we set m_pMediumEnumerationThread to != NULL
    18021802     * to cause isMediaEnumerationStarted() to return TRUE from slots: */
    1803     emit mediumEnumStarted();
     1803    emit sigMediumEnumerationStarted();
    18041804
    18051805    m_pMediumEnumerationThread->start();
     
    40354035                Assert (ev->mIterator != m_mediums.end());
    40364036                *(ev->mIterator) = ev->mMedium;
    4037                 emit mediumEnumerated (*ev->mIterator);
     4037                emit sigMediumEnumerated(*ev->mIterator);
    40384038            }
    40394039            else
     
    40434043                delete m_pMediumEnumerationThread;
    40444044                m_pMediumEnumerationThread = 0;
    4045                 emit mediumEnumFinished (m_mediums);
     4045                emit sigMediumEnumerationFinished(m_mediums);
    40464046            }
    40474047
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r47995 r47998  
    385385
    386386    /* Notifiers: Medium-enumeration stuff: */
    387     void mediumEnumStarted();
    388     void mediumEnumerated(const UIMedium &medum);
    389     void mediumEnumFinished(const VBoxMediaList &mediums);
     387    void sigMediumEnumerationStarted();
     388    void sigMediumEnumerated(const UIMedium &medium);
     389    void sigMediumEnumerationFinished(const VBoxMediaList &mediums);
    390390
    391391    /** Emitted when a new media is added using #addMedia(). */
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp

    r47995 r47998  
    490490    mButtonBox->button (QDialogButtonBox::Cancel)->setVisible (mDoSelect);
    491491
    492     /* Listen to "media enumeration started" signals */
    493     connect (&vboxGlobal(), SIGNAL (mediumEnumStarted()),
    494              this, SLOT (mediumEnumStarted()));
    495     /* Listen to "media enumeration" signals */
    496     connect (&vboxGlobal(), SIGNAL (mediumEnumerated (const UIMedium &)),
    497              this, SLOT (mediumEnumerated (const UIMedium &)));
    498     /* Listen to "media enumeration finished" signals */
    499     connect (&vboxGlobal(), SIGNAL (mediumEnumFinished (const VBoxMediaList &)),
    500              this, SLOT (mediumEnumFinished (const VBoxMediaList &)));
     492    /* Configure medium-enumeration connections: */
     493    connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationStarted()),
     494            this, SLOT(sltHandleMediumEnumerationStart()));
     495    connect(&vboxGlobal(), SIGNAL(sigMediumEnumerated(const UIMedium&)),
     496            this, SLOT(sltHandleMediumEnumerated(const UIMedium&)));
     497    connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationFinished(const VBoxMediaList&)),
     498            this, SLOT(sltHandleMediumEnumerationFinish(const VBoxMediaList&)));
    501499
    502500    /* Listen to "media add" signals */
     
    528526        /* Emulate the finished signal to reuse the code */
    529527        if (!vboxGlobal().isMediaEnumerationStarted())
    530             mediumEnumFinished (list);
     528            sltHandleMediumEnumerationFinish(list);
    531529    }
    532530
     
    967965}
    968966
    969 void UIMediumManager::mediumEnumStarted()
     967void UIMediumManager::sltHandleMediumEnumerationStart()
    970968{
    971969    /* Reset inaccessible flags */
     
    1001999}
    10021000
    1003 void UIMediumManager::mediumEnumerated (const UIMedium &aMedium)
     1001void UIMediumManager::sltHandleMediumEnumerated(const UIMedium &aMedium)
    10041002{
    10051003    mediumUpdated (aMedium);
     
    10081006}
    10091007
    1010 void UIMediumManager::mediumEnumFinished (const VBoxMediaList &/* aList */)
     1008void UIMediumManager::sltHandleMediumEnumerationFinish(const VBoxMediaList &/* aList */)
    10111009{
    10121010    mProgressBar->setVisible (false);
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.h

    r46756 r47998  
    8181    void mediumRemoved (UIMediumType aType, const QString &aId);
    8282
    83     void mediumEnumStarted();
    84     void mediumEnumerated (const UIMedium &aMedium);
    85     void mediumEnumFinished (const VBoxMediaList &aList);
     83    void sltHandleMediumEnumerationStart();
     84    void sltHandleMediumEnumerated(const UIMedium &aMedium);
     85    void sltHandleMediumEnumerationFinish(const VBoxMediaList &aList);
    8686
    8787    void doNewMedium();
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r47688 r47998  
    177177}
    178178
    179 void UISelectorWindow::sltMediumEnumFinished()
     179void UISelectorWindow::sltHandleMediumEnumerationFinish()
    180180{
    181181    /* We try to warn about inaccessible mediums only once
     
    10361036    /* Make sure user warned about inaccessible medium(s)
    10371037     * even if enumeration had finished before selector window shown: */
    1038     QTimer::singleShot(0, this, SLOT(sltMediumEnumFinished()));
     1038    QTimer::singleShot(0, this, SLOT(sltHandleMediumEnumerationFinish()));
    10391039}
    10401040
     
    14031403{
    14041404    /* Medium enumeration connections: */
    1405     connect(&vboxGlobal(), SIGNAL(mediumEnumFinished(const VBoxMediaList &)), this, SLOT(sltMediumEnumFinished()));
     1405    connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationFinished(const VBoxMediaList &)), this, SLOT(sltHandleMediumEnumerationFinish()));
    14061406
    14071407    /* Menu-bar connections: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h

    r45377 r47998  
    6565
    6666    /* Handler: Medium enumeration stuff: */
    67     void sltMediumEnumFinished();
     67    void sltHandleMediumEnumerationFinish();
    6868
    6969    /* Handler: Menubar/status stuff: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.cpp

    r47401 r47998  
    346346
    347347    /* Meidum-enumeration connections: */
    348     connect(&vboxGlobal(), SIGNAL(mediumEnumStarted()), this, SLOT(sltUpdateAppearance()));
    349     connect(&vboxGlobal(), SIGNAL(mediumEnumFinished(const VBoxMediaList &)), this, SLOT(sltUpdateAppearance()));
     348    connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationStarted()), this, SLOT(sltUpdateAppearance()));
     349    connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationFinished(const VBoxMediaList &)), this, SLOT(sltUpdateAppearance()));
    350350}
    351351
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp

    r47846 r47998  
    553553
    554554    /* Allow to reset first-run flag just when medium enumeration was finished: */
    555     connect(&vboxGlobal(), SIGNAL(mediumEnumFinished(const VBoxMediaList &)), this, SLOT(sltAllowResetFirstRunFlag()));
     555    connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationFinished(const VBoxMediaList &)), this, SLOT(sltAllowResetFirstRunFlag()));
    556556
    557557    /* Get corresponding machine (required to determine dialog type and page availability): */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp

    r47995 r47998  
    18311831
    18321832    /* Setup connections */
    1833     connect (&vboxGlobal(), SIGNAL (mediumEnumerated (const UIMedium &)),
    1834              this, SLOT (mediumUpdated (const UIMedium &)));
     1833    connect (&vboxGlobal(), SIGNAL (sigMediumEnumerated (const UIMedium &)),
     1834             this, SLOT (sltHandleMediumUpdated (const UIMedium &)));
    18351835    connect (&vboxGlobal(), SIGNAL (mediumUpdated (const UIMedium &)),
    1836              this, SLOT (mediumUpdated (const UIMedium &)));
     1836             this, SLOT (sltHandleMediumUpdated (const UIMedium &)));
    18371837    connect (&vboxGlobal(), SIGNAL (mediumRemoved (UIMediumType, const QString &)),
    1838              this, SLOT (mediumRemoved (UIMediumType, const QString &)));
     1838             this, SLOT (sltHandleMediumRemoved (UIMediumType, const QString &)));
    18391839    connect (mAddCtrAction, SIGNAL (triggered (bool)), this, SLOT (addController()));
    18401840    connect (mAddIDECtrAction, SIGNAL (triggered (bool)), this, SLOT (addIDEController()));
     
    22712271}
    22722272
    2273 void UIMachineSettingsStorage::mediumUpdated (const UIMedium &aMedium)
     2273void UIMachineSettingsStorage::sltHandleMediumUpdated(const UIMedium &aMedium)
    22742274{
    22752275    QModelIndex rootIndex = mStorageModel->root();
     
    22922292}
    22932293
    2294 void UIMachineSettingsStorage::mediumRemoved (UIMediumType /* aType */, const QString &aMediumId)
     2294void UIMachineSettingsStorage::sltHandleMediumRemoved(UIMediumType /* aType */, const QString &aMediumId)
    22952295{
    22962296    QModelIndex rootIndex = mStorageModel->root();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h

    r47944 r47998  
    682682private slots:
    683683
    684     void mediumUpdated (const UIMedium &aMedium);
    685     void mediumRemoved (UIMediumType aType, const QString &aMediumId);
     684    void sltHandleMediumUpdated(const UIMedium &aMedium);
     685    void sltHandleMediumRemoved(UIMediumType aType, const QString &aMediumId);
    686686
    687687    void addController();
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxMediaComboBox.cpp

    r47995 r47998  
    3838    setSizePolicy (sp1);
    3939
    40     /* Setup enumeration handlers */
    41     connect (&vboxGlobal(), SIGNAL (mediumEnumStarted()),
    42              this, SLOT (mediumEnumStarted()));
    43     connect (&vboxGlobal(), SIGNAL (mediumEnumerated (const UIMedium &)),
    44              this, SLOT (mediumEnumerated (const UIMedium &)));
     40    /* Setup medium-enumeration handlers: */
     41    connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationStarted()),
     42            this, SLOT(sltHandleMediumEnumerationStart()));
     43    connect(&vboxGlobal(), SIGNAL(sigMediumEnumerated (const UIMedium&)),
     44            this, SLOT(sltHandleMediumEnumerated(const UIMedium&)));
    4545
    4646    /* Setup update handlers */
     
    168168
    169169
    170 void VBoxMediaComboBox::mediumEnumStarted()
     170void VBoxMediaComboBox::sltHandleMediumEnumerationStart()
    171171{
    172172    refresh();
    173173}
    174174
    175 void VBoxMediaComboBox::mediumEnumerated (const UIMedium &aMedium)
     175void VBoxMediaComboBox::sltHandleMediumEnumerated(const UIMedium &aMedium)
    176176{
    177177    mediumUpdated (aMedium);
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxMediaComboBox.h

    r44528 r47998  
    5252protected slots:
    5353
    54     void mediumEnumStarted();
    55     void mediumEnumerated (const UIMedium &);
     54    void sltHandleMediumEnumerationStart();
     55    void sltHandleMediumEnumerated(const UIMedium &);
    5656
    5757    void mediumAdded (const UIMedium &);
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