Added "tou" command
[nnokia.git] / locationquery.h
1 #ifndef LOCATIONQUERY_H
2 #define LOCATIONQUERY_H
3
4 #include <QMessageManager>
5 #include <QMessageService>
6 #include <QGeoPositionInfoSource>
7
8 using namespace QtMobility;
9
10 class LocationQuery : public QObject
11 {
12     Q_OBJECT
13 public:
14     explicit LocationQuery(QObject *parent, QMessageAddress remoteAddr);
15     virtual ~LocationQuery();
16
17 signals:
18
19 public slots:
20     void slot_message_updated(const QMessageId&, const QMessageManager::NotificationFilterIdSet&);
21     void slot_positionUpdated(const QGeoPositionInfo &);
22     void slot_updateTimeout();
23
24 protected:
25     QMessageManager *msgManager;
26     QMessageService *msgService;
27     QMessageAddress remoteAddr;
28     QMessageManager::NotificationFilterId filterId;
29     QGeoPositionInfoSource * posSource;
30 };
31
32 #endif // LOCATIONQUERY_H