VirtualBox

Changeset 90602 in vbox for trunk


Ignore:
Timestamp:
Aug 10, 2021 3:22:53 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: Small cleanup for UIUpdateManager and UINewVersionChecker classes; Also moving isItForcedCall stuff to public API part.

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

Legend:

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

    r90586 r90602  
    3737
    3838
    39 UINewVersionChecker::UINewVersionChecker(bool fForceCall)
    40     : m_fForceCall(fForceCall)
     39UINewVersionChecker::UINewVersionChecker(bool fForcedCall)
     40    : m_fForcedCall(fForcedCall)
    4141    , m_url("https://update.virtualbox.org/query.php")
    4242{
     
    106106    else
    107107    {
    108         if (isItForceCall())
     108        if (isItForcedCall())
    109109            msgCenter().showUpdateNotFound();
    110110    }
  • trunk/src/VBox/Frontends/VirtualBox/src/networking/UINewVersionChecker.h

    r90586 r90602  
    3939
    4040    /** Constructs new version checker.
    41       * @param  fForceCall  Brings whether this customer has forced privelegies. */
    42     UINewVersionChecker(bool fForceCall);
     41      * @param  fForcedCall  Brings whether this customer has forced privelegies. */
     42    UINewVersionChecker(bool fForcedCall);
     43
     44    /** Returns whether this customer has forced privelegies. */
     45    bool isItForcedCall() const { return m_fForcedCall; }
    4346
    4447    /** Starts new version check. */
     
    5861private:
    5962
    60     /** Returns whether this customer has forced privelegies. */
    61     bool isItForceCall() const { return m_fForceCall; }
    62 
    6363    /** Generates platform information. */
    6464    static QString platformInfo();
    6565
    6666    /** Holds whether this customer has forced privelegies. */
    67     bool  m_fForceCall;
     67    bool  m_fForcedCall;
    6868    /** Holds the new version checker URL. */
    6969    QUrl  m_url;
  • trunk/src/VBox/Frontends/VirtualBox/src/networking/UIUpdateManager.cpp

    r90586 r90602  
    4343public:
    4444
    45     /** Constructs extension step. */
    46     UIUpdateStepVirtualBox(bool fForceCall);
     45    /** Constructs extension step.
     46      * @param  fForcedCall  Brings whether this customer has forced privelegies. */
     47    UIUpdateStepVirtualBox(bool fForcedCall);
    4748    /** Destructs extension step. */
    4849    virtual ~UIUpdateStepVirtualBox() /* override final */;
     
    8788*********************************************************************************************************************************/
    8889
    89 UIUpdateStepVirtualBox::UIUpdateStepVirtualBox(bool fForceCall)
     90UIUpdateStepVirtualBox::UIUpdateStepVirtualBox(bool fForcedCall)
    9091    : m_pNewVersionChecker(0)
    9192{
    92     m_pNewVersionChecker = new UINewVersionChecker(fForceCall);
     93    m_pNewVersionChecker = new UINewVersionChecker(fForcedCall);
    9394    if (m_pNewVersionChecker)
    9495        connect(m_pNewVersionChecker, &UINewVersionChecker::sigNewVersionChecked,
     
    301302}
    302303
    303 void UIUpdateManager::sltCheckIfUpdateIsNecessary(bool fForceCall /* = false */)
     304void UIUpdateManager::sltCheckIfUpdateIsNecessary(bool fForcedCall /* = false */)
    304305{
    305306    /* If already running: */
     
    307308    {
    308309        /* And we have a force-call: */
    309         if (fForceCall)
     310        if (fForcedCall)
    310311        {
    311312            /// @todo show notification-center
     
    325326        true ||
    326327#endif
    327         fForceCall || currentData.isNeedToCheck())
     328        fForcedCall || currentData.isNeedToCheck())
    328329    {
    329330        /* Prepare update queue: */
    330         m_pQueue->enqueue(new UIUpdateStepVirtualBox(fForceCall));
     331        m_pQueue->enqueue(new UIUpdateStepVirtualBox(fForcedCall));
    331332        m_pQueue->enqueue(new UIUpdateStepVirtualBoxExtensionPack);
    332333        /* Start update queue: */
  • trunk/src/VBox/Frontends/VirtualBox/src/networking/UIUpdateManager.h

    r90586 r90602  
    6363private slots:
    6464
    65     /** Checks whether update is necessary. */
    66     void sltCheckIfUpdateIsNecessary(bool fForceCall = false);
     65    /** Checks whether update is necessary.
     66      * @param  fForcedCall  Brings whether this customer has forced privelegies. */
     67    void sltCheckIfUpdateIsNecessary(bool fForcedCall = false);
    6768
    6869    /** Handles update finishing. */
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