|
enum | Type { Logic,
Timer,
Transition
} |
|
void | ValidChanged (bool Valid) |
|
void | ValueChanged (double Value) |
|
virtual bool | IsPassthrough (void) |
| Only certain logic controls can be passthrough. More...
|
|
virtual bool | AllowInputs (void) const |
| Most controls have an input side. More...
|
|
bool | IsKnownInput (const QString &Input) const |
|
bool | IsKnownOutput (const QString &Output) const |
|
QString | GetUIName (void) override |
|
| TorcReferenceCounter (void) |
|
virtual | ~TorcReferenceCounter (void)=default |
|
void | UpRef (void) |
|
virtual bool | DownRef (void) |
|
bool | IsShared (void) |
|
| 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 bool | ParseTimeString (const QString &Time, int &Days, int &Hours, int &Minutes, int &Seconds, quint64 &DurationInSeconds) |
| Parse a Torc time string into days, hours, minutes and, if present, seconds. More...
|
|
static QString | DurationToString (int Days, quint64 Duration) |
|
static void | EventLoopEnding (bool Ending) |
|
| TorcControl (TorcControl::Type Type, const QVariantMap &Details) |
|
virtual | ~TorcControl ()=default |
|
void | Graph (QByteArray *Data) |
| Add this control to the state graph. More...
|
|
bool | Finish (void) |
| Finish setup of the control. More...
|
|
void | InputValidChangedPriv (QObject *Input, bool Valid) |
|
void | CheckInputValues (void) |
|
void | SetValue (double Value) override |
|
void | SetValid (bool Valid) override |
|
bool | CheckForCircularReferences (const QString &UniqueId, const QString &Path) const |
|
virtual | ~TorcDevice () |
|
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) |
|
bool | m_parsed |
|
bool | m_validated |
|
QStringList | m_inputList |
|
QStringList | m_outputList |
|
QMap< QObject *, QString > | m_inputs |
|
QMap< QObject *, QString > | m_outputs |
|
QMap< QObject *, double > | m_inputValues |
|
QMap< QObject *, double > | m_lastInputValues |
|
QMap< QObject *, bool > | m_inputValids |
|
bool | m_allInputsValid |
|
double | value |
|
double | defaultValue |
|
QString | modelId |
|
QString | uniqueId |
|
QString | userName |
|
QString | userDescription |
|
QMutex | lock |
|
bool | wasInvalid |
|
QAtomicInt | m_refCount |
|
QReadWriteLock | m_httpServiceLock |
|
Protected Attributes inherited from TorcHTTPHandler |
QString | m_signature |
|
bool | m_recursive |
|
QString | m_name |
|
static QHash< QString, TorcDevice * > * | gDeviceList = new QHash<QString,TorcDevice*>() |
|
static QMutex * | gDeviceListLock = new QMutex(QMutex::Recursive) |
|
static bool | m_eventLoopEnding = false |
|
A control to transition an output between 2 levels over a period of time. A variety of transition types are available (for a complete reference see the Qt documentation). A linear transition will move smoothly between the 2 levels and other transitions may mimic more natural fluctuations (such as solunar intensity).
The custom 'LinearLED' transition implements the CIE 1931 formula for adjusting an output for perceived brightness.
Definition at line 11 of file torctransitioncontrol.h.