-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
57 lines (44 loc) · 1.32 KB
/
main.cpp
File metadata and controls
57 lines (44 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include "UV.h"
#include "inscription.h"
#include "dossier.h"
#include "dossierXMLreader.h"
#include "fenetre_principale.h"
#include "feneditdoss.h"
#include "dataBaseA.h"
#include "CursusEditor.h"
#include "CursusSelector.h"
#include "dataBaseB.h"
#include "browser.h"
#include "uvDataBaseConnect.h"
#include "interfacePersistenceDonnees.h"
#include "persistenceDonnees.h"
#include "dataBasePostgres.h"
#include "recupdonnees.h"
#include <QApplication>
#include <QString>
using namespace DATABASE;
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
unsigned int donnees=2;
connectionDB db(donnees);
recupDonnees* fenetre= new recupDonnees(&donnees,0);
fenetre->show();
// try{
// //partie pour remplir un UVManager fictif pour moi puisque je n'ai pas la base
// UVManager& m=UVManager::getInstance();
// QString code ="NF16";
// QString titre="Algo";
// m.ajouterUV(code,titre,true,true);
// code ="SR03";
// titre="sr03";
// m.ajouterUV(code,titre,false,true);
// code="TX";
// titre="Tdfsd Xgfs";
// m.ajouterUV(code,titre,true,true);
// }catch(UTProfilerException e){
// QMessageBox::warning(0,"Attention",e.getInfo());
// }
fenetrePrincipale fenetre2(0,&app);
fenetre2.show();
return app.exec();
}