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

#include <libmythupnp/upnptasksearch.h>

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

Public Member Functions

 UPnpSearchTask (int nServicePort, const 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
 
std::chrono::seconds m_nMaxAge {1h}
 
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 41 of file upnptasksearch.h.

Constructor & Destructor Documentation

◆ ~UPnpSearchTask()

UPnpSearchTask::~UPnpSearchTask ( )
overrideprotecteddefault

◆ UPnpSearchTask()

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

Definition at line 48 of file upnptasksearch.cpp.

Member Function Documentation

◆ ProcessDevice()

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

Definition at line 201 of file upnptasksearch.cpp.

Referenced by Execute().

◆ SendMsg()

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

Definition at line 67 of file upnptasksearch.cpp.

Referenced by Execute(), and ProcessDevice().

◆ Name()

QString UPnpSearchTask::Name ( )
inlineoverridevirtual

Implements Task.

Definition at line 74 of file upnptasksearch.h.

◆ Execute()

void UPnpSearchTask::Execute ( TaskQueue pQueue)
overridevirtual

Implements Task.

Definition at line 161 of file upnptasksearch.cpp.

Member Data Documentation

◆ m_addressList

QList<QHostAddress> UPnpSearchTask::m_addressList
protected

Definition at line 45 of file upnptasksearch.h.

Referenced by Execute().

◆ m_nServicePort

int UPnpSearchTask::m_nServicePort
protected

Definition at line 46 of file upnptasksearch.h.

Referenced by SendMsg().

◆ m_nMaxAge

std::chrono::seconds UPnpSearchTask::m_nMaxAge {1h}
protected

Definition at line 47 of file upnptasksearch.h.

Referenced by SendMsg(), and UPnpSearchTask().

◆ m_peerAddress

QHostAddress UPnpSearchTask::m_peerAddress
protected

Definition at line 49 of file upnptasksearch.h.

Referenced by SendMsg().

◆ m_nPeerPort

int UPnpSearchTask::m_nPeerPort
protected

Definition at line 50 of file upnptasksearch.h.

Referenced by SendMsg().

◆ m_sST

QString UPnpSearchTask::m_sST
protected

Definition at line 51 of file upnptasksearch.h.

Referenced by Execute().

◆ m_sUDN

QString UPnpSearchTask::m_sUDN
protected

Definition at line 52 of file upnptasksearch.h.

Referenced by Execute().


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