summaryrefslogtreecommitdiff
path: root/sowatchd/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sowatchd/main.cpp')
-rw-r--r--sowatchd/main.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/sowatchd/main.cpp b/sowatchd/main.cpp
new file mode 100644
index 0000000..0d7abb9
--- /dev/null
+++ b/sowatchd/main.cpp
@@ -0,0 +1,20 @@
+#include <QtGui/QApplication>
+
+#include <sowatch.h>
+#include "daemon.h"
+
+using namespace sowatch;
+
+static Daemon* d;
+
+int main(int argc, char *argv[])
+{
+ QApplication a(argc, argv);
+ QApplication::setOrganizationDomain("com.javispedro.sowatch");
+ QApplication::setOrganizationName("sowatch");
+ QApplication::setApplicationName("sowatchd");
+
+ d = new Daemon();
+
+ return a.exec();
+}