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

#include <basehandler.h>

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

Public Member Functions

bool HandleAnnounce (MythSocket *socket, QStringList &commands, QStringList &slist) override
 
bool HandleQuery (SocketHandler *sock, QStringList &commands, QStringList &slist) override
 Dispatch query messages received from a client. More...
 
QString GetHandlerName (void) override
 
- Public Member Functions inherited from SocketRequestHandler
 SocketRequestHandler ()=default
 
 ~SocketRequestHandler () override=default
 
virtual void connectionAnnounced (MythSocket *, QStringList &, QStringList &)
 
virtual void connectionClosed (MythSocket *)
 
virtual void SetParent (MythSocketManager *parent)
 
MythSocketManagerGetParent (void)
 

Static Private Member Functions

static bool HandleQueryLoad (SocketHandler *sock)
 
static bool HandleQueryUptime (SocketHandler *sock)
 
static bool HandleQueryHostname (SocketHandler *sock)
 
static bool HandleQueryMemStats (SocketHandler *sock)
 
static bool HandleQueryTimeZone (SocketHandler *sock)
 

Additional Inherited Members

- Protected Attributes inherited from SocketRequestHandler
MythSocketManagerm_parent { nullptr }
 

Detailed Description

Definition at line 13 of file basehandler.h.

Member Function Documentation

◆ HandleAnnounce()

bool BaseRequestHandler::HandleAnnounce ( MythSocket socket,
QStringList &  commands,
QStringList &  slist 
)
overridevirtual

Reimplemented from SocketRequestHandler.

Definition at line 17 of file basehandler.cpp.

◆ HandleQuery()

bool BaseRequestHandler::HandleQuery ( SocketHandler sock,
QStringList &  commands,
QStringList &  slist 
)
overridevirtual

Dispatch query messages received from a client.

Parameters
sockThe socket on which the message arrived. This is used to communicate the response back to the sender of the query.
commandsThe command to execute.
slistAdditional list arguments to the query. None of the supported queries have any additional arguments, so this variable is never used.

Reimplemented from SocketRequestHandler.

Definition at line 72 of file basehandler.cpp.

◆ GetHandlerName()

QString BaseRequestHandler::GetHandlerName ( void  )
inlineoverridevirtual

Reimplemented from SocketRequestHandler.

Definition at line 21 of file basehandler.h.

◆ HandleQueryLoad()

bool BaseRequestHandler::HandleQueryLoad ( SocketHandler sock)
staticprivate

Definition at line 99 of file basehandler.cpp.

Referenced by HandleQuery().

◆ HandleQueryUptime()

bool BaseRequestHandler::HandleQueryUptime ( SocketHandler sock)
staticprivate

Definition at line 130 of file basehandler.cpp.

Referenced by HandleQuery().

◆ HandleQueryHostname()

bool BaseRequestHandler::HandleQueryHostname ( SocketHandler sock)
staticprivate

Definition at line 152 of file basehandler.cpp.

Referenced by HandleQuery().

◆ HandleQueryMemStats()

bool BaseRequestHandler::HandleQueryMemStats ( SocketHandler sock)
staticprivate

Definition at line 167 of file basehandler.cpp.

Referenced by HandleQuery().

◆ HandleQueryTimeZone()

bool BaseRequestHandler::HandleQueryTimeZone ( SocketHandler sock)
staticprivate

Definition at line 195 of file basehandler.cpp.

Referenced by HandleQuery().


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