navit 0.5.3-trunk
Loading...
Searching...
No Matches
vehicle_qt5.h
Go to the documentation of this file.
1
24// style with: clang-format -style=WebKit -i *
25
26#ifndef __vehicle_qt5_h
27#define __vehicle_qt5_h
28
29#include <QGeoPositionInfoSource>
30#include <QGeoSatelliteInfoSource>
31#include <QObject>
32#include <QStringList>
33extern "C" {
34#include "item.h" /* needs to be on to as attr.h depends on it */
35
36#include "attr.h"
37#include "callback.h"
38#include "coord.h"
39}
40
42struct vehicle_priv {
43 struct callback_list* cbl;
44 struct coord_geo geo;
45 double speed;
46 double direction;
47 double height;
48 double radius;
49 int fix_type;
50 time_t fix_time;
51 char fixiso8601[128];
52 int sats;
53 int sats_used;
54 int have_coords;
55 struct attr** attrs;
56
57 QGeoPositionInfoSource* source;
58 QGeoSatelliteInfoSource* satellites;
60};
61
62class QNavitGeoReceiver : public QObject {
63 Q_OBJECT
64public:
65 QNavitGeoReceiver(QObject* parent, struct vehicle_priv* c);
66public slots:
67 void positionUpdated(const QGeoPositionInfo& info);
68 void satellitesInUseUpdated(const QList<QGeoSatelliteInfo>& satellites);
69 void satellitesInViewUpdated(const QList<QGeoSatelliteInfo>& satellites);
70
71private:
73};
74#endif
Definition vehicle_qt5.h:62
struct vehicle_priv * priv
Definition vehicle_qt5.h:72
unsigned char info
Definition garmin_img.c:0
double direction
Definition vehicle_android.c:47
double height
Definition vehicle_android.c:48
double speed
Definition vehicle_android.c:46
char fixiso8601[128]
Definition vehicle_android.c:52
struct callback_list * cbl
Definition vehicle_android.c:44
int sats_used
Definition vehicle_android.c:54
struct coord_geo geo
Definition vehicle_android.c:45
struct attr ** attrs
Definition vehicle_android.c:56
int sats
Definition vehicle_android.c:53
int fix_type
Definition vehicle_android.c:50
time_t fix_time
Definition vehicle_android.c:51
double radius
Definition vehicle_android.c:49
int have_coords
Definition vehicle_null.c:57
void satellitesInViewUpdated(const QList< QGeoSatelliteInfo > &satellites)
Definition vehicle_qt5.cpp:71
void positionUpdated(const QGeoPositionInfo &info)
Definition vehicle_qt5.cpp:77
void satellitesInUseUpdated(const QList< QGeoSatelliteInfo > &satellites)
Definition vehicle_qt5.cpp:65
static struct pcoord c
Definition popup.c:375
Definition attr.h:136
Definition callback.c:37
A WGS84 coordinate.
Definition coord.h:97
Definition gpx2navit_txt.h:51
Definition vehicle_android.c:43
QNavitGeoReceiver * receiver
Definition vehicle_qt5.h:59
QGeoSatelliteInfoSource * satellites
Definition vehicle_qt5.h:58
QGeoPositionInfoSource * source
Definition vehicle_qt5.h:57