X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/blobdiff_plain/77e06ae82216f3f37061e84abe4a529b5179bc04..61346c970d0d600ce7dc5fad4ea8e4a5e629a048:/src/app/main.cpp
diff --git a/src/app/main.cpp b/src/app/main.cpp
index 6a32ae9..29f36fb 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -1,48 +1,51 @@
/*
* Copyright (C) 2010 Ixonos Plc.
+ * Copyright (C) 2011-2012 Philipp Spitzer, gregor herrmann, Stefan Stahl
*
- * This file is part of fosdem-schedule.
+ * This file is part of ConfClerk.
*
- * fosdem-schedule is free software: you can redistribute it and/or modify it
+ * ConfClerk is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, either version 2 of the License, or (at your option)
* any later version.
*
- * fosdem-schedule is distributed in the hope that it will be useful, but
+ * ConfClerk is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
- * fosdem-schedule. If not, see .
+ * ConfClerk. If not, see .
*/
-#include
+#include "mainwindow.h"
-#include
+#include "sqlengine.h"
#include "eventdialog.h"
#include "application.h"
#ifdef MAEMO
-//#include
-#include
-#include
+//#include "alarmdialog.h"
+#include "alarmdbus.h"
+#include "alarmdbusadaptorp.h"
#endif /* MAEMO */
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(icons);
- Q_INIT_RESOURCE(maps);
Q_INIT_RESOURCE(db);
+ Q_INIT_RESOURCE(data);
Application a(argc, argv);
- Application::setWindowIcon(QIcon(":/icons/fosdem.png"));
-
- SqlEngine::initialize(); // creates "SQLITE" DB connection
+ Application::setWindowIcon(QIcon(":/confclerk.svg"));
+ // needed by QDesktopServices
+ QCoreApplication::setOrganizationName("Toastfreeware");
+ QCoreApplication::setApplicationName("ConfClerk");
+ QCoreApplication::setApplicationVersion(VERSION);
+
QWidget *window;
-
window = new MainWindow;
@@ -52,15 +55,15 @@ int main(int argc, char *argv[])
new AlarmDBusAdaptor(alarmDBus);
QDBusConnection connection = QDBusConnection::sessionBus();
- if(connection.registerObject("/Fosdem", alarmDBus) == true)
+ if(connection.registerObject("/ConfClerk", alarmDBus) == true)
{
- if( connection.registerService("org.fosdem.schedule") == false)
+ if( connection.registerService("at.priv.toastfreeware.confclerk") == false)
{
if(argc>1)
{
- QDBusInterface *interface = new QDBusInterface("org.fosdem.schedule",
- "/Fosdem",
- "org.fosdem.schedule.AlarmInterface",
+ QDBusInterface *interface = new QDBusInterface("at.priv.toastfreeware.confclerk",
+ "/ConfClerk",
+ "at.priv.toastfreeware.confclerk.AlarmInterface",
connection);
interface->call("Alarm",atoi(argv[1]));
return 0;
@@ -70,7 +73,7 @@ int main(int argc, char *argv[])
if(argc > 1)
{
- EventDialog dialog(atoi(argv[1]),window);
+ EventDialog dialog(atoi(argv[1]), window);
dialog.exec();
}
#endif