MythTV  master
Public Member Functions | Public Attributes | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
BonjourRegister Class Reference

#include <bonjourregister.h>

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

Public Member Functions

 BonjourRegister (QObject *parent=nullptr)
 
virtual ~BonjourRegister ()
 
bool Register (uint16_t port, const QByteArray &type, const QByteArray &name, const QByteArray &txt)
 
bool ReAnnounceService (void)
 

Public Attributes

QByteArray m_name
 
QByteArray m_type
 

Private Slots

void socketReadyRead ()
 

Private Member Functions

QByteArray RandomizeData (void)
 

Static Private Member Functions

static void DNSSD_API BonjourCallback (DNSServiceRef ref, DNSServiceFlags flags, DNSServiceErrorType errorcode, const char *name, const char *type, const char *domain, void *object)
 

Private Attributes

DNSServiceRef m_dnssref {nullptr}
 
QSocketNotifier * m_socket {nullptr}
 
QMutexLocker * m_lock {nullptr}
 
QByteArray m_data
 

Static Private Attributes

static QMutex g_lock
 

Detailed Description

Definition at line 11 of file bonjourregister.h.

Constructor & Destructor Documentation

◆ BonjourRegister()

BonjourRegister::BonjourRegister ( QObject *  parent = nullptr)
explicit

Definition at line 13 of file bonjourregister.cpp.

◆ ~BonjourRegister()

BonjourRegister::~BonjourRegister ( )
virtual

Definition at line 19 of file bonjourregister.cpp.

Member Function Documentation

◆ Register()

bool BonjourRegister::Register ( uint16_t  port,
const QByteArray &  type,
const QByteArray &  name,
const QByteArray &  txt 
)

◆ ReAnnounceService()

bool BonjourRegister::ReAnnounceService ( void  )

Definition at line 142 of file bonjourregister.cpp.

Referenced by MythAirplayServer::timeout().

◆ socketReadyRead

void BonjourRegister::socketReadyRead ( )
privateslot

Definition at line 85 of file bonjourregister.cpp.

Referenced by Register().

◆ BonjourCallback()

void BonjourRegister::BonjourCallback ( DNSServiceRef  ref,
DNSServiceFlags  flags,
DNSServiceErrorType  errorcode,
const char *  name,
const char *  type,
const char *  domain,
void *  object 
)
staticprivate

Definition at line 93 of file bonjourregister.cpp.

Referenced by Register().

◆ RandomizeData()

QByteArray BonjourRegister::RandomizeData ( void  )
private

Definition at line 129 of file bonjourregister.cpp.

Referenced by ReAnnounceService().

Member Data Documentation

◆ m_name

QByteArray BonjourRegister::m_name

Definition at line 22 of file bonjourregister.h.

Referenced by BonjourCallback(), ReAnnounceService(), and ~BonjourRegister().

◆ m_type

QByteArray BonjourRegister::m_type

Definition at line 23 of file bonjourregister.h.

Referenced by BonjourCallback(), and ~BonjourRegister().

◆ m_dnssref

DNSServiceRef BonjourRegister::m_dnssref {nullptr}
private

Definition at line 36 of file bonjourregister.h.

Referenced by ReAnnounceService(), Register(), socketReadyRead(), and ~BonjourRegister().

◆ m_socket

QSocketNotifier* BonjourRegister::m_socket {nullptr}
private

Definition at line 37 of file bonjourregister.h.

Referenced by Register(), and ~BonjourRegister().

◆ m_lock

QMutexLocker* BonjourRegister::m_lock {nullptr}
private

Definition at line 38 of file bonjourregister.h.

Referenced by BonjourCallback(), Register(), and ~BonjourRegister().

◆ g_lock

QMutex BonjourRegister::g_lock
staticprivate

Definition at line 39 of file bonjourregister.h.

Referenced by Register().

◆ m_data

QByteArray BonjourRegister::m_data
private

Definition at line 40 of file bonjourregister.h.

Referenced by RandomizeData(), and Register().


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