TreeFrogFramework  2.8
tmodelobject.h
Go to the documentation of this file.
1 #pragma once
2 #include <QMap>
3 #include <QObject>
4 #include <QStringList>
5 #include <QVariant>
6 #include <TGlobal>
7 
8 
9 class T_CORE_EXPORT TModelObject : public QObject {
10 public:
12  QObject() { }
13  virtual ~TModelObject() { }
14  virtual bool isNull() const = 0;
15  virtual bool create() = 0;
16  virtual bool update() = 0;
17  virtual bool save() = 0;
18  virtual bool remove() = 0;
19  virtual void setProperties(const QVariantMap &value);
20  virtual void clear();
21  virtual QVariantMap toVariantMap() const;
22  virtual QStringList propertyNames() const;
23 };
The TModelObject class provides an abstract base for model objects.
Definition: tmodelobject.h:9
virtual ~TModelObject()
Definition: tmodelobject.h:13
TModelObject()
Definition: tmodelobject.h:11
virtual bool save()=0
virtual bool isNull() const =0
virtual bool remove()=0
virtual bool create()=0
virtual bool update()=0
#define T_CORE_EXPORT
Definition: tdeclexport.h:28