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 579B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. void maySend();
  19. private:
  20. InputBusiness* m_input;
  21. QTimer* m_timer;
  22. DeviceType m_device;
  23. QHostAddress m_address;
  24. QList<QVariant> m_channels;
  25. int m_port;
  26. bool m_verbose;
  27. __suseconds_t m_lastTime;
  28. void getOpts();
  29. };
  30. #endif // MAINCLASS_H