Use of invoker
[googlelatitude] / latitudeqml.cpp
1 #include "latitudeqml.h"
2 #include <QtDeclarative/QDeclarativeContext>
3
4 LatitudeQML::LatitudeQML(QDeclarativeView *parent) :
5     QDeclarativeView(parent),
6     latitude(this),
7     gps(this),
8     demonio(QCoreApplication::applicationDirPath()
9         + QDir::separator()
10         + "LatitudeUpdaterDaemon"),
11     cli(this) {
12     qDebug() << "* LatitudeQML::LatitudeQML";
13
14     rootContext()->setContextProperty("latitude", &latitude);
15     rootContext()->setContextProperty("gps", &gps);
16     rootContext()->setContextProperty("demonio", this);
17     setSource(QUrl("qrc:/qml/main.qml"));
18
19     latitude.getAccess();
20 }