5 #include <QtDeclarative/QDeclarativeView>
6 #include <QtCore/QProcess>
7 #include <QtCore/QCoreApplication>
9 #include <QtCore/QFile>
10 #include "googlelatitude.h"
11 #include "gpscontrol.h"
13 class LatitudeQML : public QDeclarativeView {
16 LatitudeQML(QDeclarativeView *parent = 0);
21 bool demonio_status() {
22 qDebug() << "LatitudeQML::demonio_status";
23 if (system("killall -0 LatitudeUpdaterDaemon 2> /dev/null" )) {
28 bool demonio_start() {
29 qDebug() << "LatitudeQML::demonio_start";
30 if (demonioOpt.exists()) {
31 qDebug() << "LatitudeQML:: demonio opt";
32 cli.startDetached(demonioOpt.fileName());
35 if (demonioSdk.exists()) {
36 qDebug() << "LatitudeQML:: demonio sdk";
37 cli.startDetached(demonioSdk.fileName());
40 qDebug() << "LatitudeQML:: demonio none";
44 qDebug() << "LatitudeQML::demonio_stop";
45 if (demonioOpt.exists() || demonioSdk.exists() ) {
46 qDebug() << "LatitudeQML:: demonio kill" << system("killall LatitudeUpdaterDaemon 2> /dev/null");
55 GoogleLatitude latitude;
62 #endif // LatitudeQML_H