17class test_HistorySettings;
33 :
public AbstractSettings
36 friend class AppSettings;
39 QSharedPointer<QSettings> mStore;
40 QVector<HistoryInfo> mHistoryInfos;
43 [[nodiscard]] QVector<HistoryInfo> getHistoryInfosFromStore()
const;
46 ~HistorySettings()
override =
default;
48 [[nodiscard]]
bool isEnabled()
const;
49 void setEnabled(
bool pEnabled);
51 [[nodiscard]]
const QVector<HistoryInfo>& getHistoryInfos()
const;
52 void setHistoryInfos(
const QVector<HistoryInfo>& pHistoryInfos);
53 void addHistoryInfo(
const HistoryInfo& pHistoryInfo);
54 int deleteSettings(
const QDateTime& pLatestToKeep = QDateTime());
55 int deleteSettings(
const TimePeriod& pPeriodToRemove);
58 void fireEnabledChanged(
bool pValue);
59 void fireHistoryInfosChanged();
#define defineEnumType(enumName,...)
Definition: EnumHelper.h:96
A simple template renderer.
Definition: ActivationContext.h:15
UNKNOWN
Definition: ResponseApdu.h:63