Enable Daemon Option, submit for testing
[googlelatitude] / latitudeqml.cpp
index 0dd7af1..3ae61c0 100644 (file)
@@ -4,11 +4,17 @@
 LatitudeQML::LatitudeQML(QDeclarativeView *parent) :
     QDeclarativeView(parent),
     latitude(this),
-    gps(this) {
+    gps(this),
+    demonioOpt("/opt/LatitudeUpdaterDaemon/bin/LatitudeUpdaterDaemon"),
+    demonioSdk(QCoreApplication::applicationDirPath()+
+        QDir::separator()+
+        "LatitudeUpdaterDaemon"),
+    cli(this) {
     qDebug() << "* LatitudeQML::LatitudeQML";
 
     rootContext()->setContextProperty("latitude", &latitude);
     rootContext()->setContextProperty("gps", &gps);
+    rootContext()->setContextProperty("demonio", this);
     setSource(QUrl("qrc:/qml/main.qml"));
 
     latitude.getAccess();