diff options
| author | Silarn <jrim@rimpo.org> | 2019-02-05 22:38:46 -0600 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2019-02-18 21:31:20 -0600 |
| commit | 8bc9db23d98ae454899791af9e0fbc0bab4d0b15 (patch) | |
| tree | 372f10f58879b6726e777ff4e295a7461f880a38 /src/settings.h | |
| parent | eb575e2f92e00e32220e7aa8efaf14ece462c981 (diff) | |
Add settings option to switch between fixed and dynamic cache timeouts
Diffstat (limited to 'src/settings.h')
| -rw-r--r-- | src/settings.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h index a1dc011d..ddb7cac0 100644 --- a/src/settings.h +++ b/src/settings.h @@ -31,6 +31,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <QString> #include <QVariant> #include <QColor> +#include <QMetaType> #include <QtGlobal> //for uint @@ -64,6 +65,14 @@ class Settings : public QObject { Q_OBJECT + Q_ENUMS(NexusUpdateStrategy) + +public: + + enum NexusUpdateStrategy { + Rigid, + Flexible + }; public: @@ -230,6 +239,11 @@ public: */ int crashDumpsMax() const; + /** + * @return the configured Nexus update strategy + */ + NexusUpdateStrategy nexusUpdateStrategy() const; + QColor modlistOverwrittenLooseColor() const; QColor modlistOverwritingLooseColor() const; @@ -485,6 +499,7 @@ private: QListWidget *m_knownServersList; QListWidget *m_preferredServersList; QCheckBox *m_endorsementBox; + QCheckBox *m_updateStrategyBox; }; /** Display/store the configuration in the 'steam' tab of the settings dialogue */ @@ -563,4 +578,6 @@ private: }; +Q_DECLARE_METATYPE(Settings::NexusUpdateStrategy) + #endif // SETTINGS_H |
