#include "gefest.h"
#include "global.h"
#include <QtGui>
#include <QApplication>
#include "class/Config.h"
#include <QStatusBar>
#include <QUrl.h>
#include <QtPlugin>
#include <QDir>
#include <curl/curl.h>
#include <QMap>
#include "class/Screen.h"
#include "class/UploadLogs.h"
#include "class/TaskForm.h"
//Q_IMPORT_PLUGIN(qjpeg)
//Q_IMPORT_PLUGIN(qgif)
int main(int argc, char *argv[])
{
// a.disableSessionManagement();
a.setQuitOnLastWindowClosed (false);
a.setApplicationName("Gefest");
a.setApplicationVersion("1.0");
tryIcon.addFile("img/gefest.png");
trayIcon->setVisible(true);
trayIcon->show();
userLogId = "0";
appDir
= QDir::currentPath();
logDir = appDir + "/logs/";
if(!dir->exists())
dir->mkpath(logDir);
config = new Config("config/config.xml");
UploadLogs ulogs;
ulogs.init();
// ulogs.uploadFile(logDir + "0__2008-05-06_23.49.52.png");
server
= QUrl(config
->getValue
("server")+config
->getValue
("xmlrpc"));
Screen screen;
statusbar = new StatusBar();
//########### INIT GLOBAL
//user = new User(config);
//task = new Task(config);
user.init(config);
mainWindow = new Gefest(config);
mainWindow->show();
a.setActiveWindow(mainWindow);
task.init(config);
// QObject::connect(mainWindow, SIGNAL(changeTaskType(QString&) ), &task, SLOT(changeTaskType(QString&) ));
//########## INIT GLOBAL
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
return a.exec();
}
#include "gefest.h"
#include "global.h"
#include <QtGui>
#include <QApplication>
#include "class/Config.h"
#include <QStatusBar>
#include <QUrl.h>
#include <QtPlugin>
#include <QDir>
#include <curl/curl.h>
#include <QMap>
#include "class/Screen.h"
#include "class/UploadLogs.h"
#include "class/TaskForm.h"
//Q_IMPORT_PLUGIN(qjpeg)
//Q_IMPORT_PLUGIN(qgif)
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// a.disableSessionManagement();
a.setQuitOnLastWindowClosed (false);
a.setApplicationName("Gefest");
a.setApplicationVersion("1.0");
tryIcon.addFile("img/gefest.png");
trayIcon = new QSystemTrayIcon(tryIcon,&a);
trayIcon->setVisible(true);
trayIcon->show();
userLogId = "0";
appDir = QDir::currentPath();
logDir = appDir + "/logs/";
QDir * dir = new QDir(logDir);
if(!dir->exists())
dir->mkpath(logDir);
config = new Config("config/config.xml");
UploadLogs ulogs;
ulogs.init();
// ulogs.uploadFile(logDir + "0__2008-05-06_23.49.52.png");
server = QUrl(config->getValue("server")+config->getValue("xmlrpc"));
Screen screen;
statusbar = new StatusBar();
//########### INIT GLOBAL
//user = new User(config);
//task = new Task(config);
user.init(config);
mainWindow = new Gefest(config);
mainWindow->show();
a.setActiveWindow(mainWindow);
task.init(config);
// QObject::connect(mainWindow, SIGNAL(changeTaskType(QString&) ), &task, SLOT(changeTaskType(QString&) ));
//########## INIT GLOBAL
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks