responder.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef DNSSDRESPONDER_H
00022
#define DNSSDRESPONDER_H
00023
00024
#include <qobject.h>
00025
#include <qsocketnotifier.h>
00026
#include <qsignal.h>
00027
#include <config.h>
00028
#ifdef HAVE_DNSSD
00029
#include <dns_sd.h>
00030
#else
00031
#define DNSServiceRef void*
00032
#endif
00033
00034
namespace DNSSD
00035 {
00036
00043 class Responder :
public QObject
00044 {
00045 Q_OBJECT
00046
00047
public:
00048
Responder(DNSServiceRef ref=0,
QObject *parent = 0,
const char *name = 0);
00049
00050 ~
Responder();
00051
00056
bool isRunning()
const;
00057
void setRef(DNSServiceRef ref);
00058
void stop();
00059
public slots:
00060
void process();
00061
protected:
00062 DNSServiceRef m_ref;
00063
bool m_running;
00064
QSocketNotifier *m_socket;
00065 };
00066
00067
00068
00069
bool domainIsLocal(
const QString& domain);
00070
00071
QCString domainToDNS(
const QString &domain);
00072
QString DNSToDomain(
const char* domain);
00073
00074 }
00075
00076
#endif
This file is part of the documentation for dnssd Library Version 3.4.0.