compassinfo.h 531 B

123456789101112131415161718192021222324252627
  1. #ifndef COMPASSINFO_H
  2. #define COMPASSINFO_H
  3. #include <QObject>
  4. #include <QCompass>
  5. #include <QCompassReading>
  6. #include "qdll_global.h"
  7. QTM_USE_NAMESPACE
  8. class QDLLSHARED_EXPORT CompassInfo : public QObject, public QCompassFilter
  9. {
  10. Q_OBJECT
  11. Q_CLASSINFO("Author", "Sebastiano Galazzo")
  12. Q_CLASSINFO("Email", "sebastiano.galazzo@gmail.com")
  13. public:
  14. CompassInfo();
  15. bool filter(QCompassReading *reading);
  16. qreal azimuth;
  17. private:
  18. QCompass* m_sensor;
  19. };
  20. #endif // COMPASSINFO_H