Torc  0.1
Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Static Protected Attributes | Properties | List of all members
TorcCentral Class Referencefinal

#include <torccentral.h>

Inheritance diagram for TorcCentral:
[legend]

Public Types

enum  TemperatureUnits { Celsius = 0, Fahrenheit = 1 }
 

Public Slots

void SubscriberDeleted (QObject *Subscriber)
 
QString GetTemperatureUnits (void)
 

Public Member Functions

 TorcCentral ()
 
 ~TorcCentral ()
 
QString GetUIName (void) override
 
bool event (QEvent *Event) override
 Handle Exit events. More...
 
- Public Member Functions inherited from TorcHTTPService
 TorcHTTPService (QObject *Parent, const QString &Signature, const QString &Name, const QMetaObject &MetaObject, const QString &Blacklist=QStringLiteral(""))
 
virtual ~TorcHTTPService ()
 
void ProcessHTTPRequest (const QString &PeerAddress, int PeerPort, const QString &LocalAddress, int LocalPort, TorcHTTPRequest &Request) override
 
QVariantMap ProcessRequest (const QString &Method, const QVariant &Parameters, QObject *Connection, bool Authenticated) override
 
QString GetMethod (int Index)
 
QVariant GetProperty (int Index)
 Get the value of a given property. More...
 
QVariantMap GetServiceDetails (void)
 Return a QVariantMap describing the services methods and properties. More...
 
virtual QString GetPresentationURL (void)
 
- Public Member Functions inherited from TorcHTTPHandler
 TorcHTTPHandler (const QString &Signature, const QString &Name)
 
virtual ~TorcHTTPHandler ()
 
QString Signature (void) const
 
bool GetRecursive (void) const
 
QString Name (void) const
 

Static Public Member Functions

static QByteArray GetCustomisedXSD (const QString &BaseXSDFile)
 
static TemperatureUnits GetGlobalTemperatureUnits (void)
 

Static Protected Attributes

static TemperatureUnits gTemperatureUnits = TorcCentral::Celsius
 

Properties

QString temperatureUnits
 

Additional Inherited Members

- Protected Member Functions inherited from TorcHTTPService
void HandleSubscriberDeleted (QObject *Subscriber)
 
- Static Protected Member Functions inherited from TorcHTTPHandler
static bool MethodIsAuthorised (TorcHTTPRequest &Request, int Allowed)
 Check the current request is authorised and set the authentication header if not. More...
 
static void HandleOptions (TorcHTTPRequest &Request, int Allowed)
 
static void HandleFile (TorcHTTPRequest &Request, const QString &Filename, int Cache)
 
- Protected Attributes inherited from TorcHTTPService
QReadWriteLock m_httpServiceLock
 
- Protected Attributes inherited from TorcHTTPHandler
QString m_signature
 
bool m_recursive
 
QString m_name
 

Detailed Description

Definition at line 13 of file torccentral.h.

Member Enumeration Documentation

Enumerator
Celsius 
Fahrenheit 

Definition at line 16 of file torccentral.h.

Constructor & Destructor Documentation

TorcCentral::TorcCentral ( )

Definition at line 63 of file torccentral.cpp.

TorcCentral::~TorcCentral ( )

Definition at line 226 of file torccentral.cpp.

Member Function Documentation

bool TorcCentral::event ( QEvent *  Event)
override

Handle Exit events.

Definition at line 411 of file torccentral.cpp.

QByteArray TorcCentral::GetCustomisedXSD ( const QString &  BaseXSDFile)
static

Definition at line 388 of file torccentral.cpp.

TorcCentral::TemperatureUnits TorcCentral::GetGlobalTemperatureUnits ( void  )
static

Definition at line 58 of file torccentral.cpp.

QString TorcCentral::GetTemperatureUnits ( void  )
slot

Definition at line 240 of file torccentral.cpp.

QString TorcCentral::GetUIName ( void  )
overridevirtual

Reimplemented from TorcHTTPService.

Definition at line 235 of file torccentral.cpp.

void TorcCentral::SubscriberDeleted ( QObject *  Subscriber)
slot

Definition at line 245 of file torccentral.cpp.

Member Data Documentation

TorcCentral::TemperatureUnits TorcCentral::gTemperatureUnits = TorcCentral::Celsius
staticprotected

Definition at line 42 of file torccentral.h.

Property Documentation

QString TorcCentral::temperatureUnits
read

Definition at line 25 of file torccentral.h.


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