#include <torcoutputs.h>
|
| TorcOutputs () |
| TorcOutputs contains the master record of known outputs. More...
|
|
void | Graph (QByteArray *Data) |
|
QString | GetUIName (void) override |
|
void | Create (const QVariantMap &Details) override |
|
void | Destroy (void) override |
|
void | AddOutput (TorcOutput *Output) |
|
void | RemoveOutput (TorcOutput *Output) |
|
| 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 |
|
Public Member Functions inherited from TorcDeviceHandler |
| TorcDeviceHandler () |
|
virtual | ~TorcDeviceHandler ()=default |
|
Definition at line 13 of file torcoutputs.h.
TorcOutputs::TorcOutputs |
( |
| ) |
|
TorcOutputs contains the master record of known outputs.
A static global TorcOutputs object is created (this could alternatively be created as a TorcAdminObject). This object will list these outputs as an HTTP service.
Any subclass of TorcOutput will automatically register itself on creation. Any class creating outputs must DownRef AND call RemoveOutput when deleting them.
It also creates and manages known network (i.e. user set) and constant outputs.
<torc>
<outputs>
<network>
<switch/pwm/temperature/ph/button>
<name></name>
<default></default>
<username></username>
<userdescription></userdescription>
</switch etc>
</network>
<constant>
<switch/pwm/temperature/ph> -- NO BUTTON
<name></name>
<default></default>
<username></username>
<userdescription></userdescription>
</switch etc>
</constant>
</outputs>
</torc>
- Note
- This class is thread safe.
Definition at line 75 of file torcoutputs.cpp.
void TorcOutputs::AddOutput |
( |
TorcOutput * |
Output | ) |
|
void TorcOutputs::Create |
( |
const QVariantMap & |
Details | ) |
|
|
overridevirtual |
void TorcOutputs::Destroy |
( |
void |
| ) |
|
|
overridevirtual |
QVariantMap TorcOutputs::GetOutputList |
( |
void |
| ) |
|
|
slot |
QStringList TorcOutputs::GetOutputTypes |
( |
void |
| ) |
|
|
slot |
QString TorcOutputs::GetUIName |
( |
void |
| ) |
|
|
overridevirtual |
void TorcOutputs::Graph |
( |
QByteArray * |
Data | ) |
|
void TorcOutputs::OutputsChanged |
( |
void |
| ) |
|
|
signal |
void TorcOutputs::RemoveOutput |
( |
TorcOutput * |
Output | ) |
|
void TorcOutputs::SubscriberDeleted |
( |
QObject * |
Subscriber | ) |
|
|
slot |
QVariantMap TorcOutputs::outputList |
|
read |
The documentation for this class was generated from the following files: