accelerometerclass.h 453 B

1234567891011121314151617181920212223242526
  1. #ifndef ACCELEROMETERCLASS_H
  2. #define ACCELEROMETERCLASS_H
  3. #include <QThread>
  4. #include <QString>
  5. class accelerometerClass : public QThread
  6. {
  7. Q_OBJECT
  8. public:
  9. accelerometerClass(QObject *parent = 0);
  10. void run();
  11. QString x;
  12. QString y;
  13. QString z;
  14. public slots:
  15. void updateCoords();
  16. void processCoords(QString &data);
  17. signals:
  18. void deviceOrientation(QString x, QString y, QString z);
  19. };
  20. #endif // ACCELEROMETERCLASS_H