VirtualBox

Changeset 90375 in vbox for trunk


Ignore:
Timestamp:
Jul 28, 2021 3:41:48 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: Small refactoring; Renaming strShortProviderName to strProviderShortName for consistency.

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

Legend:

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

    r90370 r90375  
    41574157}
    41584158
    4159 void UICommon::sltHandleCloudMachineAdded(const QString &strShortProviderName,
     4159void UICommon::sltHandleCloudMachineAdded(const QString &strProviderShortName,
    41604160                                          const QString &strProfileName,
    41614161                                          const CCloudMachine &comMachine)
    41624162{
    41634163    /* Make sure we cached added cloud VM in GUI: */
    4164     notifyCloudMachineRegistered(strShortProviderName,
     4164    notifyCloudMachineRegistered(strProviderShortName,
    41654165                                 strProfileName,
    41664166                                 comMachine);
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h

    r90352 r90375  
    748748     * @{ */
    749749        /** Handles signal about cloud machine was added. */
    750         void sltHandleCloudMachineAdded(const QString &strShortProviderName,
     750        void sltHandleCloudMachineAdded(const QString &strProviderShortName,
    751751                                        const QString &strProfileName,
    752752                                        const CCloudMachine &comMachine);
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp

    r90373 r90375  
    13411341}
    13421342
    1343 void UIChooserModel::sltHandleCloudMachineRemoved(const QString &strShortProviderName,
     1343void UIChooserModel::sltHandleCloudMachineRemoved(const QString &strProviderShortName,
    13441344                                                  const QString &strProfileName,
    13451345                                                  const QString &strName)
     
    13481348
    13491349    /* Update profile to make sure it has no stale instances: */
    1350     const UICloudEntityKey cloudEntityKeyForProfile = UICloudEntityKey(strShortProviderName, strProfileName);
     1350    const UICloudEntityKey cloudEntityKeyForProfile = UICloudEntityKey(strProviderShortName, strProfileName);
    13511351    createReadCloudMachineListTask(cloudEntityKeyForProfile, false /* with refresh? */);
    13521352}
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h

    r90373 r90375  
    342342      * @{ */
    343343        /** Handles cloud machine removal.
    344           * @param  strShortProviderName  Brigns the provider short name.
     344          * @param  strProviderShortName  Brigns the provider short name.
    345345          * @param  strProfileName        Brings the profile name.
    346346          * @param  strName               Brings the machine name. */
    347         void sltHandleCloudMachineRemoved(const QString &strShortProviderName,
     347        void sltHandleCloudMachineRemoved(const QString &strProviderShortName,
    348348                                          const QString &strProfileName,
    349349                                          const QString &strName);
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp

    r90374 r90375  
    224224                                                                             const CCloudMachine &comMachine,
    225225                                                                             const QString &strInstanceName,
    226                                                                              const QString &strShortProviderName,
     226                                                                             const QString &strProviderShortName,
    227227                                                                             const QString &strProfileName)
    228228    : m_comClient(comClient)
    229229    , m_comMachine(comMachine)
    230230    , m_strInstanceName(strInstanceName)
    231     , m_strShortProviderName(strShortProviderName)
     231    , m_strProviderShortName(strProviderShortName)
    232232    , m_strProfileName(strProfileName)
    233233{
     
    244244{
    245245    return UINotificationProgress::tr("<b>Provider:</b> %1<br><b>Profile:</b> %2<br><b>Instance Name:</b> %3")
    246                                      .arg(m_strShortProviderName, m_strProfileName, m_strInstanceName);
     246                                     .arg(m_strProviderShortName, m_strProfileName, m_strInstanceName);
    247247}
    248248
     
    260260{
    261261    if (m_comMachine.isNotNull() && !m_comMachine.GetId().isNull())
    262         emit sigCloudMachineAdded(m_strShortProviderName, m_strProfileName, m_comMachine);
     262        emit sigCloudMachineAdded(m_strProviderShortName, m_strProfileName, m_comMachine);
    263263}
    264264
     
    271271                                                                                   const CCloudMachine &comMachine,
    272272                                                                                   const CVirtualSystemDescription &comVSD,
    273                                                                                    const QString &strShortProviderName,
     273                                                                                   const QString &strProviderShortName,
    274274                                                                                   const QString &strProfileName)
    275275    : m_comClient(comClient)
    276276    , m_comMachine(comMachine)
    277277    , m_comVSD(comVSD)
    278     , m_strShortProviderName(strShortProviderName)
     278    , m_strProviderShortName(strProviderShortName)
    279279    , m_strProfileName(strProfileName)
    280280{
     
    300300{
    301301    return UINotificationProgress::tr("<b>Provider:</b> %1<br><b>Profile:</b> %2<br><b>Name:</b> %3")
    302                                       .arg(m_strShortProviderName, m_strProfileName, m_strName);
     302                                      .arg(m_strProviderShortName, m_strProfileName, m_strName);
    303303}
    304304
     
    316316{
    317317    if (m_comMachine.isNotNull() && !m_comMachine.GetId().isNull())
    318         emit sigCloudMachineCreated(m_strShortProviderName, m_strProfileName, m_comMachine);
     318        emit sigCloudMachineCreated(m_strProviderShortName, m_strProfileName, m_comMachine);
    319319}
    320320
     
    326326UINotificationProgressCloudMachineRemove::UINotificationProgressCloudMachineRemove(const CCloudMachine &comMachine,
    327327                                                                                   bool fFullRemoval,
    328                                                                                    const QString &strShortProviderName,
     328                                                                                   const QString &strProviderShortName,
    329329                                                                                   const QString &strProfileName)
    330330    : m_comMachine(comMachine)
    331331    , m_fFullRemoval(fFullRemoval)
    332     , m_strShortProviderName(strShortProviderName)
     332    , m_strProviderShortName(strProviderShortName)
    333333    , m_strProfileName(strProfileName)
    334334{
     
    368368{
    369369    if (error().isEmpty())
    370         emit sigCloudMachineRemoved(m_strShortProviderName, m_strProfileName, m_strName);
     370        emit sigCloudMachineRemoved(m_strProviderShortName, m_strProfileName, m_strName);
    371371}
    372372
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h

    r90374 r90375  
    244244
    245245    /** Notifies listeners about cloud @a comMachine was added.
    246       * @param  strShortProviderName  Brigns the short provider name.
     246      * @param  strProviderShortName  Brigns the short provider name.
    247247      * @param  strProfileName        Brings the profile name. */
    248     void sigCloudMachineAdded(const QString &strShortProviderName,
     248    void sigCloudMachineAdded(const QString &strProviderShortName,
    249249                              const QString &strProfileName,
    250250                              const CCloudMachine &comMachine);
     
    256256      * @param  comMachine            Brings the cloud machine being added.
    257257      * @param  strInstanceName       Brings the instance name.
    258       * @param  strShortProviderName  Brings the short provider name.
     258      * @param  strProviderShortName  Brings the short provider name.
    259259      * @param  strProfileName        Brings the profile name. */
    260260    UINotificationProgressCloudMachineAdd(const CCloudClient &comClient,
    261261                                          const CCloudMachine &comMachine,
    262262                                          const QString &strInstanceName,
    263                                           const QString &strShortProviderName,
     263                                          const QString &strProviderShortName,
    264264                                          const QString &strProfileName);
    265265
     
    287287    QString        m_strInstanceName;
    288288    /** Holds the short provider name. */
    289     QString        m_strShortProviderName;
     289    QString        m_strProviderShortName;
    290290    /** Holds the profile name. */
    291291    QString        m_strProfileName;
     
    300300
    301301    /** Notifies listeners about cloud @a comMachine was created.
    302       * @param  strShortProviderName  Brigns the short provider name.
     302      * @param  strProviderShortName  Brigns the short provider name.
    303303      * @param  strProfileName        Brings the profile name. */
    304     void sigCloudMachineCreated(const QString &strShortProviderName,
     304    void sigCloudMachineCreated(const QString &strProviderShortName,
    305305                                const QString &strProfileName,
    306306                                const CCloudMachine &comMachine);
     
    312312      * @param  comMachine            Brings the cloud machine being added.
    313313      * @param  comVSD                Brings the virtual system description.
    314       * @param  strShortProviderName  Brings the short provider name.
     314      * @param  strProviderShortName  Brings the short provider name.
    315315      * @param  strProfileName        Brings the profile name. */
    316316    UINotificationProgressCloudMachineCreate(const CCloudClient &comClient,
    317317                                             const CCloudMachine &comMachine,
    318318                                             const CVirtualSystemDescription &comVSD,
    319                                              const QString &strShortProviderName,
     319                                             const QString &strProviderShortName,
    320320                                             const QString &strProfileName);
    321321
     
    345345    QString                    m_strName;
    346346    /** Holds the short provider name. */
    347     QString                    m_strShortProviderName;
     347    QString                    m_strProviderShortName;
    348348    /** Holds the profile name. */
    349349    QString                    m_strProfileName;
     
    358358
    359359    /** Notifies listeners about cloud machine was removed.
    360       * @param  strShortProviderName  Brigns the short provider name.
     360      * @param  strProviderShortName  Brigns the short provider name.
    361361      * @param  strProfileName        Brings the profile name.
    362362      * @param  strName               Brings the machine name. */
    363     void sigCloudMachineRemoved(const QString &strShortProviderName,
     363    void sigCloudMachineRemoved(const QString &strProviderShortName,
    364364                                const QString &strProfileName,
    365365                                const QString &strName);
     
    372372    UINotificationProgressCloudMachineRemove(const CCloudMachine &comMachine,
    373373                                             bool fFullRemoval,
    374                                              const QString &strShortProviderName,
     374                                             const QString &strProviderShortName,
    375375                                             const QString &strProfileName);
    376376
     
    398398    bool           m_fFullRemoval;
    399399    /** Holds the short provider name. */
    400     QString        m_strShortProviderName;
     400    QString        m_strProviderShortName;
    401401    /** Holds the profile name. */
    402402    QString        m_strProfileName;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVM.h

    r89999 r90375  
    4545    QString fullGroupName() const { return m_strFullGroupName; }
    4646
    47     /** Defines @a strShortProviderName. */
    48     void setShortProviderName(const QString &strShortProviderName) { m_strShortProviderName = strShortProviderName; }
     47    /** Defines @a strProviderShortName. */
     48    void setShortProviderName(const QString &strProviderShortName) { m_strProviderShortName = strProviderShortName; }
    4949    /** Returns short provider name. */
    50     QString shortProviderName() const { return m_strShortProviderName; }
     50    QString shortProviderName() const { return m_strProviderShortName; }
    5151
    5252    /** Defines @a strProfileName. */
     
    8181    QString       m_strFullGroupName;
    8282    /** Holds the short provider name. */
    83     QString       m_strShortProviderName;
     83    QString       m_strProviderShortName;
    8484    /** Holds the profile name. */
    8585    QString       m_strProfileName;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.cpp

    r89999 r90375  
    481481}
    482482
    483 void UIWizardAddCloudVMPageBasic1::setShortProviderName(const QString &strShortProviderName)
    484 {
    485     qobject_cast<UIWizardAddCloudVM*>(wizard())->setShortProviderName(strShortProviderName);
     483void UIWizardAddCloudVMPageBasic1::setShortProviderName(const QString &strProviderShortName)
     484{
     485    qobject_cast<UIWizardAddCloudVM*>(wizard())->setShortProviderName(strProviderShortName);
    486486}
    487487
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.h

    r89999 r90375  
    108108
    109109    /** Defines short provider name. */
    110     void setShortProviderName(const QString &strShortProviderName);
     110    void setShortProviderName(const QString &strProviderShortName);
    111111    /** Returns profile name. */
    112112    QString shortProviderName() const;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp

    r89999 r90375  
    225225}
    226226
    227 void UIWizardAddCloudVMPageExpert::setShortProviderName(const QString &strShortProviderName)
    228 {
    229     qobject_cast<UIWizardAddCloudVM*>(wizard())->setShortProviderName(strShortProviderName);
     227void UIWizardAddCloudVMPageExpert::setShortProviderName(const QString &strProviderShortName)
     228{
     229    qobject_cast<UIWizardAddCloudVM*>(wizard())->setShortProviderName(strProviderShortName);
    230230}
    231231
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h

    r89999 r90375  
    6969
    7070    /** Defines short provider name. */
    71     void setShortProviderName(const QString &strShortProviderName);
     71    void setShortProviderName(const QString &strProviderShortName);
    7272    /** Returns profile name. */
    7373    QString shortProviderName() const;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVM.h

    r89996 r90375  
    5454    QString fullGroupName() const { return m_strFullGroupName; }
    5555
    56     /** Defines @a strShortProviderName. */
    57     void setShortProviderName(const QString &strShortProviderName) { m_strShortProviderName = strShortProviderName; }
     56    /** Defines @a strProviderShortName. */
     57    void setShortProviderName(const QString &strProviderShortName) { m_strProviderShortName = strProviderShortName; }
    5858    /** Returns short provider name. */
    59     QString shortProviderName() const { return m_strShortProviderName; }
     59    QString shortProviderName() const { return m_strProviderShortName; }
    6060
    6161    /** Defines @a strProfileName. */
     
    107107    QString                        m_strFullGroupName;
    108108    /** Holds the short provider name. */
    109     QString                        m_strShortProviderName;
     109    QString                        m_strProviderShortName;
    110110    /** Holds the profile name. */
    111111    QString                        m_strProfileName;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.cpp

    r89997 r90375  
    556556}
    557557
    558 void UIWizardNewCloudVMPageBasic1::setShortProviderName(const QString &strShortProviderName)
    559 {
    560     qobject_cast<UIWizardNewCloudVM*>(wizard())->setShortProviderName(strShortProviderName);
     558void UIWizardNewCloudVMPageBasic1::setShortProviderName(const QString &strProviderShortName)
     559{
     560    qobject_cast<UIWizardNewCloudVM*>(wizard())->setShortProviderName(strProviderShortName);
    561561}
    562562
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.h

    r89997 r90375  
    117117
    118118    /** Defines short provider name. */
    119     void setShortProviderName(const QString &strShortProviderName);
     119    void setShortProviderName(const QString &strProviderShortName);
    120120    /** Returns profile name. */
    121121    QString shortProviderName() const;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp

    r90034 r90375  
    349349}
    350350
    351 void UIWizardNewCloudVMPageExpert::setShortProviderName(const QString &strShortProviderName)
    352 {
    353     qobject_cast<UIWizardNewCloudVM*>(wizard())->setShortProviderName(strShortProviderName);
     351void UIWizardNewCloudVMPageExpert::setShortProviderName(const QString &strProviderShortName)
     352{
     353    qobject_cast<UIWizardNewCloudVM*>(wizard())->setShortProviderName(strProviderShortName);
    354354}
    355355
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h

    r89997 r90375  
    7676
    7777    /** Defines short provider name. */
    78     void setShortProviderName(const QString &strShortProviderName);
     78    void setShortProviderName(const QString &strProviderShortName);
    7979    /** Returns profile name. */
    8080    QString shortProviderName() const;
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