Separate in library the application
[googlelatitude] / latituded / daemon.cpp
1 #include "daemon.h"
2
3 LatitudeDaemon::LatitudeDaemon(QObject *parent) :
4     QObject(parent),
5     latitude(this),
6     gps(this) {
7     qDebug() << "* LatitudeDaemon::LatitudeDaemon";
8
9     connect(&latitude, SIGNAL(gotToken()), this, SLOT(gl_GotToken()) );
10     connect(&latitude, SIGNAL(notToken()), this, SLOT(gl_NotToken()) );
11     connect(&latitude, SIGNAL(needAuth()), this, SLOT(gl_needAuth()) );
12
13     connect(&gps, SIGNAL(gotUpdate()), this, SLOT(get_gps()) );
14     connect(&gps, SIGNAL(gotFix()), this, SLOT(set_latitude()) );
15
16     latitude.getAccess();
17 }