|
FactDev
0.1
|
#include <imodel.h>
Public Member Functions | |
| virtual | ~IModel () |
| ~IModel Remove an instance of IModel | |
| virtual void | commit ()=0 |
| IModel::commit Update or insert data into the database. | |
| virtual void | hydrat (int id)=0 |
| IModel::hydrat Get data of the element which is specified by the identify id from the database. More... | |
| virtual void | remove ()=0 |
| IModel::remove Remove the current element in the database. | |
| virtual QVariantHash | getDataMap ()=0 |
| getDataMap Get all data of model with a HashMap key/value More... | |
| int | getId () const |
| IModel::getId Return the identify of the element of the database. More... | |
| void | setId (int id) |
| IModel::setId Replace the current identify by id More... | |
| bool | isToRemoved () const |
| toRemoved return if object must be removed. More... | |
| void | setToRemoved (bool toRemoved) |
| setToRemoved Change the flag for removed object More... | |
Protected Attributes | |
| int | _id |
| Element identify. | |
| bool | _toRemoved |
| Flag to know if the object must be removed. | |
The IModel class.
|
pure virtual |
getDataMap Get all data of model with a HashMap key/value
Implemented in Models::Contributory, Models::Billing, Models::Project, Models::User, and Models::Customer.
|
inline |
IModel::getId Return the identify of the element of the database.
|
pure virtual |
IModel::hydrat Get data of the element which is specified by the identify id from the database.
| id |
Implemented in Models::Billing, Models::Project, Models::Contributory, Models::User, and Models::Customer.
|
inline |
toRemoved return if object must be removed.
|
inline |
IModel::setId Replace the current identify by id
| id | New identify |
|
inline |
setToRemoved Change the flag for removed object
| toRemoved | The new flag |