|
FactDev
0.1
|
The People class People. More...
#include <people.h>
Public Member Functions | |
| People () | |
| People::People Construct a People. | |
| People (int id) | |
| People::People Construct a People. | |
| QString | getFirstname () const |
| People::getFirstname Return the People firstname. More... | |
| void | setFirstname (const QString &firstname) |
| People::setFirstnament Modify the People firstname More... | |
| QString | getLastname () const |
| People::getLastname Return the People lastname. More... | |
| void | setLastname (const QString &lastname) |
| People::setLastname Modify the People lastname More... | |
| QString | getCompany () const |
| People::getCompany Return the People company. More... | |
| void | setCompany (const QString &company) |
| People::setCompany Modify the People company name. More... | |
| QString | getAddress () const |
| People::getAddress Return the company addess (Number and name of street) More... | |
| void | setAddress (const QString &address) |
| People::setAddress Modify the People company address More... | |
| QString | getPostalCode () const |
| People::getPostalCode Return the postal code. More... | |
| void | setPostalCode (const QString &postalCode) |
| People::setPostalCode Modify the postal code postalCode More... | |
| QString | getCity () const |
| People::getCity Return the city. More... | |
| void | setCity (const QString &city) |
| People::setCity Modify the city More... | |
| QString | getCountry () const |
| People::getCountry Return the country of the People. More... | |
| void | setCountry (const QString &country) |
| People::setCountry Replace the country of the People by country More... | |
| QString | getEmail () const |
| People::getEmail Return the People professional email More... | |
| void | setEmail (const QString &email) |
| People::setEmail Modify the People professional email More... | |
| QString | getPhone () const |
| People::getPhone Return the number of the desktop phone. More... | |
| void | setPhone (const QString &phone) |
| People::setPhone Modify the number of the desktop phone More... | |
| QString | getMobilePhone () const |
| People::getMobilePhone Return the number of the professional mobile phone. More... | |
| void | setMobilePhone (const QString &mobilePhone) |
| People::setMobilePhone Modify the number of the professional People mobile phone mobilePhone More... | |
| QString | getFax () const |
| People::getFax Return the fax number. More... | |
| void | setFax (const QString &fax) |
| People::setFax Replace the current fax number by fax More... | |
| virtual QPixmap * | getImage () const |
| People::getImage Return the compagny image. More... | |
| virtual void | setImage (QPixmap *image) |
| People::setImage Modify the current compagny image by image More... | |
| QString | getExtensionImage () const |
| People::getExtensionImage Return the extension of the image file. More... | |
| void | setExtensionImage (const QString &ext) |
| People::setExtensionImage Change the extension of the image file by the new ext More... | |
| QString | getAddressComplement () const |
| getAddressComplement Return the address complement (Building, Appartment, …) More... | |
| void | setAddressComplement (const QString &addressComplement) |
| setAddressComplement Change the address complement More... | |
| QString | getWebsite () const |
| getWebsite Website of People More... | |
| void | setWebsite (const QString &website) |
| setWebsite Change the url of website More... | |
| bool | operator== (const People &c) |
| People::operator == Re-define the operator "==" to compare if the current People is the same to the other People c Return TRUE if both Peoples are the same, else FALSE. More... | |
| bool | operator!= (const People &c) |
| People::operator == Re-define the operator "!=" to compare if the current People is differnt to the other People c Return TRUE if both Peoples are different, else FALSE. More... | |
Public Member Functions inherited from Models::IModel | |
| 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 | |
| QPixmap * | _image |
| Compagny image. | |
Protected Attributes inherited from Models::IModel | |
| int | _id |
| Element identify. | |
| bool | _toRemoved |
| Flag to know if the object must be removed. | |
| QString Models::People::getAddress | ( | ) | const |
People::getAddress Return the company addess (Number and name of street)
| QString Models::People::getAddressComplement | ( | ) | const |
getAddressComplement Return the address complement (Building, Appartment, …)
| QString Models::People::getCity | ( | ) | const |
People::getCity Return the city.
| QString Models::People::getCompany | ( | ) | const |
People::getCompany Return the People company.
| QString Models::People::getCountry | ( | ) | const |
People::getCountry Return the country of the People.
| QString Models::People::getEmail | ( | ) | const |
People::getEmail Return the People professional email
| QString Models::People::getExtensionImage | ( | ) | const |
People::getExtensionImage Return the extension of the image file.
| QString Models::People::getFax | ( | ) | const |
People::getFax Return the fax number.
| QString Models::People::getFirstname | ( | ) | const |
People::getFirstname Return the People firstname.
|
virtual |
People::getImage Return the compagny image.
| QString Models::People::getLastname | ( | ) | const |
People::getLastname Return the People lastname.
| QString Models::People::getMobilePhone | ( | ) | const |
People::getMobilePhone Return the number of the professional mobile phone.
| QString Models::People::getPhone | ( | ) | const |
People::getPhone Return the number of the desktop phone.
| QString Models::People::getPostalCode | ( | ) | const |
People::getPostalCode Return the postal code.
| QString Models::People::getWebsite | ( | ) | const |
getWebsite Website of People
| bool Models::People::operator!= | ( | const People & | c | ) |
People::operator == Re-define the operator "!=" to compare if the current People is differnt to the other People c Return TRUE if both Peoples are different, else FALSE.
| c | People to compare |
| bool Models::People::operator== | ( | const People & | c | ) |
People::operator == Re-define the operator "==" to compare if the current People is the same to the other People c Return TRUE if both Peoples are the same, else FALSE.
| c | People to compare |
| void Models::People::setAddress | ( | const QString & | address | ) |
People::setAddress Modify the People company address
| address | Company address (name and number of street) |
| void Models::People::setAddressComplement | ( | const QString & | addressComplement | ) |
setAddressComplement Change the address complement
| addressComplement | The new complement |
| void Models::People::setCity | ( | const QString & | city | ) |
People::setCity Modify the city
| city | Company city address |
| void Models::People::setCompany | ( | const QString & | company | ) |
People::setCompany Modify the People company name.
| company | New People company name |
| void Models::People::setCountry | ( | const QString & | country | ) |
People::setCountry Replace the country of the People by country
| country | New country of the People |
| void Models::People::setEmail | ( | const QString & | ) |
People::setEmail Modify the People professional email
| The People professional email |
| void Models::People::setExtensionImage | ( | const QString & | ext | ) |
People::setExtensionImage Change the extension of the image file by the new ext
| ext | Extension file |
| void Models::People::setFax | ( | const QString & | fax | ) |
People::setFax Replace the current fax number by fax
| fax | new fax number |
| void Models::People::setFirstname | ( | const QString & | firstname | ) |
|
virtual |
People::setImage Modify the current compagny image by image
| image | Compagny image |
Reimplemented in Models::User, and Models::Customer.
| void Models::People::setLastname | ( | const QString & | lastname | ) |
People::setLastname Modify the People lastname
| lastname | New People lastname |
| void Models::People::setMobilePhone | ( | const QString & | mobilePhone | ) |
People::setMobilePhone Modify the number of the professional People mobile phone mobilePhone
| mobilePhone | Number of the professional mobile phone |
| void Models::People::setPhone | ( | const QString & | phone | ) |
People::setPhone Modify the number of the desktop phone
| phone | Number of the desktop phone |
| void Models::People::setPostalCode | ( | const QString & | postalCode | ) |
People::setPostalCode Modify the postal code postalCode
| postalCode | New postal code |
| void Models::People::setWebsite | ( | const QString & | website | ) |
setWebsite Change the url of website
| website | The new URL |