Changed the old code to work as a daemon
[googlelatitude] / src / settings / main.cpp
diff --git a/src/settings/main.cpp b/src/settings/main.cpp
new file mode 100644 (file)
index 0000000..6a0cb8c
--- /dev/null
@@ -0,0 +1,25 @@
+#include <QApplication>
+
+#include "settings.h"
+
+int main(int argc, char *argv[]) {
+    QApplication app(argc, argv);
+    QCoreApplication::setOrganizationName("linfati");
+    QCoreApplication::setOrganizationDomain("linfati.com");
+    QCoreApplication::setApplicationName("GoogleLatitude");
+
+    Settings *settings = new Settings();
+    settings->setWindowModality(Qt::ApplicationModal);
+    settings->show();
+
+    return app.exec();
+}
+
+/*
+ TODO:
+ on auth error -> stop gps
+ on new pos, only set it
+ send new pos every 120s, only if is diferent
+ no n900 -> por ip
+ */
+