MythTV  master
Public Member Functions | Static Public Member Functions | Public Attributes | Static Protected Attributes | Friends | List of all members
Frontend Class Reference

#include <backendcontext.h>

Inheritance diagram for Frontend:
Inheritance graph
[legend]
Collaboration diagram for Frontend:
Collaboration graph
[legend]

Public Member Functions

 Frontend ()
 
 ~Frontend ()=default
 
Q_INVOKABLE Frontend (QObject *parent=nullptr)
 
DTC::FrontendStatusGetStatus (void) override
 
bool SendMessage (const QString &Message, uint Timeout) override
 
bool SendNotification (bool Error, const QString &Type, const QString &Message, const QString &Origin, const QString &Description, const QString &Image, const QString &Extra, const QString &ProgressText, float Progress, int Timeout, bool Fullscreen, uint Visibility, uint Priority) override
 
bool SendAction (const QString &Action, const QString &Value, uint Width, uint Height) override
 
bool PlayRecording (int RecordedId, int ChanId, const QDateTime &StartTime) override
 
bool PlayVideo (const QString &Id, bool UseBookmark) override
 
QStringList GetContextList (void) override
 
DTC::FrontendActionListGetActionList (const QString &Context) override
 
bool SendKey (const QString &Key) override
 
- Public Member Functions inherited from FrontendServices
 FrontendServices (QObject *parent=nullptr)
 
- Public Member Functions inherited from Service
 Service (QObject *parent=nullptr)
 
virtual QVariant ConvertToVariant (int nType, void *pValue)
 
virtual void * ConvertToParameterPtr (int nTypeId, const QString &sParamType, void *pParam, const QString &sValue)
 

Static Public Member Functions

static bool IsValidAction (const QString &action)
 
static void InitialiseActions (void)
 
- Static Public Member Functions inherited from Service
static bool ToBool (const QString &sVal)
 

Public Attributes

QString name
 
QHostAddress ip
 The user friendly name of the frontend. More...
 
int connectionCount
 The frontend IP address. More...
 
- Public Attributes inherited from Service
QList< QString > m_parsedParams
 

Static Protected Attributes

static QStringList gActionList = QStringList()
 
static QHash< QString, QStringList > gActionDescriptions = QHash<QString,QStringList>()
 

Friends

class MythFEXML
 

Additional Inherited Members

- Public Slots inherited from FrontendServices

Detailed Description

Definition at line 26 of file backendcontext.h.

Constructor & Destructor Documentation

◆ Frontend() [1/2]

Frontend::Frontend ( )
inline

Definition at line 29 of file backendcontext.h.

◆ ~Frontend()

Frontend::~Frontend ( )
default

◆ Frontend() [2/2]

Q_INVOKABLE Frontend::Frontend ( QObject *  parent = nullptr)
inlineexplicit

Definition at line 15 of file programs/mythfrontend/services/frontend.h.

Member Function Documentation

◆ GetStatus()

DTC::FrontendStatus * Frontend::GetStatus ( void  )
overridevirtual

Implements FrontendServices.

Definition at line 32 of file frontend.cpp.

Referenced by ScriptableFrontend::GetStatus().

◆ SendMessage()

bool Frontend::SendMessage ( const QString &  Message,
uint  Timeout 
)
overridevirtual

Implements FrontendServices.

Definition at line 44 of file frontend.cpp.

◆ SendNotification()

bool Frontend::SendNotification ( bool  Error,
const QString &  Type,
const QString &  Message,
const QString &  Origin,
const QString &  Description,
const QString &  Image,
const QString &  Extra,
const QString &  ProgressText,
float  Progress,
int  Timeout,
bool  Fullscreen,
uint  Visibility,
uint  Priority 
)
overridevirtual

Implements FrontendServices.

Definition at line 58 of file frontend.cpp.

◆ SendAction()

bool Frontend::SendAction ( const QString &  Action,
const QString &  Value,
uint  Width,
uint  Height 
)
overridevirtual

Implements FrontendServices.

Definition at line 87 of file frontend.cpp.

◆ PlayRecording()

bool Frontend::PlayRecording ( int  RecordedId,
int  ChanId,
const QDateTime &  StartTime 
)
overridevirtual

Implements FrontendServices.

Definition at line 128 of file frontend.cpp.

◆ PlayVideo()

bool Frontend::PlayVideo ( const QString &  Id,
bool  UseBookmark 
)
overridevirtual

Implements FrontendServices.

Definition at line 192 of file frontend.cpp.

◆ GetContextList()

QStringList Frontend::GetContextList ( void  )
overridevirtual

Implements FrontendServices.

Definition at line 248 of file frontend.cpp.

◆ GetActionList()

DTC::FrontendActionList * Frontend::GetActionList ( const QString &  Context)
overridevirtual

Implements FrontendServices.

Definition at line 254 of file frontend.cpp.

◆ IsValidAction()

bool Frontend::IsValidAction ( const QString &  action)
static

Definition at line 279 of file frontend.cpp.

Referenced by SendAction().

◆ InitialiseActions()

void Frontend::InitialiseActions ( void  )
static

◆ SendKey()

bool Frontend::SendKey ( const QString &  Key)
overridevirtual

Implements FrontendServices.

Definition at line 335 of file frontend.cpp.

Friends And Related Function Documentation

◆ MythFEXML

friend class MythFEXML
friend

Definition at line 10 of file programs/mythfrontend/services/frontend.h.

Member Data Documentation

◆ name

QString Frontend::name

◆ ip

QHostAddress Frontend::ip

The user friendly name of the frontend.

Definition at line 33 of file backendcontext.h.

Referenced by MainServer::HandleAnnounce(), and BackendContext::SetFrontendConnected().

◆ connectionCount

int Frontend::connectionCount

The frontend IP address.

Definition at line 35 of file backendcontext.h.

Referenced by BackendContext::SetFrontendConnected(), and BackendContext::SetFrontendDisconnected().

◆ gActionList

QStringList Frontend::gActionList = QStringList()
staticprotected

Definition at line 49 of file programs/mythfrontend/services/frontend.h.

Referenced by InitialiseActions(), and IsValidAction().

◆ gActionDescriptions

QHash< QString, QStringList > Frontend::gActionDescriptions = QHash<QString,QStringList>()
staticprotected

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