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)
 
 ~BonjourRegister () override
 
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< QMutex > * 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 16 of file bonjourregister.cpp.

◆ ~BonjourRegister()

BonjourRegister::~BonjourRegister ( )
override

Definition at line 22 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 143 of file bonjourregister.cpp.

Referenced by MythAirplayServer::timeout().

◆ socketReadyRead

void BonjourRegister::socketReadyRead ( )
privateslot

Definition at line 88 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 96 of file bonjourregister.cpp.

Referenced by Register().

◆ RandomizeData()

QByteArray BonjourRegister::RandomizeData ( void  )
private

Definition at line 130 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 ReAnnounceService(), and ~BonjourRegister().

◆ m_type

QByteArray BonjourRegister::m_type

Definition at line 23 of file bonjourregister.h.

Referenced by ~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<QMutex>* BonjourRegister::m_lock {nullptr}
private

Definition at line 41 of file bonjourregister.h.

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

◆ g_lock

QMutex BonjourRegister::g_lock
staticprivate

Definition at line 43 of file bonjourregister.h.

Referenced by Register().

◆ m_data

QByteArray BonjourRegister::m_data
private

Definition at line 44 of file bonjourregister.h.

Referenced by RandomizeData(), and Register().


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