BioSignalPi  v2
Public Slots | Signals | Public Member Functions | Public Attributes | List of all members
DeviceManager Class Reference

Handles which device to connect through the DeviceInterface. More...

#include <devicemanager.h>

Inheritance diagram for DeviceManager:
Inheritance graph
[legend]
Collaboration diagram for DeviceManager:
Collaboration graph
[legend]

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

DeviceInterfacedevice
 The connected device. More...
 

Detailed Description

Handles which device to connect through the DeviceInterface.

Author
Martin

Definition at line 23 of file devicemanager.h.

Constructor & Destructor Documentation

DeviceManager::DeviceManager ( )

Definition at line 10 of file devicemanager.cpp.

DeviceManager::~DeviceManager ( )

Definition at line 16 of file devicemanager.cpp.

Member Function Documentation

void DeviceManager::collectData ( DataStream stream)

Collects data from the connected device.

Deprecated:

Definition at line 33 of file devicemanager.cpp.

Here is the call graph for this function:

void DeviceManager::init ( int  deviceNumber,
DataStream inputStream 
)

Prepares a new data-collection,.

Parameters
deviceNumberWhich device to connect
outputStreamDataStream to store the collected values in.

Definition at line 53 of file devicemanager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DeviceManager::receiveSampleVector ( QVector< QVector< QPointF > >  input)
slot

Slot used to transfer sendSampleVector from initiated device to the local signal.

Definition at line 25 of file devicemanager.cpp.

Here is the caller graph for this function:

void DeviceManager::receiveStatus ( QString  input)
slot

Slot used to transfer updateStatus from initiated device to the local signal.

Definition at line 29 of file devicemanager.cpp.

Here is the caller graph for this function:

void DeviceManager::sendSampleVector ( QVector< QVector< QPointF > >  )
signal

Sends a QVector that can be used for a GUI to plot in "Real-time".

Here is the caller graph for this function:

void DeviceManager::startCapture ( )

Starts the initiated device through a call to start()

Definition at line 42 of file devicemanager.cpp.

Here is the caller graph for this function:

void DeviceManager::stop ( )

Stops the running device.

Todo:
use connected() before execution

Definition at line 49 of file devicemanager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DeviceManager::updateStatus ( QString  )
signal

Information signal for updating status about progress.

Here is the caller graph for this function:

Member Data Documentation

DeviceInterface* DeviceManager::device

The connected device.

Definition at line 33 of file devicemanager.h.


The documentation for this class was generated from the following files: