00001 #ifndef COMPASSINFO_H 00002 #define COMPASSINFO_H 00003 00004 #include <QObject> 00005 #include <QCompass> 00006 #include <QCompassReading> 00007 00008 #include "qdll_global.h" 00009 00010 QTM_USE_NAMESPACE 00011 00012 class QDLLSHARED_EXPORT CompassInfo : public QObject, public QCompassFilter 00013 { 00014 Q_OBJECT 00015 Q_CLASSINFO("Author", "Sebastiano Galazzo") 00016 Q_CLASSINFO("Email", "sebastiano.galazzo@gmail.com") 00017 00018 public: 00019 CompassInfo(); 00020 bool filter(QCompassReading *reading); 00021 qreal azimuth; 00022 private: 00023 QCompass* m_sensor; 00024 }; 00025 00026 #endif // COMPASSINFO_H