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 latituded 2> /dev/null" )) {
28 bool demonio_start() {
29 qDebug() << "LatitudeQML::demonio_start";
30 if (demonio.exists()) {
31 cli.startDetached(demonio.fileName());
34 qDebug() << "LatitudeQML:: demonio none";
38 qDebug() << "LatitudeQML::demonio_stop";
39 if (demonio.exists()) {
40 qDebug() << "LatitudeQML:: demonio kill" << system("killall latituded 2> /dev/null");
49 GoogleLatitude latitude;
55 #endif // LatitudeQML_H