Torc  0.1
Public Slots | Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
TorcCameraOutput Class Referenceabstract

#include <torccameraoutput.h>

Inheritance diagram for TorcCameraOutput:
[legend]

Public Slots

virtual void CameraErrored (bool Errored)=0
 
void ParamsChanged (TorcCameraParams &Params)
 Notify the output that the camera parameters have changed. More...
 
- 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

 TorcCameraOutput (TorcOutput::Type Type, double Value, const QString &ModelId, const QVariantMap &Details, QObject *Output, const QMetaObject &MetaObject, const QString &Blacklist=QStringLiteral(""))
 
virtual ~TorcCameraOutput ()=default
 
- 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
 
virtual TorcOutput::Type GetType (void)=0
 
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
 

Public Attributes

TorcCameraThreadm_thread
 
QReadWriteLock m_threadLock
 
TorcCameraParams m_params
 
QReadWriteLock m_paramsLock
 
QString m_cameraName
 

Protected Member Functions

TorcCameraParamsGetParams (void)
 
void SetParams (TorcCameraParams &Params)
 
void Graph (QByteArray *Data) override
 
void SetCameraName (const QString &Name)
 
- Protected Member Functions inherited from TorcDevice
virtual ~TorcDevice ()
 
- Protected Member Functions inherited from TorcHTTPService
void HandleSubscriberDeleted (QObject *Subscriber)
 

Friends

class TorcCameraOutputs
 

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)
 
- 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
 
- 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 17 of file torccameraoutput.h.

Constructor & Destructor Documentation

TorcCameraOutput::TorcCameraOutput ( TorcOutput::Type  Type,
double  Value,
const QString &  ModelId,
const QVariantMap &  Details,
QObject *  Output,
const QMetaObject &  MetaObject,
const QString &  Blacklist = QStringLiteral("") 
)

Definition at line 37 of file torccameraoutput.cpp.

virtual TorcCameraOutput::~TorcCameraOutput ( )
virtualdefault

Member Function Documentation

virtual void TorcCameraOutput::CameraErrored ( bool  Errored)
pure virtualslot
TorcCameraParams & TorcCameraOutput::GetParams ( void  )
protected

Definition at line 48 of file torccameraoutput.cpp.

void TorcCameraOutput::Graph ( QByteArray *  Data)
overrideprotectedvirtual

Reimplemented from TorcOutput.

Definition at line 72 of file torccameraoutput.cpp.

void TorcCameraOutput::ParamsChanged ( TorcCameraParams Params)
slot

Notify the output that the camera parameters have changed.

Note
This is used by the camera device when the init segment has been saved and the video code determined - which is needed before streaming has started. It should however have roughly 2 seconds to arrive before the first video segment is available.

Definition at line 64 of file torccameraoutput.cpp.

void TorcCameraOutput::SetCameraName ( const QString &  Name)
protected

Definition at line 80 of file torccameraoutput.cpp.

void TorcCameraOutput::SetParams ( TorcCameraParams Params)
protected

Definition at line 53 of file torccameraoutput.cpp.

Friends And Related Function Documentation

friend class TorcCameraOutputs
friend

Definition at line 22 of file torccameraoutput.h.

Member Data Documentation

QString TorcCameraOutput::m_cameraName

Definition at line 44 of file torccameraoutput.h.

TorcCameraParams TorcCameraOutput::m_params

Definition at line 42 of file torccameraoutput.h.

QReadWriteLock TorcCameraOutput::m_paramsLock

Definition at line 43 of file torccameraoutput.h.

TorcCameraThread* TorcCameraOutput::m_thread

Definition at line 40 of file torccameraoutput.h.

QReadWriteLock TorcCameraOutput::m_threadLock

Definition at line 41 of file torccameraoutput.h.


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