Aller à la documentation de ce fichier.00001 #ifndef CONFIGUEDATA_H
00002 #define CONFIGUEDATA_H
00003
00004
00005 #include <QString>
00006 #include <QMap>
00007
00008 #include "sql/sqlmanager.h"
00009
00010 struct Grade
00011 {
00012 QString name;
00013 int nbr_max;
00014 int type;
00015 };
00016
00017
00018 class ConfigueData
00019 {
00020
00021 public:
00022 static ConfigueData& instance();
00023
00024 bool load();
00025 bool save();
00026
00027
00028 int nbrDonnee() { return m_nbrDonnee; }
00029 QString password() { return m_password; }
00030 QStringList type() { return m_type; }
00031 QStringList etat() { return m_etat; }
00032 QStringList location() { return m_location; }
00033 QStringList condition() { return m_condition; }
00034 QStringList typeAuteur() { return m_typeAuteur; }
00035
00036 Grade gradeToGrade(int gradeId);
00037 int gradeToInt(QString grade);
00038 QString semestreToString(int semestreNbr) { return m_semestre.value(semestreNbr, "NON UTC"); }
00039 int semestreToInt(QString semestre) { return m_semestre.key(semestre,20); }
00040 QStringList listgradeName(bool all = false);
00041 QStringList listSemestre();
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084