1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef MAINCLASS_H
- #define MAINCLASS_H
-
- #include <QObject>
- #include "inputbusiness.h"
-
- class MainClass : public QObject
- {
- Q_OBJECT
- public:
- explicit MainClass(QObject *parent = 0);
-
- enum DeviceType
- {
- Gpio,
- Random
- };
-
- signals:
-
- public slots:
- void main();
-
- private slots:
- void newValues(InputValues values, quint64 timestamp);
-
- private:
- InputBusiness* m_input;
-
- DeviceType m_device;
-
- QHostAddress m_address;
-
- QList<QVariant> m_channels;
-
- int m_port;
-
- bool m_verbose;
-
- int m_interval;
-
- __suseconds_t m_lastTime;
-
- void getOpts();
- };
-
- #endif // MAINCLASS_H
|