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

#include <upnptasknotify.h>

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

Public Member Functions

 UPnpNotifyTask (int nServicePort)
 
QString Name () override
 
void Execute (TaskQueue *) override
 
QString GetNTSString ()
 
UPnpNotifyNTS GetNTS ()
 
void SetNTS (UPnpNotifyNTS nts)
 
- 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

virtual ~UPnpNotifyTask ()=default
 
void ProcessDevice (MSocketDevice *pSocket, UPnpDevice *pDevice)
 
void SendNotifyMsg (MSocketDevice *pSocket, const QString &sNT, const QString &sUDN)
 
- Protected Member Functions inherited from Task
virtual ~Task ()=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

QMutex m_mutex
 
QString m_sMasterIP
 
int m_nServicePort
 
int m_nMaxAge {3600}
 
UPnpNotifyNTS m_eNTS {NTS_alive}
 
- 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 53 of file upnptasknotify.h.

Constructor & Destructor Documentation

◆ ~UPnpNotifyTask()

virtual UPnpNotifyTask::~UPnpNotifyTask ( )
protectedvirtualdefault

◆ UPnpNotifyTask()

UPnpNotifyTask::UPnpNotifyTask ( int  nServicePort)
explicit

Definition at line 43 of file upnptasknotify.cpp.

Member Function Documentation

◆ ProcessDevice()

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

Definition at line 179 of file upnptasknotify.cpp.

Referenced by Execute().

◆ SendNotifyMsg()

void UPnpNotifyTask::SendNotifyMsg ( MSocketDevice *  pSocket,
const QString &  sNT,
const QString &  sUDN 
)
protected

Definition at line 55 of file upnptasknotify.cpp.

Referenced by Execute(), and ProcessDevice().

◆ Name()

QString UPnpNotifyTask::Name ( void  )
inlineoverridevirtual

Implements Task.

Definition at line 78 of file upnptasknotify.h.

◆ Execute()

void UPnpNotifyTask::Execute ( TaskQueue pQueue)
overridevirtual

Implements Task.

Definition at line 139 of file upnptasknotify.cpp.

Referenced by SSDP::DisableNotifications(), and SSDP::EnableNotifications().

◆ GetNTSString()

QString UPnpNotifyTask::GetNTSString ( )
inline

Definition at line 83 of file upnptasknotify.h.

Referenced by SendNotifyMsg().

◆ GetNTS()

UPnpNotifyNTS UPnpNotifyTask::GetNTS ( )
inline

Definition at line 99 of file upnptasknotify.h.

◆ SetNTS()

void UPnpNotifyTask::SetNTS ( UPnpNotifyNTS  nts)
inline

Definition at line 110 of file upnptasknotify.h.

Referenced by SSDP::DisableNotifications(), and SSDP::EnableNotifications().

Member Data Documentation

◆ m_mutex

QMutex UPnpNotifyTask::m_mutex
protected

Definition at line 57 of file upnptasknotify.h.

Referenced by Execute(), GetNTS(), GetNTSString(), SendNotifyMsg(), and SetNTS().

◆ m_sMasterIP

QString UPnpNotifyTask::m_sMasterIP
protected

Definition at line 59 of file upnptasknotify.h.

◆ m_nServicePort

int UPnpNotifyTask::m_nServicePort
protected

Definition at line 60 of file upnptasknotify.h.

Referenced by SendNotifyMsg(), and UPnpNotifyTask().

◆ m_nMaxAge

int UPnpNotifyTask::m_nMaxAge {3600}
protected

Definition at line 61 of file upnptasknotify.h.

Referenced by Execute(), SendNotifyMsg(), and UPnpNotifyTask().

◆ m_eNTS

UPnpNotifyNTS UPnpNotifyTask::m_eNTS {NTS_alive}
protected

Definition at line 63 of file upnptasknotify.h.

Referenced by Execute(), GetNTS(), GetNTSString(), and SetNTS().


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