Torc  0.1
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TorcIOTLogger Class Referenceabstract

#include <torciotlogger.h>

Inheritance diagram for TorcIOTLogger:
[legend]

Public Slots

void Notify (const QVariantMap &Notification) override
 
void DoNotify (void)
 
void RequestReady (TorcNetworkRequest *Request)
 
- Public Slots inherited from TorcNotifier
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)
 

Signals

void StartTimer (int Milliseconds)
 
void TryNotify (void)
 
- Signals inherited from TorcDevice
void ValidChanged (bool Valid)
 
void ValueChanged (double Value)
 

Public Member Functions

 TorcIOTLogger (const QVariantMap &Details)
 
virtual ~TorcIOTLogger ()
 
QStringList GetDescription (void) overridefinal
 
- Public Member Functions inherited from TorcReferenceCounter
 TorcReferenceCounter (void)
 
virtual ~TorcReferenceCounter (void)=default
 
void UpRef (void)
 
virtual bool DownRef (void)
 
bool IsShared (void)
 

Protected Member Functions

virtual bool Initialise (const QVariantMap &Details)
 
virtual void ProcessRequest (TorcNetworkRequest *Request)=0
 
virtual TorcNetworkRequestCreateRequest (void)=0
 
- Protected Member Functions inherited from TorcNotifier
 TorcNotifier (const QVariantMap &Details)
 
virtual ~TorcNotifier ()=default
 
- Protected Member Functions inherited from TorcDevice
virtual ~TorcDevice ()
 

Protected Attributes

QString m_description
 
QTimer m_timer
 
int m_networkAbort
 
QString m_apiKey
 
int m_badRequestCount
 
int m_maxBadRequests
 
int m_maxUpdateInterval
 
QDateTime m_lastUpdate
 
QList< TorcNetworkRequest * > m_requests
 
int m_maxFields
 
QMap< QString, int > m_fields
 
QMap< int, QString > m_reverseFields
 
QString m_fieldValues [32]
 
- 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
 

Additional Inherited Members

- Static Public Member Functions inherited from TorcReferenceCounter
static void EventLoopEnding (bool Ending)
 
- 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

Definition at line 14 of file torciotlogger.h.

Constructor & Destructor Documentation

TorcIOTLogger::TorcIOTLogger ( const QVariantMap &  Details)
explicit

Definition at line 29 of file torciotlogger.cpp.

TorcIOTLogger::~TorcIOTLogger ( )
virtual

Definition at line 50 of file torciotlogger.cpp.

Member Function Documentation

virtual TorcNetworkRequest* TorcIOTLogger::CreateRequest ( void  )
protectedpure virtual
void TorcIOTLogger::DoNotify ( void  )
slot

Definition at line 143 of file torciotlogger.cpp.

QStringList TorcIOTLogger::GetDescription ( void  )
finaloverridevirtual

Reimplemented from TorcDevice.

Definition at line 108 of file torciotlogger.cpp.

bool TorcIOTLogger::Initialise ( const QVariantMap &  Details)
protectedvirtual

Definition at line 64 of file torciotlogger.cpp.

void TorcIOTLogger::Notify ( const QVariantMap &  Notification)
overrideslot

Definition at line 118 of file torciotlogger.cpp.

virtual void TorcIOTLogger::ProcessRequest ( TorcNetworkRequest Request)
protectedpure virtual
void TorcIOTLogger::RequestReady ( TorcNetworkRequest Request)
slot

Definition at line 182 of file torciotlogger.cpp.

void TorcIOTLogger::StartTimer ( int  Milliseconds)
signal
void TorcIOTLogger::TryNotify ( void  )
signal

Member Data Documentation

QString TorcIOTLogger::m_apiKey
protected

Definition at line 42 of file torciotlogger.h.

int TorcIOTLogger::m_badRequestCount
protected

Definition at line 43 of file torciotlogger.h.

QString TorcIOTLogger::m_description
protected

Definition at line 39 of file torciotlogger.h.

QMap<QString,int> TorcIOTLogger::m_fields
protected

Definition at line 49 of file torciotlogger.h.

QString TorcIOTLogger::m_fieldValues[32]
protected

Definition at line 51 of file torciotlogger.h.

QDateTime TorcIOTLogger::m_lastUpdate
protected

Definition at line 46 of file torciotlogger.h.

int TorcIOTLogger::m_maxBadRequests
protected

Definition at line 44 of file torciotlogger.h.

int TorcIOTLogger::m_maxFields
protected

Definition at line 48 of file torciotlogger.h.

int TorcIOTLogger::m_maxUpdateInterval
protected

Definition at line 45 of file torciotlogger.h.

int TorcIOTLogger::m_networkAbort
protected

Definition at line 41 of file torciotlogger.h.

QList<TorcNetworkRequest*> TorcIOTLogger::m_requests
protected

Definition at line 47 of file torciotlogger.h.

QMap<int,QString> TorcIOTLogger::m_reverseFields
protected

Definition at line 50 of file torciotlogger.h.

QTimer TorcIOTLogger::m_timer
protected

Definition at line 40 of file torciotlogger.h.


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