TreeFrogFramework  1.18
tmodelobject.h
Go to the documentation of this file.
1 #ifndef TMODELOBJECT_H
2 #define TMODELOBJECT_H
3 
4 #include <QObject>
5 #include <QStringList>
6 #include <QVariant>
7 #include <QMap>
8 #include <TGlobal>
9 
10 
11 class T_CORE_EXPORT TModelObject : public QObject
12 {
13 public:
14  TModelObject() : QObject() { }
15  virtual ~TModelObject() { }
16  virtual bool isNull() const = 0;
17  virtual bool create() = 0;
18  virtual bool update() = 0;
19  virtual bool save() = 0;
20  virtual bool remove() = 0;
21  virtual void setProperties(const QVariantMap &value);
22  virtual void clear();
23  virtual QVariantMap toVariantMap() const;
24  virtual QStringList propertyNames() const;
25 
26 private:
29 };
30 
31 #endif // TMODELOBJECT_H
#define T_CORE_EXPORT
Definition: tglobal.h:81
#define T_DISABLE_COPY(Class)
Definition: tglobal.h:137
#define T_DISABLE_MOVE(Class)
Definition: tglobal.h:141
virtual ~TModelObject()
Definition: tmodelobject.h:15
TModelObject()
Definition: tmodelobject.h:14
The TModelObject class provides an abstract base for model objects.
Definition: tmodelobject.h:11