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
 
virtual void Execute (TaskQueue *pQueue)=0
 
virtual QString Name ()=0
 
- 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 (QUdpSocket &socket, const UPnpDevice &device)
 
void SendMsg (QUdpSocket &socket, 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

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 26 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 34 of file upnptasksearch.cpp.

Member Function Documentation

◆ Execute()

void UPnpSearchTask::Execute ( TaskQueue pQueue)
overridevirtual

Implements Task.

Definition at line 120 of file upnptasksearch.cpp.

◆ Name()

QString UPnpSearchTask::Name ( void  )
inlineoverridevirtual

Implements Task.

Definition at line 50 of file upnptasksearch.h.

◆ ProcessDevice()

void UPnpSearchTask::ProcessDevice ( QUdpSocket &  socket,
const UPnpDevice device 
)
protected

Definition at line 139 of file upnptasksearch.cpp.

Referenced by Execute(), and ProcessDevice().

◆ SendMsg()

void UPnpSearchTask::SendMsg ( QUdpSocket &  socket,
const QString &  sST,
const QString &  sUDN 
)
protected

Definition at line 49 of file upnptasksearch.cpp.

Referenced by Execute(), and ProcessDevice().

Member Data Documentation

◆ m_nMaxAge

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

Definition at line 30 of file upnptasksearch.h.

Referenced by SendMsg().

◆ m_nPeerPort

int UPnpSearchTask::m_nPeerPort
protected

Definition at line 33 of file upnptasksearch.h.

Referenced by SendMsg().

◆ m_nServicePort

int UPnpSearchTask::m_nServicePort
protected

Definition at line 29 of file upnptasksearch.h.

Referenced by SendMsg().

◆ m_peerAddress

QHostAddress UPnpSearchTask::m_peerAddress
protected

Definition at line 32 of file upnptasksearch.h.

Referenced by SendMsg().

◆ m_sST

QString UPnpSearchTask::m_sST
protected

Definition at line 34 of file upnptasksearch.h.

Referenced by Execute().

◆ m_sUDN

QString UPnpSearchTask::m_sUDN
protected

Definition at line 35 of file upnptasksearch.h.

Referenced by Execute().


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