MythTV  master
Public Member Functions | Static Private Member Functions | List of all members
MessageHandler Class Reference

#include <messagehandler.h>

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

Public Member Functions

 MessageHandler (void)
 
bool HandleQuery (SocketHandler *socket, QStringList &commands, QStringList &slist) override
 
QString GetHandlerName (void) override
 
void customEvent (QEvent *e) override
 
- Public Member Functions inherited from SocketRequestHandler
 SocketRequestHandler ()=default
 
 ~SocketRequestHandler () override=default
 
virtual bool HandleAnnounce (MythSocket *, QStringList &, QStringList &)
 
virtual void connectionAnnounced (MythSocket *, QStringList &, QStringList &)
 
virtual void connectionClosed (MythSocket *)
 
virtual void SetParent (MythSocketManager *parent)
 
MythSocketManagerGetParent (void)
 

Static Private Member Functions

static bool HandleInbound (SocketHandler *sock, QStringList &slist)
 
static bool HandleOutbound (SocketHandler *sock, QStringList &slist)
 Handle an asynchronous message received from the master backend. More...
 

Additional Inherited Members

- Protected Attributes inherited from SocketRequestHandler
MythSocketManagerm_parent { nullptr }
 

Detailed Description

Definition at line 10 of file messagehandler.h.

Constructor & Destructor Documentation

◆ MessageHandler()

MessageHandler::MessageHandler ( void  )

Definition at line 6 of file messagehandler.cpp.

Member Function Documentation

◆ HandleQuery()

bool MessageHandler::HandleQuery ( SocketHandler socket,
QStringList &  commands,
QStringList &  slist 
)
overridevirtual

Reimplemented from SocketRequestHandler.

Definition at line 33 of file messagehandler.cpp.

◆ GetHandlerName()

QString MessageHandler::GetHandlerName ( void  )
inlineoverridevirtual

Reimplemented from SocketRequestHandler.

Definition at line 17 of file messagehandler.h.

◆ customEvent()

void MessageHandler::customEvent ( QEvent *  e)
override

Definition at line 16 of file messagehandler.cpp.

◆ HandleInbound()

bool MessageHandler::HandleInbound ( SocketHandler sock,
QStringList &  slist 
)
staticprivate

Definition at line 48 of file messagehandler.cpp.

Referenced by HandleQuery().

◆ HandleOutbound()

bool MessageHandler::HandleOutbound ( SocketHandler sock,
QStringList &  slist 
)
staticprivate

Handle an asynchronous message received from the master backend.

These are converted into a MythEvent and dispatched to all classes registered for events.

Parameters
sockThe socket on which the message arrived. This class of messages are never responded to, so this variable is never used.
slistThe contents of the asynchronous message. This is put into an event and sent to any classes that are interested.

Definition at line 93 of file messagehandler.cpp.

Referenced by HandleQuery().


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