eVaf
iconfig.h
Go to the documentation of this file.
1 
20 #ifndef __COMMON_ICONFIG_H
21 # define __COMMON_ICONFIG_H
22 
23 #include "libcommon.h"
24 
25 #include <QObject>
26 #include <QString>
27 #include <QVariant>
28 
29 namespace eVaf {
30 namespace Common {
31 
63 {
64  Q_OBJECT
65 
66 public:
67 
69  iConfig() : QObject() {}
70 
72  virtual ~iConfig() {}
73 
84  static iConfig * instance();
85 
100  virtual QVariant getValue(QString const & paramName, QVariant const & defaultValue) const = 0;
101 
120  virtual bool setValue(QString const & paramName, QVariant const & value, bool commit = true) = 0;
121 
122 };
123 
124 
125 } // namespace eVaf::Common
126 } // namespace eVaf
127 
128 #endif // iconfig.h
#define COMMON_EXPORT
Definition: libcommon.h:27
eVaf configuration interface.
Definition: iconfig.h:62
iConfig()
Interface constructor.
Definition: iconfig.h:69
virtual ~iConfig()
Empty virtual destructor.
Definition: iconfig.h:72
Global eVaf namespace.
Definition: engine.h:37