#include <user.h>
Est dérivée de Modele.
Liste de tous les membres
Fonctions membres publiques |
| | User () |
| void | charger (int id) |
| bool | emprunter (QString cote, QString &message) |
| | emprunt retour
|
| bool | rendre (QString cote) |
| void | chargerEmprunt () |
| QStringList | listEmpruntActuel () |
| QStringList | listEmpruntPast () |
| void | calculNbrEmpruntActuel () |
| int | nbrEmpruntActuel () |
| virtual bool | creer () |
| virtual bool | modifier () const |
| virtual bool | supprimer () |
| QString | name () const |
| QString | lastname () const |
| QString | email () const |
| QString | semestre () const |
| bool | paid () const |
| bool | deposit () const |
| QString | comment () const |
| QList< Emprunt > | emprunts () const |
| int | nbrMax () const |
| QString | grade () const |
| int | gradeType () const |
| void | setName (QString name) |
| void | setLastname (QString lastname) |
| void | setEmail (QString email) |
| void | setGrade (QString grade) |
| void | setSemestre (QString semestre) |
| void | setPaid (bool paid) |
| void | setDeposit (bool deposit) |
| void | setComment (QString comment) |
Fonctions membres publiques statiques |
| static User | select (int id) |
| static User | selectLite (int id) |
| static void | listUsersCompletition (bool all, QStringList &list, QMap< QString, int > &map) |
| static QList< User > * | listUsers (QString lettre, int page, int nbrElements) |
| static int | nbrUsers () |
| static int | nbrUsers (QString lettre) |
| static QString | mailList (bool petit, bool grand=false, bool perm=false, bool bureau=false, bool ancien=false) |
| static int | adresseId (QString adresse) |
| | gestion users
|
Attributs protégés |
| QString | m_name |
| QString | m_lastname |
| QString | m_email |
| Grade | m_grade |
| QString | m_semestre |
| bool | m_paid |
| bool | m_deposit |
| QString | m_comment |
| QList< Emprunt > | m_emprunts |
| int | m_nbrEmpruntActuel |
Documentation des constructeurs et destructeur
Documentation des fonctions membres
| int User::adresseId |
( |
QString |
adresse |
) |
[static] |
| void User::calculNbrEmpruntActuel |
( |
|
) |
|
| void User::charger |
( |
int |
id |
) |
[virtual] |
Charge l'élément depuis la BDD.
- Paramètres:
-
| id | : L'id de l'élément dans la BDD. |
Implémente Modele.
| void User::chargerEmprunt |
( |
|
) |
|
| QString User::comment |
( |
|
) |
const [inline] |
| bool User::creer |
( |
|
) |
[virtual] |
Ajout l'élément dans la BDD.
Implémente Modele.
| bool User::deposit |
( |
|
) |
const [inline] |
| QString User::email |
( |
|
) |
const [inline] |
| bool User::emprunter |
( |
QString |
cote, |
|
|
QString & |
message | |
|
) |
| | |
| QList< Emprunt > User::emprunts |
( |
|
) |
const [inline] |
| QString User::grade |
( |
|
) |
const [inline] |
| int User::gradeType |
( |
|
) |
const [inline] |
| QString User::lastname |
( |
|
) |
const [inline] |
| QStringList User::listEmpruntActuel |
( |
|
) |
|
| QStringList User::listEmpruntPast |
( |
|
) |
|
| QList< User > * User::listUsers |
( |
QString |
lettre, |
|
|
int |
page, |
|
|
int |
nbrElements | |
|
) |
| | [static] |
| void User::listUsersCompletition |
( |
bool |
all, |
|
|
QStringList & |
list, |
|
|
QMap< QString, int > & |
map | |
|
) |
| | [static] |
| QString User::mailList |
( |
bool |
petit, |
|
|
bool |
grand = false, |
|
|
bool |
perm = false, |
|
|
bool |
bureau = false, |
|
|
bool |
ancien = false | |
|
) |
| | [static] |
| bool User::modifier |
( |
|
) |
const [virtual] |
Mofifie l'élément dans la BDD.
Implémente Modele.
| QString User::name |
( |
|
) |
const [inline] |
| int User::nbrEmpruntActuel |
( |
|
) |
[inline] |
| int User::nbrMax |
( |
|
) |
const [inline] |
| int User::nbrUsers |
( |
|
) |
[static] |
| int User::nbrUsers |
( |
QString |
lettre |
) |
[static] |
| bool User::paid |
( |
|
) |
const [inline] |
| bool User::rendre |
( |
QString |
cote |
) |
|
| User User::select |
( |
int |
id |
) |
[static] |
| User User::selectLite |
( |
int |
id |
) |
[static] |
| QString User::semestre |
( |
|
) |
const [inline] |
| void User::setComment |
( |
QString |
comment |
) |
[inline] |
| void User::setDeposit |
( |
bool |
deposit |
) |
[inline] |
| void User::setEmail |
( |
QString |
email |
) |
[inline] |
| void User::setGrade |
( |
QString |
grade |
) |
[inline] |
| void User::setLastname |
( |
QString |
lastname |
) |
[inline] |
| void User::setName |
( |
QString |
name |
) |
[inline] |
| void User::setPaid |
( |
bool |
paid |
) |
[inline] |
| void User::setSemestre |
( |
QString |
semestre |
) |
[inline] |
| bool User::supprimer |
( |
|
) |
[virtual] |
Supprime l'élément de la BDD.
Implémente Modele.
Documentation des données membres
La documentation de cette classe a été générée à partir des fichiers suivants :