Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
updates_settings.h
Go to the documentation of this file.
1#ifndef UPDATES_SETTINGS_H
2#define UPDATES_SETTINGS_H
3
4#include "settings_manager.h"
5
6#include <QDate>
8
10{
11 Q_OBJECT
12 friend class SettingsCache;
13
14public:
15 [[nodiscard]] bool getCheckUpdatesOnStartup() const override;
16 [[nodiscard]] bool getStartupCardUpdateCheckPromptForUpdate() override;
17 [[nodiscard]] bool getStartupCardUpdateCheckAlwaysUpdate() override;
18 [[nodiscard]] int getCardUpdateCheckInterval() const override;
19 [[nodiscard]] QDate getLastCardUpdateCheck() const override;
20 [[nodiscard]] bool getCardUpdateCheckRequired() const override;
21 [[nodiscard]] bool getAlwaysEnableNewSets() const override;
22 [[nodiscard]] bool getNotifyAboutUpdates() const override;
23 [[nodiscard]] bool getNotifyAboutNewVersion() const override;
24 [[nodiscard]] int getUpdateReleaseChannelIndex() const override;
25
26 void setCheckUpdatesOnStartup(bool value);
29 void setCardUpdateCheckInterval(int value);
30 void setLastCardUpdateCheck(QDate value);
31 void setAlwaysEnableNewSets(bool value);
32 void setNotifyAboutUpdates(bool _notifyaboutupdate);
33 void setNotifyAboutNewVersion(bool _notifyaboutnewversion);
34 void setUpdateReleaseChannelIndex(int value);
35
36public:
37 explicit UpdatesSettings(const QString &settingPath, QObject *parent = nullptr);
38
39private:
40 UpdatesSettings(const UpdatesSettings & /*other*/);
41};
42
43#endif // UPDATES_SETTINGS_H
Definition interface_updates_settings_provider.h:7
SettingsManager(const QString &settingPath, const QString &defaultGroup=QString(), const QString &defaultSubGroup=QString(), QObject *parent=nullptr)
Definition settings_manager.cpp:3
QString settingPath
Definition settings_manager.h:33
void setAlwaysEnableNewSets(bool value)
Definition updates_settings.cpp:86
bool getNotifyAboutNewVersion() const override
Definition updates_settings.cpp:51
QDate getLastCardUpdateCheck() const override
Definition updates_settings.cpp:30
void setLastCardUpdateCheck(QDate value)
Definition updates_settings.cpp:81
int getCardUpdateCheckInterval() const override
Definition updates_settings.cpp:25
void setNotifyAboutUpdates(bool _notifyaboutupdate)
Definition updates_settings.cpp:91
bool getStartupCardUpdateCheckAlwaysUpdate() override
Definition updates_settings.cpp:20
void setCardUpdateCheckInterval(int value)
Definition updates_settings.cpp:76
UpdatesSettings(const QString &settingPath, QObject *parent=nullptr)
Definition updates_settings.cpp:5
bool getCheckUpdatesOnStartup() const override
Definition updates_settings.cpp:10
bool getNotifyAboutUpdates() const override
Definition updates_settings.cpp:46
bool getStartupCardUpdateCheckPromptForUpdate() override
Definition updates_settings.cpp:15
friend class SettingsCache
Definition updates_settings.h:12
void setStartupCardUpdateCheckAlwaysUpdate(bool value)
Definition updates_settings.cpp:71
int getUpdateReleaseChannelIndex() const override
Definition updates_settings.cpp:56
UpdatesSettings(const UpdatesSettings &)
bool getAlwaysEnableNewSets() const override
Definition updates_settings.cpp:41
void setStartupCardUpdateCheckPromptForUpdate(bool value)
Definition updates_settings.cpp:66
void setCheckUpdatesOnStartup(bool value)
Definition updates_settings.cpp:61
void setUpdateReleaseChannelIndex(int value)
Definition updates_settings.cpp:101
void setNotifyAboutNewVersion(bool _notifyaboutnewversion)
Definition updates_settings.cpp:96
bool getCardUpdateCheckRequired() const override
Definition updates_settings.cpp:35