Torc  0.1
Public Slots | Signals | Public Member Functions | List of all members
TorcCameraVideoOutput Class Referencefinal

#include <torccameraoutput.h>

Inheritance diagram for TorcCameraVideoOutput:
[legend]

Public Slots

void WritingStarted (void)
 The camera has started to record video. More...
 
void WritingStopped (void)
 The camera is no longer recording any video. More...
 
void CameraErrored (bool Errored) override
 
void SegmentRemoved (int Segment)
 
void InitSegmentReady (void)
 The 'init' segment is ready and available. More...
 
void SegmentReady (int Segment)
 
void TimeCheck (void)
 
void RequestReady (TorcNetworkRequest *Request)
 
- Public Slots inherited from TorcCameraOutput
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)
 

Signals

void StreamVideo (bool Video)
 
void CheckTime (void)
 
- Signals inherited from TorcDevice
void ValidChanged (bool Valid)
 
void ValueChanged (double Value)
 

Public Member Functions

 TorcCameraVideoOutput (const QString &ModelId, const QVariantMap &Details)
 
virtual ~TorcCameraVideoOutput ()
 
TorcOutput::Type GetType (void) override
 
void Start (void) override
 
void Stop (void) override
 Stop the device. More...
 
QString GetPresentationURL (void) override
 
void ProcessHTTPRequest (const QString &PeerAddress, int PeerPort, const QString &LocalAddress, int LocalPort, TorcHTTPRequest &Request) override
 
- Public Member Functions inherited from TorcCameraOutput
 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
 
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...
 
- 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
 

Additional Inherited Members

- Public Types inherited from TorcOutput
enum  Type {
  Unknown = 0, Temperature, pH, Switch,
  PWM, Button, Camera, Integer,
  MaxType
}
 
- Static Public Member Functions inherited from TorcReferenceCounter
static void EventLoopEnding (bool Ending)
 
- Public Attributes inherited from TorcCameraOutput
TorcCameraThreadm_thread
 
QReadWriteLock m_threadLock
 
TorcCameraParams m_params
 
QReadWriteLock m_paramsLock
 
QString m_cameraName
 
- Protected Member Functions inherited from TorcCameraOutput
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)
 
- 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 81 of file torccameraoutput.h.

Constructor & Destructor Documentation

TorcCameraVideoOutput::TorcCameraVideoOutput ( const QString &  ModelId,
const QVariantMap &  Details 
)

Definition at line 177 of file torccameraoutput.cpp.

TorcCameraVideoOutput::~TorcCameraVideoOutput ( )
virtual

Definition at line 188 of file torccameraoutput.cpp.

Member Function Documentation

void TorcCameraVideoOutput::CameraErrored ( bool  Errored)
overrideslot

Definition at line 293 of file torccameraoutput.cpp.

void TorcCameraVideoOutput::CheckTime ( void  )
signal
QString TorcCameraVideoOutput::GetPresentationURL ( void  )
overridevirtual

Reimplemented from TorcHTTPService.

Definition at line 230 of file torccameraoutput.cpp.

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

Implements TorcOutput.

Definition at line 225 of file torccameraoutput.cpp.

void TorcCameraVideoOutput::InitSegmentReady ( void  )
slot

The 'init' segment is ready and available.

Definition at line 256 of file torccameraoutput.cpp.

void TorcCameraVideoOutput::ProcessHTTPRequest ( const QString &  PeerAddress,
int  PeerPort,
const QString &  LocalAddress,
int  LocalPort,
TorcHTTPRequest Request 
)
overridevirtual

Implements TorcHTTPHandler.

Definition at line 357 of file torccameraoutput.cpp.

void TorcCameraVideoOutput::RequestReady ( TorcNetworkRequest Request)
slot

Definition at line 215 of file torccameraoutput.cpp.

void TorcCameraVideoOutput::SegmentReady ( int  Segment)
slot

Definition at line 303 of file torccameraoutput.cpp.

void TorcCameraVideoOutput::SegmentRemoved ( int  Segment)
slot

Definition at line 338 of file torccameraoutput.cpp.

void TorcCameraVideoOutput::Start ( void  )
override

Definition at line 235 of file torccameraoutput.cpp.

void TorcCameraVideoOutput::Stop ( void  )
overridevirtual

Stop the device.

Invalidate the device, which will also set its value to defaultValue.

Reimplemented from TorcDevice.

Definition at line 269 of file torccameraoutput.cpp.

void TorcCameraVideoOutput::StreamVideo ( bool  Video)
signal
void TorcCameraVideoOutput::TimeCheck ( void  )
slot

Definition at line 201 of file torccameraoutput.cpp.

void TorcCameraVideoOutput::WritingStarted ( void  )
slot

The camera has started to record video.

Definition at line 262 of file torccameraoutput.cpp.

void TorcCameraVideoOutput::WritingStopped ( void  )
slot

The camera is no longer recording any video.

Definition at line 285 of file torccameraoutput.cpp.


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