X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=latituded%2Fdaemon.cpp;fp=latituded%2Fdaemon.cpp;h=a2f660138c66af7f45a1d84cbb13c8bdfa6c280c;hb=b58ae22b7840fd1c5675fcc01971c9181c2e9b29;hp=0000000000000000000000000000000000000000;hpb=b63a62fbf2b7b3b13dda5898a7ff075ecbda6693;p=googlelatitude diff --git a/latituded/daemon.cpp b/latituded/daemon.cpp new file mode 100644 index 0000000..a2f6601 --- /dev/null +++ b/latituded/daemon.cpp @@ -0,0 +1,17 @@ +#include "daemon.h" + +LatitudeDaemon::LatitudeDaemon(QObject *parent) : + QObject(parent), + latitude(this), + gps(this) { + qDebug() << "* LatitudeDaemon::LatitudeDaemon"; + + connect(&latitude, SIGNAL(gotToken()), this, SLOT(gl_GotToken()) ); + connect(&latitude, SIGNAL(notToken()), this, SLOT(gl_NotToken()) ); + connect(&latitude, SIGNAL(needAuth()), this, SLOT(gl_needAuth()) ); + + connect(&gps, SIGNAL(gotUpdate()), this, SLOT(get_gps()) ); + connect(&gps, SIGNAL(gotFix()), this, SLOT(set_latitude()) ); + + latitude.getAccess(); +}