MythTV  master
Public Member Functions | Private Attributes | List of all members
SocketHandler Class Reference

#include <sockethandler.h>

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

Public Member Functions

 SocketHandler (MythSocket *sock, MythSocketManager *parent, QString hostname)
 
 ~SocketHandler ()
 
bool DoesBlockShutdown (void)
 
bool GetsStandardEvents (void)
 
bool GetsSystemEvents (void)
 
QString GetHostname (void)
 
MythSocketGetSocket (void)
 
MythSocketManagerGetParent (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
 
bool m_standardEvents
 
bool m_systemEvents
 
MythSocketm_socket
 
MythSocketManagerm_parent
 
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
 

Detailed Description

Definition at line 16 of file sockethandler.h.

Constructor & Destructor Documentation

◆ SocketHandler()

SocketHandler::SocketHandler ( MythSocket sock,
MythSocketManager parent,
QString  hostname 
)

Definition at line 6 of file sockethandler.cpp.

◆ ~SocketHandler()

SocketHandler::~SocketHandler ( )

Definition at line 17 of file sockethandler.cpp.

Member Function Documentation

◆ DoesBlockShutdown()

bool SocketHandler::DoesBlockShutdown ( void  )
inline

Definition at line 23 of file sockethandler.h.

◆ GetsStandardEvents()

bool SocketHandler::GetsStandardEvents ( void  )
inline

Definition at line 24 of file sockethandler.h.

◆ GetsSystemEvents()

bool SocketHandler::GetsSystemEvents ( void  )
inline

Definition at line 25 of file sockethandler.h.

◆ GetHostname()

QString SocketHandler::GetHostname ( void  )
inline

Definition at line 27 of file sockethandler.h.

◆ GetSocket()

MythSocket* SocketHandler::GetSocket ( void  )
inline

◆ GetParent()

MythSocketManager* SocketHandler::GetParent ( void  )
inline

Definition at line 30 of file sockethandler.h.

◆ WriteStringList()

bool SocketHandler::WriteStringList ( const QStringList &  strlist)

◆ SendReceiveStringList()

bool SocketHandler::SendReceiveStringList ( QStringList &  strlist,
uint  min_reply_length = 0 
)

◆ BlockShutdown()

void SocketHandler::BlockShutdown ( bool  block)
inline

◆ AllowStandardEvents()

void SocketHandler::AllowStandardEvents ( bool  allow)
inline

◆ AllowSystemEvents()

void SocketHandler::AllowSystemEvents ( bool  allow)
inline

Member Data Documentation

◆ m_blockShutdown

bool SocketHandler::m_blockShutdown
private

Definition at line 40 of file sockethandler.h.

◆ m_standardEvents

bool SocketHandler::m_standardEvents
private

Definition at line 41 of file sockethandler.h.

◆ m_systemEvents

bool SocketHandler::m_systemEvents
private

Definition at line 42 of file sockethandler.h.

◆ m_socket

MythSocket* SocketHandler::m_socket
private

◆ m_parent

MythSocketManager* SocketHandler::m_parent
private

Definition at line 45 of file sockethandler.h.

◆ m_hostname

QString SocketHandler::m_hostname
private

Definition at line 47 of file sockethandler.h.


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