You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mainclass.h 632B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef MAINCLASS_H
  2. #define MAINCLASS_H
  3. #include <QObject>
  4. #include "inputbusiness.h"
  5. class MainClass : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. explicit MainClass(QObject *parent = 0);
  10. enum DeviceType
  11. {
  12. Gpio,
  13. Random
  14. };
  15. signals:
  16. public slots:
  17. void main();
  18. private slots:
  19. void newValues(InputValues values, quint64 timestamp);
  20. private:
  21. InputBusiness* m_input;
  22. DeviceType m_device;
  23. QHostAddress m_address;
  24. QList<QVariant> m_channels;
  25. int m_port;
  26. bool m_verbose;
  27. int m_interval;
  28. __suseconds_t m_lastTime;
  29. void getOpts();
  30. };
  31. #endif // MAINCLASS_H