BioSignalPi
v2
|
Handles which device to connect through the DeviceInterface. More...
#include <devicemanager.h>
Public Slots | |
void | receiveSampleVector (QVector< QVector< QPointF > >) |
Slot used to transfer sendSampleVector from initiated device to the local signal. More... | |
void | receiveStatus (QString) |
Slot used to transfer updateStatus from initiated device to the local signal. More... | |
Signals | |
void | sendSampleVector (QVector< QVector< QPointF > >) |
Sends a QVector that can be used for a GUI to plot in "Real-time". More... | |
void | updateStatus (QString) |
Information signal for updating status about progress. More... | |
Public Member Functions | |
DeviceManager () | |
~DeviceManager () | |
void | collectData (DataStream &) |
Collects data from the connected device. More... | |
void | startCapture () |
Starts the initiated device through a call to start() More... | |
void | stop () |
Stops the running device. More... | |
void | init (int, DataStream &) |
Prepares a new data-collection,. More... | |
Public Attributes | |
DeviceInterface * | device |
The connected device. More... | |
Handles which device to connect through the DeviceInterface.
Definition at line 23 of file devicemanager.h.
DeviceManager::DeviceManager | ( | ) |
Definition at line 10 of file devicemanager.cpp.
DeviceManager::~DeviceManager | ( | ) |
Definition at line 16 of file devicemanager.cpp.
void DeviceManager::collectData | ( | DataStream & | stream | ) |
Collects data from the connected device.
Definition at line 33 of file devicemanager.cpp.
void DeviceManager::init | ( | int | deviceNumber, |
DataStream & | inputStream | ||
) |
Prepares a new data-collection,.
deviceNumber | Which device to connect |
outputStream | DataStream to store the collected values in. |
Definition at line 53 of file devicemanager.cpp.
|
slot |
Slot used to transfer sendSampleVector from initiated device to the local signal.
Definition at line 25 of file devicemanager.cpp.
|
slot |
Slot used to transfer updateStatus from initiated device to the local signal.
Definition at line 29 of file devicemanager.cpp.
|
signal |
Sends a QVector that can be used for a GUI to plot in "Real-time".
void DeviceManager::startCapture | ( | ) |
Starts the initiated device through a call to start()
Definition at line 42 of file devicemanager.cpp.
void DeviceManager::stop | ( | ) |
Stops the running device.
Definition at line 49 of file devicemanager.cpp.
|
signal |
Information signal for updating status about progress.
DeviceInterface* DeviceManager::device |
The connected device.
Definition at line 33 of file devicemanager.h.