FactDev  0.1
people.h
1 #ifndef PEOPLE_H
2 #define PEOPLE_H
3 #include <QString>
4 #include <QPixmap>
5 
6 #include "models/imodel.h"
7 
8 namespace Models {
12 class People : public IModel
13 {
14 public:
18  People();
19  ~People();
20 
24  People(int id);
25 
30  QString getFirstname() const;
35  void setFirstname(const QString &firstname);
36 
41  QString getLastname() const;
46  void setLastname(const QString &lastname);
47 
52  QString getCompany() const;
57  void setCompany(const QString &company);
58 
64  QString getAddress() const;
69  void setAddress(const QString &address);
70 
75  QString getPostalCode() const;
80  void setPostalCode(const QString &postalCode);
81 
86  QString getCity() const;
91  void setCity(const QString &city);
92 
97  QString getCountry() const;
103  void setCountry(const QString &country);
104 
109  QString getEmail() const;
114  void setEmail(const QString &email);
115 
120  QString getPhone() const;
125  void setPhone(const QString &phone);
126 
132  QString getMobilePhone() const;
138  void setMobilePhone(const QString &mobilePhone);
143  QString getFax() const;
148  void setFax(const QString &fax);
149 
154  virtual QPixmap *getImage() const;
159  virtual void setImage(QPixmap *image);
160 
165  QString getExtensionImage() const;
171  void setExtensionImage(const QString &ext);
172 
177  QString getAddressComplement() const;
178 
183  void setAddressComplement(const QString &addressComplement);
184 
189  QString getWebsite() const;
190 
195  void setWebsite(const QString &website);
196 
204  bool operator ==(const People &c);
212  bool operator !=(const People &c);
213 
214 protected:
215  QPixmap* _image;
216 
217 private:
218  QString _firstname;
219  QString _lastname;
220  QString _company;
221  QString _address;
222  QString _addressComplement;
223  QString _postalCode;
224  QString _city;
225  QString _country;
226  QString _email;
227  QString _phone;
228  QString _mobilePhone;
229  QString _fax;
230  QString _extensionImage;
231  QString _website;
232 
233 
234 };
235 }
236 
237 #endif // PEOPLE_H
void setWebsite(const QString &website)
setWebsite Change the url of website
Definition: people.cpp:186
QString getWebsite() const
getWebsite Website of People
Definition: people.cpp:181
void setCompany(const QString &company)
People::setCompany Modify the People company name.
Definition: people.cpp:46
void setAddressComplement(const QString &addressComplement)
setAddressComplement Change the address complement
Definition: people.cpp:177
QString getPhone() const
People::getPhone Return the number of the desktop phone.
Definition: people.cpp:101
The IModel class.
Definition: imodel.h:13
bool operator!=(const People &c)
People::operator == Re-define the operator "!=" to compare if the current People is differnt to the o...
Definition: people.cpp:156
QString getAddress() const
People::getAddress Return the company addess (Number and name of street)
Definition: people.cpp:51
virtual void setImage(QPixmap *image)
People::setImage Modify the current compagny image by image
Definition: people.cpp:136
void setMobilePhone(const QString &mobilePhone)
People::setMobilePhone Modify the number of the professional People mobile phone mobilePhone ...
Definition: people.cpp:116
QPixmap * _image
Compagny image.
Definition: people.h:215
void setPostalCode(const QString &postalCode)
People::setPostalCode Modify the postal code postalCode
Definition: people.cpp:66
People()
People::People Construct a People.
Definition: people.cpp:6
QString getEmail() const
People::getEmail Return the People professional email
Definition: people.cpp:91
QString getLastname() const
People::getLastname Return the People lastname.
Definition: people.cpp:31
void setFax(const QString &fax)
People::setFax Replace the current fax number by fax
Definition: people.cpp:126
QString getFax() const
People::getFax Return the fax number.
Definition: people.cpp:121
void setFirstname(const QString &firstname)
People::setFirstnament Modify the People firstname
Definition: people.cpp:26
bool operator==(const People &c)
People::operator == Re-define the operator "==" to compare if the current People is the same to the o...
Definition: people.cpp:141
QString getCompany() const
People::getCompany Return the People company.
Definition: people.cpp:41
void setEmail(const QString &email)
People::setEmail Modify the People professional email
Definition: people.cpp:96
void setExtensionImage(const QString &ext)
People::setExtensionImage Change the extension of the image file by the new ext
Definition: people.cpp:166
QString getCity() const
People::getCity Return the city.
Definition: people.cpp:71
virtual QPixmap * getImage() const
People::getImage Return the compagny image.
Definition: people.cpp:131
QString getAddressComplement() const
getAddressComplement Return the address complement (Building, Appartment, …)
Definition: people.cpp:172
QString getPostalCode() const
People::getPostalCode Return the postal code.
Definition: people.cpp:61
QString getCountry() const
People::getCountry Return the country of the People.
Definition: people.cpp:81
The People class People.
Definition: people.h:12
void setLastname(const QString &lastname)
People::setLastname Modify the People lastname
Definition: people.cpp:36
QString getFirstname() const
People::getFirstname Return the People firstname.
Definition: people.cpp:21
QString getMobilePhone() const
People::getMobilePhone Return the number of the professional mobile phone.
Definition: people.cpp:111
void setPhone(const QString &phone)
People::setPhone Modify the number of the desktop phone
Definition: people.cpp:106
void setCountry(const QString &country)
People::setCountry Replace the country of the People by country
Definition: people.cpp:86
void setAddress(const QString &address)
People::setAddress Modify the People company address
Definition: people.cpp:56
QString getExtensionImage() const
People::getExtensionImage Return the extension of the image file.
Definition: people.cpp:161
void setCity(const QString &city)
People::setCity Modify the city
Definition: people.cpp:76