1 #include <QApplication>
4 #include "mainwindow.h"
5 //#include "db/databasemanager.h"
6 //#include "dialogs/platformnamedialog.h"
8 int main(int argc, char *argv[])
10 QApplication app(argc, argv);
11 QTextStream cout(stdout, QIODevice::WriteOnly);
13 /*DatabaseManager dbm;
15 cout << " Database opened succesfully!" << endl;
16 else cout << " Database connection failed!" << endl;
19 cout << " Database exists!" << endl;
22 cout << " Database is missing!" << endl;
24 cout << " Database created succesfully!" << endl;
26 cout << "Failed creating database!" << endl;
31 if (dbm.insertPerson("Testi","Tapaus",1) > 0)
32 cout << "Database insert successfull!" << endl;
33 else cout << "Database insert failed!" << endl;
36 cout << "Trying to select from database: " << dbm.getName(1) << endl;
39 /*PlatformNameDialog *nameDialog = new PlatformNameDialog;
41 MainWindow *mw = new MainWindow;