WSF
LogServerPrefObject.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 2021 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#ifndef LOGSERVERPREFOBJECT_HPP
12#define LOGSERVERPREFOBJECT_HPP
13
14class QSettings;
15#include "ViExport.hpp"
16#include "WkfPrefObject.hpp"
17
18namespace LogServer
19{
21{
22 int mLogServerPort = 18888;
23};
24
25class VI_EXPORT PrefObject : public wkf::PrefObjectT<PrefData>
26{
27 Q_OBJECT
28public:
29 static constexpr const char* cNAME = "LogServer";
30 PrefObject(QObject* parent = nullptr);
31 int GetLogServerPort() const { return mCurrentPrefs.mLogServerPort; }
32
33private:
34 void EmitAllSignals();
35 void Apply() override;
36 PrefData ReadSettings(QSettings& aSettings) const override;
37 void SaveSettingsP(QSettings& aSettings) const override;
38};
39} // namespace LogServer
40
42#endif // LOGSERVERPREFOBJECT_HPP
Q_DECLARE_METATYPE(wizard::ProjectWorkspace *)
#define VI_EXPORT
Definition ViExport.hpp:38
static constexpr const char * cNAME
Definition LogServerPrefObject.hpp:29
PrefObject(QObject *parent=nullptr)
Definition LogServerPrefObject.cpp:15
int GetLogServerPort() const
Definition LogServerPrefObject.hpp:31
Definition LogServerPrefObject.hpp:19
Definition LogServerPrefObject.hpp:21
int mLogServerPort
Definition LogServerPrefObject.hpp:22
Copyrights Multiple, All Rights Reserved