3 #include <QVariantHash>
30 virtual void hydrat(
int id) = 0;
34 virtual void remove() = 0;
int _id
Element identify.
Definition: imodel.h:72
void setId(int id)
IModel::setId Replace the current identify by id
Definition: imodel.h:51
virtual void commit()=0
IModel::commit Update or insert data into the database.
The IModel class.
Definition: imodel.h:13
bool _toRemoved
Flag to know if the object must be removed.
Definition: imodel.h:73
virtual QVariantHash getDataMap()=0
getDataMap Get all data of model with a HashMap key/value
virtual void hydrat(int id)=0
IModel::hydrat Get data of the element which is specified by the identify id from the database...
void setToRemoved(bool toRemoved)
setToRemoved Change the flag for removed object
Definition: imodel.h:66
bool isToRemoved() const
toRemoved return if object must be removed.
Definition: imodel.h:57
virtual ~IModel()
~IModel Remove an instance of IModel
Definition: imodel.h:19
int getId() const
IModel::getId Return the identify of the element of the database.
Definition: imodel.h:46