Torc  0.1
Public Slots | Signals | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | Friends | List of all members
TorcDevice Class Reference

#include <torcdevice.h>

Inheritance diagram for TorcDevice:
[legend]

Public Slots

virtual void SetValue (double Value)
 
virtual void SetValid (bool Valid)
 
bool GetValid (void)
 
double GetValue (void)
 
double GetDefaultValue (void)
 
QString GetModelId (void)
 
QString GetUniqueId (void)
 
QString GetUserName (void)
 
QString GetUserDescription (void)
 

Signals

void ValidChanged (bool Valid)
 
void ValueChanged (double Value)
 

Protected Member Functions

virtual ~TorcDevice ()
 

Protected Attributes

double value
 
double defaultValue
 
QString modelId
 
QString uniqueId
 
QString userName
 
QString userDescription
 
QMutex lock
 
bool wasInvalid
 
- Protected Attributes inherited from TorcReferenceCounter
QAtomicInt m_refCount
 

Static Protected Attributes

static QHash< QString, TorcDevice * > * gDeviceList = new QHash<QString,TorcDevice*>()
 
static QMutex * gDeviceListLock = new QMutex(QMutex::Recursive)
 
- Static Protected Attributes inherited from TorcReferenceCounter
static bool m_eventLoopEnding = false
 

Properties

bool valid
 

Friends

class TorcCentral
 

Additional Inherited Members

- Public Member Functions inherited from TorcReferenceCounter
 TorcReferenceCounter (void)
 
virtual ~TorcReferenceCounter (void)=default
 
void UpRef (void)
 
virtual bool DownRef (void)
 
bool IsShared (void)
 
- Static Public Member Functions inherited from TorcReferenceCounter
static void EventLoopEnding (bool Ending)
 

Detailed Description

Definition at line 19 of file torcdevice.h.

Constructor & Destructor Documentation

TorcDevice::~TorcDevice ( )
protectedvirtual

Definition at line 69 of file torcdevice.cpp.

Member Function Documentation

double TorcDevice::GetDefaultValue ( void  )
slot

Definition at line 149 of file torcdevice.cpp.

QString TorcDevice::GetModelId ( void  )
slot

Definition at line 156 of file torcdevice.cpp.

QString TorcDevice::GetUniqueId ( void  )
slot

Definition at line 162 of file torcdevice.cpp.

QString TorcDevice::GetUserDescription ( void  )
slot

Definition at line 175 of file torcdevice.cpp.

QString TorcDevice::GetUserName ( void  )
slot

Definition at line 168 of file torcdevice.cpp.

bool TorcDevice::GetValid ( void  )
slot

Definition at line 135 of file torcdevice.cpp.

double TorcDevice::GetValue ( void  )
slot

Definition at line 142 of file torcdevice.cpp.

void TorcDevice::SetValid ( bool  Valid)
virtualslot

Reimplemented in TorcControl.

Definition at line 101 of file torcdevice.cpp.

void TorcDevice::SetValue ( double  Value)
virtualslot

Reimplemented in TorcControl.

Definition at line 115 of file torcdevice.cpp.

NOTIFY virtual TorcDevice::ValidChanged ( bool  Valid)
signal
void TorcDevice::ValueChanged ( double  Value)
signal

Friends And Related Function Documentation

friend class TorcCentral
friend

Definition at line 21 of file torcdevice.h.

Member Data Documentation

double TorcDevice::defaultValue
protected

Definition at line 61 of file torcdevice.h.

QHash< QString, TorcDevice * > * TorcDevice::gDeviceList = new QHash<QString,TorcDevice*>()
staticprotected

Definition at line 68 of file torcdevice.h.

QMutex * TorcDevice::gDeviceListLock = new QMutex(QMutex::Recursive)
staticprotected

Definition at line 69 of file torcdevice.h.

QMutex TorcDevice::lock
protected

Definition at line 66 of file torcdevice.h.

QString TorcDevice::modelId
protected

Definition at line 62 of file torcdevice.h.

QString TorcDevice::uniqueId
protected

Definition at line 63 of file torcdevice.h.

QString TorcDevice::userDescription
protected

Definition at line 65 of file torcdevice.h.

QString TorcDevice::userName
protected

Definition at line 64 of file torcdevice.h.

double TorcDevice::value
protected

Definition at line 60 of file torcdevice.h.

bool TorcDevice::wasInvalid
protected

Definition at line 71 of file torcdevice.h.

Property Documentation

bool TorcDevice::valid
read

Definition at line 24 of file torcdevice.h.


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