MythTV
master
|
#include <libmythprotoserver/sockethandler.h>
Public Member Functions | |
SocketHandler (MythSocket *sock, MythSocketManager *parent, QString hostname) | |
~SocketHandler () override | |
bool | DoesBlockShutdown (void) const |
bool | GetsStandardEvents (void) const |
bool | GetsSystemEvents (void) const |
QString | GetHostname (void) |
MythSocket * | GetSocket (void) |
MythSocketManager * | GetParent (void) |
bool | WriteStringList (const QStringList &strlist) |
bool | SendReceiveStringList (QStringList &strlist, uint min_reply_length=0) |
void | BlockShutdown (bool block) |
void | AllowStandardEvents (bool allow) |
void | AllowSystemEvents (bool allow) |
Public Member Functions inherited from ReferenceCounter | |
ReferenceCounter (const QString &debugName, bool logDebug=true) | |
Creates reference counter with an initial value of 1. More... | |
virtual int | IncrRef (void) |
Increments reference count. More... | |
virtual int | DecrRef (void) |
Decrements reference count and deletes on 0. More... | |
Private Attributes | |
bool | m_blockShutdown { false } |
bool | m_standardEvents { false } |
bool | m_systemEvents { false } |
MythSocket * | m_socket { nullptr } |
MythSocketManager * | m_parent { nullptr } |
QString | m_hostname |
Additional Inherited Members | |
Static Public Member Functions inherited from ReferenceCounter | |
static void | PrintDebug (void) |
Print out any leaks if that level of debugging is enabled. More... | |
Protected Member Functions inherited from ReferenceCounter | |
virtual | ~ReferenceCounter (void) |
Called on destruction, will warn if object deleted with references in place. More... | |
Protected Attributes inherited from ReferenceCounter | |
bool | m_logDebug |
This is used to suppress creating LoggingItem classes for LoggingItem reference count changes. More... | |
QAtomicInt | m_referenceCount {1} |
Definition at line 16 of file sockethandler.h.
SocketHandler::SocketHandler | ( | MythSocket * | sock, |
MythSocketManager * | parent, | ||
QString | hostname | ||
) |
Definition at line 7 of file sockethandler.cpp.
|
override |
Definition at line 17 of file sockethandler.cpp.
|
inline |
Definition at line 23 of file sockethandler.h.
|
inline |
Definition at line 24 of file sockethandler.h.
|
inline |
Definition at line 25 of file sockethandler.h.
|
inline |
Definition at line 27 of file sockethandler.h.
|
inline |
Definition at line 29 of file sockethandler.h.
Referenced by MythSocketManager::AddSocketHandler(), FileTransfer::RequestBlock(), and FileTransfer::WriteBlock().
|
inline |
Definition at line 30 of file sockethandler.h.
bool SocketHandler::WriteStringList | ( | const QStringList & | strlist | ) |
Definition at line 26 of file sockethandler.cpp.
Referenced by FileServerHandler::HandleDeleteFile(), FileServerHandler::HandleDownloadFile(), FileServerHandler::HandleFileQuery(), FileServerHandler::HandleGetFileList(), MessageHandler::HandleInbound(), FileServerHandler::HandleQueryCheckFile(), FileServerHandler::HandleQueryFileExists(), FileServerHandler::HandleQueryFileHash(), FileServerHandler::HandleQueryFileTransfer(), FileServerHandler::HandleQueryFreeSpace(), FileServerHandler::HandleQueryFreeSpaceList(), FileServerHandler::HandleQueryFreeSpaceSummary(), BaseRequestHandler::HandleQueryHostname(), BaseRequestHandler::HandleQueryLoad(), BaseRequestHandler::HandleQueryMemStats(), BaseRequestHandler::HandleQueryTimeZone(), and BaseRequestHandler::HandleQueryUptime().
Definition at line 34 of file sockethandler.cpp.
Referenced by FileServerHandler::HandleFileQuery(), and FileServerHandler::HandleGetFileList().
|
inline |
Definition at line 35 of file sockethandler.h.
Referenced by FileServerHandler::HandleAnnounce().
|
inline |
Definition at line 36 of file sockethandler.h.
|
inline |
Definition at line 37 of file sockethandler.h.
Definition at line 40 of file sockethandler.h.
Definition at line 41 of file sockethandler.h.
Definition at line 42 of file sockethandler.h.
|
private |
Definition at line 44 of file sockethandler.h.
Referenced by SendReceiveStringList(), SocketHandler(), WriteStringList(), and ~SocketHandler().
|
private |
Definition at line 45 of file sockethandler.h.
|
private |
Definition at line 47 of file sockethandler.h.