19 void DeviceManager::close(){
57 if (deviceNumber==4) {
64 QThread *sampleT =
new QThread;
65 device->moveToThread(sampleT);
73 bool DeviceManager::connected(){
void receiveStatus(QString)
Slot used to transfer updateStatus from initiated device to the local signal.
DeviceInterface Class responsible for sampling ECG.
DeviceInterface * device
The connected device.
void stop()
Stops the running device.
void collectData(DataStream &)
Collects data from the connected device.
static SettingsSingleton & instance()
Retrives a reference to the ONE and ONLY SettingsSingleton created for the application.
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.
void init(int, DataStream &)
Prepares a new data-collection,.
virtual void init(DataStream &)
Mock version of an device The EcgMock device will return sine and cosine functions as data...
int getSourceId()
Returns a int containing the value from private int sourceId.
virtual void getData(DataStream &)=0
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. ...
void startCapture()
Starts the initiated device through a call to start()