BioSignalPi  v2
devicemanager.h
Go to the documentation of this file.
1 #ifndef DEVICEMANAGER_H
2 #define DEVICEMANAGER_H
3 
4 #include "datastream.h"
5 
6 #include "deviceinterface.h"
7 #include "ecgmock.h"
8 #include "samplingthread.h"
9 #include <QThread>
10 
23 class DeviceManager : public QThread
24 {
25  Q_OBJECT
26 public:
27  DeviceManager();
29  void collectData(DataStream&);
30  void startCapture();
31  void stop();
32  void init(int, DataStream&);
34 
35 public slots:
36  void receiveSampleVector(QVector<QVector<QPointF> >);
37  void receiveStatus(QString);
38 signals:
39  void sendSampleVector(QVector<QVector<QPointF> >);
40  void updateStatus(QString);
41 private:
42  bool connected();
43  void close();
44 
45 };
48 #endif // DEVICEMANAGER_H
49 
50 
void receiveStatus(QString)
Slot used to transfer updateStatus from initiated device to the local signal.
DeviceInterface * device
The connected device.
Definition: devicemanager.h:33
void stop()
Stops the running device.
void collectData(DataStream &)
Collects data from the connected device.
void sendSampleVector(QVector< QVector< QPointF > >)
Sends a QVector that can be used for a GUI to plot in "Real-time".
Abstract Interface that should be used for storing data in the memory.
Definition: datastream.h:16
void init(int, DataStream &)
Prepares a new data-collection,.
Abstract interface for all devices.
void updateStatus(QString)
Information signal for updating status about progress.
void receiveSampleVector(QVector< QVector< QPointF > >)
Slot used to transfer sendSampleVector from initiated device to the local signal. ...
Handles which device to connect through the DeviceInterface.
Definition: devicemanager.h:23
void startCapture()
Starts the initiated device through a call to start()