-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
50 lines (38 loc) · 1.31 KB
/
main.cpp
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
#include "ventanaprincipal.h"
#include <QApplication>
#include "globales.h"
#include "listamundo.h"
#include "hilointerfaz.h"
#include <cstdlib>
#include <iostream>
#include "unistd.h"
#include <windows.h>
using namespace std;
/* Correos
* America: mundoamerica2016@gmail.com
* Europa: mundoeuropa2016@gmail.com
* Asia: mundoasia2016@gmail.com
* Africa:mundoafrica2016@gmail.com
* Oceania:mundooceania2016@gmail.com
*
* */
int main(int argc, char *argv[])
{
chdir("C:\\Users\\Francisco Contreras\\workspace\\pruebaCorreo\\src\\pruebaCorreo\\");
QString* apellidos= cargarApellidos();
QString* nombres= cargarNombres();
QString* paises= cargarPaises();
QString* creencias= cargarCreencias();
QString* profesiones= cargarProfesiones();
QString* nombrePecados= cargarPecados();
QString* continentes = cargarContinentes();
ListaMundo* listaMundo= new ListaMundo();
HiloInterfaz* hiloInterfazPrincipal;
QApplication a(argc, argv);
VentanaPrincipal* w = new VentanaPrincipal(NULL,apellidos,nombres,paises,creencias,profesiones,
nombrePecados,listaMundo,continentes);
w->show();
hiloInterfazPrincipal= new HiloInterfaz(NULL,w);
hiloInterfazPrincipal->start();
return a.exec();
}