X-Git-Url: http://git.maemo.org/git/?p=googlelatitude;a=blobdiff_plain;f=latitudeqml.cpp;h=3ae61c0e49cdde98d559409320bd7e82cf93ca9d;hp=0dd7af151299c9badcbce871f8823ad5238dd627;hb=d61a299b8bfaa74e8c2680923a3efbbcf2ab8347;hpb=05be3d4e9145560968c3afc78c1fcca644cc7a9e;ds=sidebyside diff --git a/latitudeqml.cpp b/latitudeqml.cpp index 0dd7af1..3ae61c0 100644 --- a/latitudeqml.cpp +++ b/latitudeqml.cpp @@ -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();