VirtualBox

Changeset 51447 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 28, 2014 1:38:38 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94010
Message:

FE/Qt: 6660: Advanced extra-data management framework: Unifying Network Manager related stuff.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/extradata
Files:
2 edited

Legend:

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

    r51402 r51447  
    160160
    161161#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
     162bool UIExtraDataManager::shouldWeAllowApplicationUpdate() const
     163{
     164    /* Allow unless 'forbidden' flag is set: */
     165    return !isFeatureAllowed(GUI_PreventApplicationUpdate);
     166}
     167
    162168QString UIExtraDataManager::applicationUpdateData() const
    163169{
     
    266272    return extraDataStringList(GUI_InvertMessageOption);
    267273}
    268 
    269 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    270 bool UIExtraDataManager::shouldWeAllowApplicationUpdate() const
    271 {
    272     /* Allow unless 'forbidden' flag is set: */
    273     return !isFeatureAllowed(GUI_PreventApplicationUpdate);
    274 }
    275 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
    276274
    277275WizardMode UIExtraDataManager::modeForWizard(WizardType type)
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r51401 r51447  
    7777
    7878#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    79     /** Returns last application update date. */
     79    /** Returns whether we should allow Application Update. */
     80    bool shouldWeAllowApplicationUpdate() const;
     81    /** Returns last Application Update date. */
    8082    QString applicationUpdateData() const;
    81     /** Defines last application update date as @a strValue. */
     83    /** Defines last Application Update date as @a strValue. */
    8284    void setApplicationUpdateData(const QString &strValue);
    83     /** Returns application update check counter. */
     85    /** Returns Application Update check counter. */
    8486    qulonglong applicationUpdateCheckCounter() const;
    85     /** Increments application update check counter. */
     87    /** Increments Application Update check counter. */
    8688    void incrementApplicationUpdateCheckCounter();
    8789#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
     
    120122    /** Returns list of the messages for the Message/Popup center frameworks with inverted check-box state. */
    121123    QStringList messagesWithInvertedOption() const;
    122 
    123 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    124     /** Returns whether we should allow Application Update. */
    125     bool shouldWeAllowApplicationUpdate() const;
    126 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
    127124
    128125    /** Returns mode (basic/expert) for wizard of @a type. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette