MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
UPnpSearchTask Class Reference

#include <upnptasksearch.h>

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

Public Member Functions

 UPnpSearchTask (int nServicePort, QHostAddress peerAddress, int nPeerPort, QString sST, QString sUDN)
 
QString Name () override
 
void Execute (TaskQueue *pQueue) override
 
- Public Member Functions inherited from Task
 Task (const QString &debugName)
 
long Id () const
 
- 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...
 

Protected Member Functions

 ~UPnpSearchTask () override=default
 
void ProcessDevice (MSocketDevice *pSocket, UPnpDevice *pDevice)
 
void SendMsg (MSocketDevice *pSocket, const QString &sST, const QString &sUDN)
 
- Protected Member Functions inherited from Task
 ~Task () override=default
 
- Protected Member Functions inherited from ReferenceCounter
virtual ~ReferenceCounter (void)
 Called on destruction, will warn if object deleted with references in place. More...
 

Protected Attributes

QList< QHostAddress > m_addressList
 
int m_nServicePort
 
int m_nMaxAge {3600}
 
QHostAddress m_peerAddress
 
int m_nPeerPort
 
QString m_sST
 
QString m_sUDN
 
- Protected Attributes inherited from Task
long m_nTaskId
 
- 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}
 

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...
 
- Static Protected Attributes inherited from Task
static long m_nTaskCount = 0
 

Detailed Description

Definition at line 40 of file upnptasksearch.h.

Constructor & Destructor Documentation

◆ ~UPnpSearchTask()

UPnpSearchTask::~UPnpSearchTask ( )
overrideprotecteddefault

◆ UPnpSearchTask()

UPnpSearchTask::UPnpSearchTask ( int  nServicePort,
QHostAddress  peerAddress,
int  nPeerPort,
QString  sST,
QString  sUDN 
)

Definition at line 43 of file upnptasksearch.cpp.

Member Function Documentation

◆ ProcessDevice()

void UPnpSearchTask::ProcessDevice ( MSocketDevice *  pSocket,
UPnpDevice pDevice 
)
protected

Definition at line 186 of file upnptasksearch.cpp.

Referenced by Execute().

◆ SendMsg()

void UPnpSearchTask::SendMsg ( MSocketDevice *  pSocket,
const QString &  sST,
const QString &  sUDN 
)
protected

Definition at line 63 of file upnptasksearch.cpp.

Referenced by Execute(), and ProcessDevice().

◆ Name()

QString UPnpSearchTask::Name ( )
inlineoverridevirtual

Implements Task.

Definition at line 73 of file upnptasksearch.h.

◆ Execute()

void UPnpSearchTask::Execute ( TaskQueue pQueue)
overridevirtual

Implements Task.

Definition at line 146 of file upnptasksearch.cpp.

Member Data Documentation

◆ m_addressList

QList<QHostAddress> UPnpSearchTask::m_addressList
protected

Definition at line 44 of file upnptasksearch.h.

Referenced by Execute(), and SendMsg().

◆ m_nServicePort

int UPnpSearchTask::m_nServicePort
protected

Definition at line 45 of file upnptasksearch.h.

Referenced by SendMsg(), and UPnpSearchTask().

◆ m_nMaxAge

int UPnpSearchTask::m_nMaxAge {3600}
protected

Definition at line 46 of file upnptasksearch.h.

Referenced by SendMsg(), and UPnpSearchTask().

◆ m_peerAddress

QHostAddress UPnpSearchTask::m_peerAddress
protected

Definition at line 48 of file upnptasksearch.h.

Referenced by SendMsg(), and UPnpSearchTask().

◆ m_nPeerPort

int UPnpSearchTask::m_nPeerPort
protected

Definition at line 49 of file upnptasksearch.h.

Referenced by SendMsg(), and UPnpSearchTask().

◆ m_sST

QString UPnpSearchTask::m_sST
protected

Definition at line 50 of file upnptasksearch.h.

Referenced by Execute(), and UPnpSearchTask().

◆ m_sUDN

QString UPnpSearchTask::m_sUDN
protected

Definition at line 51 of file upnptasksearch.h.

Referenced by Execute(), and UPnpSearchTask().


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