FactDev  0.1
Models::People Class Reference

The People class People. More...

#include <people.h>

Inheritance diagram for Models::People:
Models::IModel Models::Customer Models::User

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.
 

Detailed Description

The People class People.

Member Function Documentation

QString Models::People::getAddress ( ) const

People::getAddress Return the company addess (Number and name of street)

Returns
Address company
QString Models::People::getAddressComplement ( ) const

getAddressComplement Return the address complement (Building, Appartment, …)

Returns
The address complement
QString Models::People::getCity ( ) const

People::getCity Return the city.

Returns
city
QString Models::People::getCompany ( ) const

People::getCompany Return the People company.

Returns
New company name
QString Models::People::getCountry ( ) const

People::getCountry Return the country of the People.

Returns
country of the People
QString Models::People::getEmail ( ) const

People::getEmail Return the People professional email

Returns
professional email
QString Models::People::getExtensionImage ( ) const

People::getExtensionImage Return the extension of the image file.

Returns
Extension of image file
QString Models::People::getFax ( ) const

People::getFax Return the fax number.

Returns
fax number
QString Models::People::getFirstname ( ) const

People::getFirstname Return the People firstname.

Returns
People firstname
QPixmap * Models::People::getImage ( ) const
virtual

People::getImage Return the compagny image.

Returns
compagny image
QString Models::People::getLastname ( ) const

People::getLastname Return the People lastname.

Returns
People lastname
QString Models::People::getMobilePhone ( ) const

People::getMobilePhone Return the number of the professional mobile phone.

Returns
number of mobile phone
QString Models::People::getPhone ( ) const

People::getPhone Return the number of the desktop phone.

Returns
number of the desktop phone
QString Models::People::getPostalCode ( ) const

People::getPostalCode Return the postal code.

Returns
postal code
QString Models::People::getWebsite ( ) const

getWebsite Website of People

Returns
The website url
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.

Parameters
cPeople to compare
Returns
boolean
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.

Parameters
cPeople to compare
Returns
boolean
void Models::People::setAddress ( const QString &  address)

People::setAddress Modify the People company address

Parameters
addressCompany address (name and number of street)
void Models::People::setAddressComplement ( const QString &  addressComplement)

setAddressComplement Change the address complement

Parameters
addressComplementThe new complement
void Models::People::setCity ( const QString &  city)

People::setCity Modify the city

Parameters
cityCompany city address
void Models::People::setCompany ( const QString &  company)

People::setCompany Modify the People company name.

Parameters
companyNew People company name
void Models::People::setCountry ( const QString &  country)

People::setCountry Replace the country of the People by country

Parameters
countryNew country of the People
void Models::People::setEmail ( const QString &  email)

People::setEmail Modify the People professional email

Parameters
emailThe People professional email
void Models::People::setExtensionImage ( const QString &  ext)

People::setExtensionImage Change the extension of the image file by the new ext

Parameters
extExtension file
void Models::People::setFax ( const QString &  fax)

People::setFax Replace the current fax number by fax

Parameters
faxnew fax number
void Models::People::setFirstname ( const QString &  firstname)

People::setFirstnament Modify the People firstname

Parameters
firstnameNew People firstname
void Models::People::setImage ( QPixmap *  image)
virtual

People::setImage Modify the current compagny image by image

Parameters
imageCompagny image

Reimplemented in Models::User, and Models::Customer.

void Models::People::setLastname ( const QString &  lastname)

People::setLastname Modify the People lastname

Parameters
lastnameNew People lastname
void Models::People::setMobilePhone ( const QString &  mobilePhone)

People::setMobilePhone Modify the number of the professional People mobile phone mobilePhone

Parameters
mobilePhoneNumber of the professional mobile phone
void Models::People::setPhone ( const QString &  phone)

People::setPhone Modify the number of the desktop phone

Parameters
phoneNumber of the desktop phone
void Models::People::setPostalCode ( const QString &  postalCode)

People::setPostalCode Modify the postal code postalCode

Parameters
postalCodeNew postal code
void Models::People::setWebsite ( const QString &  website)

setWebsite Change the url of website

Parameters
websiteThe new URL

The documentation for this class was generated from the following files: