|
FactDev
0.1
|
The Unit enum Unity of work : hour or day. More...
#include <contributory.h>
Public Member Functions | |
| Contributory () | |
| Contributory::Contributory Contruct a Contributory. | |
| Contributory (int id) | |
| Contributory::Contributory Contruct a Contributory and get data in database. More... | |
| ~Contributory () | |
| Destroy an contributory object. | |
| void | commit () |
| Contributory::commit Update or insert a contributory to the database. | |
| void | hydrat (int id) |
| Contributory::hydrat Get data about the Contributory which is specified by the identify id More... | |
| void | remove () |
| Contributory::remove Remove the current Contributory. | |
| double | getPrice (const bool paied=false) |
| getPrice Return the price of a contributory More... | |
| double | getSumQuantity () |
| ContributoriesList::getSumQuantity Return the sum of quantity (number of hours) of the Contributories. More... | |
| QVariantHash | getDataMap () |
| getDataMap Get all data of model with a HashMap key/value More... | |
| Project * | getProject () const |
| Contributory::getProject Return the project linked to this Contributory. More... | |
| void | setProject (Project *id) |
| Contributory::setProject Modify the identify id of the Project linked to this Contributory. More... | |
| double | getQuantity () const |
| getNbHours Number of work hour of a contributory More... | |
| void | setQuantity (double value) |
| setNbHours Change nbHours More... | |
| QString | getDescription () const |
| getDescription Description of a contributory More... | |
| void | setDescription (const QString &getDescription) |
| setDescription Change the contributory description More... | |
| bool | operator== (const Contributory &c) |
| operator == define the operator "==" to compare two Contributory More... | |
| bool | operator!= (const Contributory &c) |
| operator != define the operator "!=" to compare two Contributory More... | |
| QString | getLongDescription () const |
| getLongDescription A contributory has a long description : display in tex appendix More... | |
| void | setLongDescription (const QString &getLongDescription) |
| setLongDescription Change the long description More... | |
| Unit | getUnit () const |
| getUnit Return the unit (hour or day) of contributory More... | |
| void | setUnit (const Unit &value) |
| setUnit Change the unit More... | |
| double | getHourlyRate () const |
| getHourlyRate Hourly rate for this contributory More... | |
| void | setHourlyRate (double value) |
| setHourlyRate Change the hourly rate for this contributory More... | |
Public Member Functions inherited from Models::IModel | |
| virtual | ~IModel () |
| ~IModel Remove an instance of IModel | |
| 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... | |
Additional Inherited Members | |
Protected Attributes inherited from Models::IModel | |
| int | _id |
| Element identify. | |
| bool | _toRemoved |
| Flag to know if the object must be removed. | |
The Unit enum Unity of work : hour or day.
| Models::Contributory::Contributory | ( | int | id | ) |
Contributory::Contributory Contruct a Contributory and get data in database.
| id | Contributory's id |
|
virtual |
getDataMap Get all data of model with a HashMap key/value
Implements Models::IModel.
| QString Models::Contributory::getDescription | ( | ) | const |
getDescription Description of a contributory
| double Models::Contributory::getHourlyRate | ( | ) | const |
getHourlyRate Hourly rate for this contributory
| QString Models::Contributory::getLongDescription | ( | ) | const |
getLongDescription A contributory has a long description : display in tex appendix
|
virtual |
| Project * Models::Contributory::getProject | ( | ) | const |
Contributory::getProject Return the project linked to this Contributory.
| double Models::Contributory::getQuantity | ( | ) | const |
getNbHours Number of work hour of a contributory
|
virtual |
ContributoriesList::getSumQuantity Return the sum of quantity (number of hours) of the Contributories.
Implements Models::Calculable.
| Unit Models::Contributory::getUnit | ( | ) | const |
getUnit Return the unit (hour or day) of contributory
|
virtual |
Contributory::hydrat Get data about the Contributory which is specified by the identify id
| id | Contributory identify |
Implements Models::IModel.
| bool Models::Contributory::operator!= | ( | const Contributory & | c | ) |
operator != define the operator "!=" to compare two Contributory
| c | the Contributory to compare with the current Contributory |
| bool Models::Contributory::operator== | ( | const Contributory & | c | ) |
operator == define the operator "==" to compare two Contributory
| c | the Contributory to compare with the current Contributory |
| void Models::Contributory::setDescription | ( | const QString & | getDescription | ) |
setDescription Change the contributory description
| getDescription | The new description |
| void Models::Contributory::setHourlyRate | ( | double | value | ) |
setHourlyRate Change the hourly rate for this contributory
| value | The hourly rate |
| void Models::Contributory::setLongDescription | ( | const QString & | getLongDescription | ) |
setLongDescription Change the long description
| getLongDescription | The new description |
| void Models::Contributory::setProject | ( | Project * | id | ) |
Contributory::setProject Modify the identify id of the Project linked to this Contributory.
| id | Project Identify |
| void Models::Contributory::setQuantity | ( | double | value | ) |
setNbHours Change nbHours
| value | The new value of nbHours |
| void Models::Contributory::setUnit | ( | const Unit & | value | ) |
setUnit Change the unit
| value | The new unit |