Torc  0.1
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
TorcPWMOutput Class Reference

#include <torcpwmoutput.h>

Inheritance diagram for TorcPWMOutput:
[legend]

Public Slots

uint GetResolution (void)
 
uint GetMaxResolution (void)
 
- Public Slots inherited from TorcOutput
void SubscriberDeleted (QObject *Subscriber)
 
- 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)
 

Public Member Functions

 TorcPWMOutput (double Value, const QString &ModelId, const QVariantMap &Details, uint MaxResolution=DEFAULT_PWM_RESOLUTION)
 
virtual ~TorcPWMOutput ()=default
 
QStringList GetDescription (void) override
 
TorcOutput::Type GetType (void) override
 
- Public Member Functions inherited from TorcOutput
 TorcOutput (TorcOutput::Type Type, double Value, const QString &ModelId, const QVariantMap &Details)
 
 TorcOutput (TorcOutput::Type Type, double Value, const QString &ModelId, const QVariantMap &Details, QObject *Output, const QMetaObject &MetaObject, const QString &Blacklist=QStringLiteral(""))
 
virtual ~TorcOutput ()=default
 
bool HasOwner (void)
 
bool SetOwner (QObject *Owner)
 
QString GetUIName (void) override
 
- Public Member Functions inherited from TorcReferenceCounter
 TorcReferenceCounter (void)
 
virtual ~TorcReferenceCounter (void)=default
 
void UpRef (void)
 
virtual bool DownRef (void)
 
bool IsShared (void)
 
- 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
 

Protected Member Functions

bool ValueIsDifferent (double &NewValue)
 
- Protected Member Functions inherited from TorcOutput
virtual void Graph (QByteArray *Data)
 
- Protected Member Functions inherited from TorcDevice
virtual ~TorcDevice ()
 
- Protected Member Functions inherited from TorcHTTPService
void HandleSubscriberDeleted (QObject *Subscriber)
 

Protected Attributes

uint m_resolution
 
uint m_maxResolution
 
- 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
 
- Protected Attributes inherited from TorcHTTPService
QReadWriteLock m_httpServiceLock
 
- Protected Attributes inherited from TorcHTTPHandler
QString m_signature
 
bool m_recursive
 
QString m_name
 

Properties

uint Resolution
 
uint maxResolution
 
- Properties inherited from TorcDevice
bool valid
 

Additional Inherited Members

- Public Types inherited from TorcOutput
enum  Type {
  Unknown = 0, Temperature, pH, Switch,
  PWM, Button, Camera, Integer,
  MaxType
}
 
- Signals inherited from TorcDevice
void ValidChanged (bool Valid)
 
void ValueChanged (double Value)
 
- Static Public Member Functions inherited from TorcReferenceCounter
static void EventLoopEnding (bool Ending)
 
- 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)
 
- 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
 

Detailed Description

Definition at line 9 of file torcpwmoutput.h.

Constructor & Destructor Documentation

TorcPWMOutput::TorcPWMOutput ( double  Value,
const QString &  ModelId,
const QVariantMap &  Details,
uint  MaxResolution = DEFAULT_PWM_RESOLUTION 
)

Definition at line 27 of file torcpwmoutput.cpp.

virtual TorcPWMOutput::~TorcPWMOutput ( )
virtualdefault

Member Function Documentation

QStringList TorcPWMOutput::GetDescription ( void  )
overridevirtual

Reimplemented from TorcDevice.

Definition at line 74 of file torcpwmoutput.cpp.

uint TorcPWMOutput::GetMaxResolution ( void  )
slot

Definition at line 89 of file torcpwmoutput.cpp.

uint TorcPWMOutput::GetResolution ( void  )
slot

Definition at line 84 of file torcpwmoutput.cpp.

TorcOutput::Type TorcPWMOutput::GetType ( void  )
overridevirtual

Implements TorcOutput.

Definition at line 79 of file torcpwmoutput.cpp.

bool TorcPWMOutput::ValueIsDifferent ( double &  NewValue)
protected

Definition at line 94 of file torcpwmoutput.cpp.

Member Data Documentation

uint TorcPWMOutput::m_maxResolution
protected

Definition at line 31 of file torcpwmoutput.h.

uint TorcPWMOutput::m_resolution
protected

Definition at line 30 of file torcpwmoutput.h.

Property Documentation

uint TorcPWMOutput::maxResolution
read

Definition at line 13 of file torcpwmoutput.h.

uint TorcPWMOutput::Resolution
read

Definition at line 12 of file torcpwmoutput.h.


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