accelerometerwidget.h 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef ACCELEROMETERWIDGET_H
  2. #define ACCELEROMETERWIDGET_H
  3. #include <QWidget>
  4. #include <QLabel>
  5. #include <QString>
  6. #include <phonon/MediaObject>
  7. #include <QFile>
  8. #include "accelerometerclass.h"
  9. class accelerometerWidget : public QWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. accelerometerWidget(QWidget *parent = 0);
  14. //void currentValue(QString x, QString y);
  15. public slots:
  16. void showData(QString x, QString y, QString z);
  17. private:
  18. QLabel *label1;
  19. QLabel *label2;
  20. QLabel *label3;
  21. QLabel *xlabel;
  22. QLabel *ylabel;
  23. QLabel *zlabel;
  24. QLabel *currentxtx;
  25. QLabel *currentxty;
  26. QString currentx;
  27. QString currenty;
  28. bool current;
  29. accelerometerClass *myThread;
  30. Phonon::MediaObject *car;
  31. Phonon::MediaObject *bipCar;
  32. QFile *fileAlarm;
  33. QFile *fileCar;
  34. public slots:
  35. void valueCurrent();
  36. void voitureAlarm();
  37. void voitureBip();
  38. };
  39. #endif // ACCELEROMETERWIDGET_H