cctw  0.2.1
cctwobject.h
Go to the documentation of this file.
1 #ifndef CCTWOBJECT_H
2 #define CCTWOBJECT_H
3 
4 #include <QObject>
5 #include <QSettings>
6 #include "qcepproperty.h"
7 #include "qcepobjectnamer.h"
8 
9 class CctwObject : public QObject
10 {
11  Q_OBJECT
12 public:
13  explicit CctwObject(QString name, QObject *parent = 0);
14 
15 signals:
16 
17 public slots:
18  virtual void printLine(QString line);
19  virtual void printMessage(QString msg, QDateTime dt=QDateTime::currentDateTime());
20 
21  virtual QString settingsScript();
22  QString scriptValueLiteral(QVariant v);
23 
24 public:
25  virtual void writeSettings(QSettings *set, QString section);
26  virtual void readSettings(QSettings *set, QString section);
27 
28 private:
29  QcepObjectNamer m_ObjectNamer;
30 
31 public:
32  Q_PROPERTY(QString name READ get_Name WRITE set_Name STORED false)
33  QCEP_STRING_PROPERTY(Name)
34 };
35 
36 #endif // CCTWOBJECT_H
QString scriptValueLiteral(QVariant v)
Definition: cctwobject.cpp:57
virtual QString settingsScript()
Definition: cctwobject.cpp:83
QString name
Definition: cctwobject.h:32
virtual void printMessage(QString msg, QDateTime dt=QDateTime::currentDateTime())
Definition: cctwobject.cpp:25
QcepObjectNamer m_ObjectNamer
Definition: cctwobject.h:29
virtual void readSettings(QSettings *set, QString section)
Definition: cctwobject.cpp:52
virtual void printLine(QString line)
Definition: cctwobject.cpp:14
virtual void writeSettings(QSettings *set, QString section)
Definition: cctwobject.cpp:39
CctwObject(QString name, QObject *parent=0)
Definition: cctwobject.cpp:7