#ifndef MAINCLASS_H #define MAINCLASS_H #include #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 m_channels; int m_port; bool m_verbose; int m_interval; __suseconds_t m_lastTime; void getOpts(); }; #endif // MAINCLASS_H