- Timestamp:
- Aug 10, 2021 3:22:53 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/networking
- Files:
-
- 4 edited
-
UINewVersionChecker.cpp (modified) (2 diffs)
-
UINewVersionChecker.h (modified) (2 diffs)
-
UIUpdateManager.cpp (modified) (5 diffs)
-
UIUpdateManager.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/networking/UINewVersionChecker.cpp
r90586 r90602 37 37 38 38 39 UINewVersionChecker::UINewVersionChecker(bool fForce Call)40 : m_fForce Call(fForceCall)39 UINewVersionChecker::UINewVersionChecker(bool fForcedCall) 40 : m_fForcedCall(fForcedCall) 41 41 , m_url("https://update.virtualbox.org/query.php") 42 42 { … … 106 106 else 107 107 { 108 if (isItForce Call())108 if (isItForcedCall()) 109 109 msgCenter().showUpdateNotFound(); 110 110 } -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UINewVersionChecker.h
r90586 r90602 39 39 40 40 /** 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; } 43 46 44 47 /** Starts new version check. */ … … 58 61 private: 59 62 60 /** Returns whether this customer has forced privelegies. */61 bool isItForceCall() const { return m_fForceCall; }62 63 63 /** Generates platform information. */ 64 64 static QString platformInfo(); 65 65 66 66 /** Holds whether this customer has forced privelegies. */ 67 bool m_fForce Call;67 bool m_fForcedCall; 68 68 /** Holds the new version checker URL. */ 69 69 QUrl m_url; -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UIUpdateManager.cpp
r90586 r90602 43 43 public: 44 44 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); 47 48 /** Destructs extension step. */ 48 49 virtual ~UIUpdateStepVirtualBox() /* override final */; … … 87 88 *********************************************************************************************************************************/ 88 89 89 UIUpdateStepVirtualBox::UIUpdateStepVirtualBox(bool fForce Call)90 UIUpdateStepVirtualBox::UIUpdateStepVirtualBox(bool fForcedCall) 90 91 : m_pNewVersionChecker(0) 91 92 { 92 m_pNewVersionChecker = new UINewVersionChecker(fForce Call);93 m_pNewVersionChecker = new UINewVersionChecker(fForcedCall); 93 94 if (m_pNewVersionChecker) 94 95 connect(m_pNewVersionChecker, &UINewVersionChecker::sigNewVersionChecked, … … 301 302 } 302 303 303 void UIUpdateManager::sltCheckIfUpdateIsNecessary(bool fForce Call /* = false */)304 void UIUpdateManager::sltCheckIfUpdateIsNecessary(bool fForcedCall /* = false */) 304 305 { 305 306 /* If already running: */ … … 307 308 { 308 309 /* And we have a force-call: */ 309 if (fForce Call)310 if (fForcedCall) 310 311 { 311 312 /// @todo show notification-center … … 325 326 true || 326 327 #endif 327 fForce Call || currentData.isNeedToCheck())328 fForcedCall || currentData.isNeedToCheck()) 328 329 { 329 330 /* Prepare update queue: */ 330 m_pQueue->enqueue(new UIUpdateStepVirtualBox(fForce Call));331 m_pQueue->enqueue(new UIUpdateStepVirtualBox(fForcedCall)); 331 332 m_pQueue->enqueue(new UIUpdateStepVirtualBoxExtensionPack); 332 333 /* Start update queue: */ -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UIUpdateManager.h
r90586 r90602 63 63 private slots: 64 64 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); 67 68 68 69 /** Handles update finishing. */
Note:
See TracChangeset
for help on using the changeset viewer.

