Torc  0.1
Public Slots | Protected Member Functions | List of all members
TorcNotifier Class Referenceabstract

#include <torcnotifier.h>

Inheritance diagram for TorcNotifier:
[legend]

Public Slots

virtual void Notify (const QVariantMap &Notification)=0
 
- Public Slots inherited from TorcDevice
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)
 

Protected Member Functions

 TorcNotifier (const QVariantMap &Details)
 
virtual ~TorcNotifier ()=default
 
- Protected Member Functions inherited from TorcDevice
virtual ~TorcDevice ()
 

Additional Inherited Members

- Signals inherited from TorcDevice
void ValidChanged (bool Valid)
 
void ValueChanged (double Value)
 
- 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)
 
- Protected Attributes inherited from TorcDevice
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 inherited from TorcDevice
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 inherited from TorcDevice
bool valid
 

Detailed Description

This is the base notifier class. Subclass it and implement Notify to send messages to the world.

Note
TorcNotifier classes may operate asynchronously and may listen for events. They thus may need to run in a full QThread (and not a QRunnable).

Definition at line 15 of file torcnotifier.h.

Constructor & Destructor Documentation

TorcNotifier::TorcNotifier ( const QVariantMap &  Details)
explicitprotected

Definition at line 36 of file torcnotifier.cpp.

virtual TorcNotifier::~TorcNotifier ( )
protectedvirtualdefault

Member Function Documentation

virtual void TorcNotifier::Notify ( const QVariantMap &  Notification)
pure virtualslot

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