#include <Profils.h>
◆ Profils()
Profils::Profils |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ ~Profils()
◆ getListeProfils()
QVariant Profils::getListeProfils |
( |
| ) |
|
Références profils.
63 return QVariant::fromValue(
profils);
QList< QObject * > profils
Definition: Profils.h:22
◆ insererProfil()
bool Profils::insererProfil |
( |
QString |
nom, |
|
|
QString |
idJoueur, |
|
|
QString |
idParametres |
|
) |
| |
Références bdd, BaseDeDonnees::executer(), et recupererNomProfils().
49 qDebug() << Q_FUNC_INFO;
50 QString requete =
"INSERT INTO profils(idJoueur,idParametres,nom) VALUES('" + idJoueur +
"', '" + idParametres +
"', '" + nom +
"')";
BaseDeDonnees * bdd
Definition: Profils.h:23
Q_INVOKABLE bool recupererNomProfils(QString idJoueur="")
Definition: Profils.cpp:18
Q_INVOKABLE bool executer(QString requete)
Definition: BaseDeDonnees.cpp:162
◆ listeProfilsUpdated
void Profils::listeProfilsUpdated |
( |
| ) |
|
|
signal |
◆ recupererNomProfils()
bool Profils::recupererNomProfils |
( |
QString |
idJoueur = "" | ) |
|
Références bdd, listeProfilsUpdated(), profils, et BaseDeDonnees::recuperer().
Référencé par insererProfil().
20 QString requete =
"SELECT idProfil, idJoueur, idParametres, nom FROM profils WHERE idJoueur ='" + idJoueur +
"'";
21 QVector<QStringList> lesProfils;
23 if(idJoueur.isEmpty())
33 qDebug() << Q_FUNC_INFO << lesProfils;
36 for(
int i = 0; i < lesProfils.size(); i++)
38 Profil *profil =
new Profil(lesProfils.at(i).at(0), lesProfils.at(i).at(1), lesProfils.at(i).at(2), lesProfils.at(i).at(3),
this);
QList< QObject * > profils
Definition: Profils.h:22
BaseDeDonnees * bdd
Definition: Profils.h:23
void listeProfilsUpdated()
Q_INVOKABLE bool recuperer(QString requete, QString &donnees)
Definition: BaseDeDonnees.cpp:206
◆ bdd
◆ profils
QList<QObject*> Profils::profils |
|
private |
◆ listeProfils
QVariant Profils::listeProfils |
|
read |
La documentation de cette classe a été générée à partir des fichiers suivants :