WSF
BackupPrefObject.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2018 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef BACKUPPREFOBJECT_HPP
13#define BACKUPPREFOBJECT_HPP
14
15#include "WkfPrefObject.hpp"
16
17namespace wizard
18{
20{
21 bool mEnable{false};
22};
23
24class BackupPrefObject : public wkf::PrefObjectT<BackupPrefData>
25{
26 Q_OBJECT
27
28public:
29 static constexpr const char* cNAME = "BackupOptions";
30
31 BackupPrefObject(QObject* parent = nullptr);
32 ~BackupPrefObject() override = default;
33
34 void Apply() override;
35
36 BackupPrefData ReadSettings(QSettings& aSettings) const override;
37 void SaveSettingsP(QSettings& aSettings) const override;
38
39 bool Enabled() const;
40signals:
41 void Changed();
42};
43} // namespace wizard
44
46#endif
Q_DECLARE_METATYPE(wizard::ProjectWorkspace *)
void Apply() override
Definition BackupPrefObject.cpp:19
bool Enabled() const
Definition BackupPrefObject.cpp:36
void SaveSettingsP(QSettings &aSettings) const override
Definition BackupPrefObject.cpp:31
BackupPrefObject(QObject *parent=nullptr)
Definition BackupPrefObject.cpp:14
~BackupPrefObject() override=default
BackupPrefData ReadSettings(QSettings &aSettings) const override
Definition BackupPrefObject.cpp:24
static constexpr const char * cNAME
Definition BackupPrefObject.hpp:29
Definition Runner.hpp:22
Definition BackupPrefObject.hpp:20
bool mEnable
Definition BackupPrefObject.hpp:21
Copyrights Multiple, All Rights Reserved