BioSignalPi  v2
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
SettingsSingleton Class Reference

Singleton containing all settings used by the Biosignal PI Framework. More...

#include <settingssingleton.h>

Public Member Functions

virtual ~SettingsSingleton ()
 
void setFileName (QString fileName)
 Used to set private variable fileName. More...
 
void setName (QString name)
 Used to set private variable name. More...
 
void setGender (QString gender)
 Used to set private variable gender. More...
 
void setBirthDate (QString birthDate)
 Used to set private variable birthDate. More...
 
void setPatientCode (QString patientCode)
 Used to set private variable patientCode. More...
 
void setRecordingName (QString recordingName)
 Used to set private variable recordingName. More...
 
void setNotes (QString notes)
 Used to set private variable notes. More...
 
void setSampleRate (int sampleRate)
 Used to set private variable sampleRate. More...
 
void setSource (QString source)
 Used to set private QString source. More...
 
void setSourceId (int sourceId)
 Used to set private int name. More...
 
void setSaveAsEdf (bool saveAsEdf)
 Set the private bool saveAsEdf. More...
 
QString getFileName ()
 Returns a QString containing the value from private QString fileName. More...
 
QString getName ()
 Returns a QString containing the value from private QString name. More...
 
QString getGender ()
 Returns a QString containing the value from private QString gender. More...
 
QString getBirthDate ()
 Returns a QString containing the value from private QString birthDate. More...
 
QString getPatientCode ()
 Returns a QString containing the value from private QString patientCode. More...
 
QString getRecordingName ()
 Returns a QString containing the value from private QString recordingName. More...
 
QString getNotes ()
 Returns a QString containing the value from private QString notes. More...
 
int getSampleRate ()
 Returns a int containing the value from private int sampleRate. More...
 
QString getSource ()
 Returns a QString containing the value from private QString source. More...
 
int getSourceId ()
 Returns a int containing the value from private int sourceId. More...
 
bool getSaveAsEdf ()
 Returns the private bool saveAsEdf. More...
 

Static Public Member Functions

static SettingsSingletoninstance ()
 Retrives a reference to the ONE and ONLY SettingsSingleton created for the application. More...
 

Protected Member Functions

 SettingsSingleton ()
 Protected constructur called by instance() to create ONE and ONLY ONE SettingsSingleton. More...
 

Detailed Description

Singleton containing all settings used by the Biosignal PI Framework.

Author
Martin
Todo:
Add verification functions controlling the input.

Definition at line 12 of file settingssingleton.h.

Constructor & Destructor Documentation

SettingsSingleton::~SettingsSingleton ( )
virtual

Definition at line 19 of file settingssingleton.cpp.

SettingsSingleton::SettingsSingleton ( )
protected

Protected constructur called by instance() to create ONE and ONLY ONE SettingsSingleton.

Definition at line 3 of file settingssingleton.cpp.

Member Function Documentation

QString SettingsSingleton::getBirthDate ( )

Returns a QString containing the value from private QString birthDate.

Returns
birthDate

Definition at line 71 of file settingssingleton.cpp.

Here is the caller graph for this function:

QString SettingsSingleton::getFileName ( )

Returns a QString containing the value from private QString fileName.

Returns
fileName

Definition at line 62 of file settingssingleton.cpp.

Here is the caller graph for this function:

QString SettingsSingleton::getGender ( )

Returns a QString containing the value from private QString gender.

Returns
gender

Definition at line 68 of file settingssingleton.cpp.

Here is the caller graph for this function:

QString SettingsSingleton::getName ( )

Returns a QString containing the value from private QString name.

Returns
name

Definition at line 65 of file settingssingleton.cpp.

Here is the caller graph for this function:

QString SettingsSingleton::getNotes ( )

Returns a QString containing the value from private QString notes.

Returns
notes

Definition at line 80 of file settingssingleton.cpp.

Here is the caller graph for this function:

QString SettingsSingleton::getPatientCode ( )

Returns a QString containing the value from private QString patientCode.

Returns
patientCode

Definition at line 74 of file settingssingleton.cpp.

Here is the caller graph for this function:

QString SettingsSingleton::getRecordingName ( )

Returns a QString containing the value from private QString recordingName.

Returns
recordingName

Definition at line 77 of file settingssingleton.cpp.

Here is the caller graph for this function:

int SettingsSingleton::getSampleRate ( )

Returns a int containing the value from private int sampleRate.

Returns
sampleRate

Definition at line 83 of file settingssingleton.cpp.

Here is the caller graph for this function:

bool SettingsSingleton::getSaveAsEdf ( )

Returns the private bool saveAsEdf.

Returns
saveAsEdf

Definition at line 92 of file settingssingleton.cpp.

QString SettingsSingleton::getSource ( )

Returns a QString containing the value from private QString source.

Returns
source

Definition at line 86 of file settingssingleton.cpp.

Here is the caller graph for this function:

int SettingsSingleton::getSourceId ( )

Returns a int containing the value from private int sourceId.

Returns
sourceId

Definition at line 89 of file settingssingleton.cpp.

Here is the caller graph for this function:

SettingsSingleton & SettingsSingleton::instance ( )
static

Retrives a reference to the ONE and ONLY SettingsSingleton created for the application.

Returns
[SettingsSingleton&] instance handle to access the member functions for get and set of private variables

Definition at line 23 of file settingssingleton.cpp.

Here is the caller graph for this function:

void SettingsSingleton::setBirthDate ( QString  birthDate)

Used to set private variable birthDate.

Parameters
birthDatethe birthDate to change the private variable to.

Definition at line 37 of file settingssingleton.cpp.

Here is the caller graph for this function:

void SettingsSingleton::setFileName ( QString  fileName)

Used to set private variable fileName.

Definition at line 28 of file settingssingleton.cpp.

Here is the caller graph for this function:

void SettingsSingleton::setGender ( QString  gender)

Used to set private variable gender.

Parameters
genderthe gender to change the private variable to.

Definition at line 34 of file settingssingleton.cpp.

Here is the caller graph for this function:

void SettingsSingleton::setName ( QString  name)

Used to set private variable name.

Parameters
namethe name to change the private variable to.

Definition at line 31 of file settingssingleton.cpp.

Here is the caller graph for this function:

void SettingsSingleton::setNotes ( QString  notes)

Used to set private variable notes.

Parameters
notesthe notes to change the private variable to.

Definition at line 46 of file settingssingleton.cpp.

Here is the caller graph for this function:

void SettingsSingleton::setPatientCode ( QString  patientCode)

Used to set private variable patientCode.

Parameters
patientCodethe patientCode to change the private variable to.

Definition at line 40 of file settingssingleton.cpp.

Here is the caller graph for this function:

void SettingsSingleton::setRecordingName ( QString  recordingName)

Used to set private variable recordingName.

Parameters
recordingNamethe recordingName to change the private variable to.

Definition at line 43 of file settingssingleton.cpp.

Here is the caller graph for this function:

void SettingsSingleton::setSampleRate ( int  sampleRate)

Used to set private variable sampleRate.

Parameters
sampleRatethe sampleRate to change the private variable to.

Definition at line 49 of file settingssingleton.cpp.

Here is the caller graph for this function:

void SettingsSingleton::setSaveAsEdf ( bool  saveAsEdf)

Set the private bool saveAsEdf.

Parameters
saveAsEdf

Definition at line 58 of file settingssingleton.cpp.

Here is the caller graph for this function:

void SettingsSingleton::setSource ( QString  source)

Used to set private QString source.

Parameters
sourcethe source to change the private variable to.

Definition at line 52 of file settingssingleton.cpp.

Here is the caller graph for this function:

void SettingsSingleton::setSourceId ( int  sourceId)

Used to set private int name.

Parameters
sourceIdthe sourceId to change the private variable to.

Definition at line 55 of file settingssingleton.cpp.

Here is the caller graph for this function:


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