42 lines
615 B
C
42 lines
615 B
C
|
#ifndef HW_H
|
||
|
#define HW_H
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QVector>
|
||
|
#include <QThread>
|
||
|
#include "device.h"
|
||
|
#include "eventbuilder.h"
|
||
|
|
||
|
class HW : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit HW(QObject *parent = 0);
|
||
|
~HW();
|
||
|
|
||
|
QVector<Device*> devices;
|
||
|
EventBuilder eventBuilder;
|
||
|
|
||
|
|
||
|
Device &operator [](int nr);
|
||
|
void addDevices(int nr_devices);
|
||
|
void removeDevices();
|
||
|
|
||
|
void connectDevices();
|
||
|
void disconnectDevices();
|
||
|
void run();
|
||
|
void stop();
|
||
|
QString report();
|
||
|
void configureDevice(int dev_nr, DeviceConfig dc);
|
||
|
signals:
|
||
|
|
||
|
public slots:
|
||
|
|
||
|
|
||
|
|
||
|
protected:
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // HW_H
|