remoteservice.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef DNSSDREMOTESERVICE_H
00022
#define DNSSDREMOTESERVICE_H
00023
00024
#include <qobject.h>
00025
#include <dnssd/servicebase.h>
00026
00027
class QDataStream;
00028
namespace DNSSD
00029 {
00030
class RemoteServicePrivate;
00031
00041 class KDNSSD_EXPORT RemoteService :
public QObject,
public ServiceBase
00042 {
00043 Q_OBJECT
00044
public:
00045
typedef KSharedPtr<RemoteService> Ptr;
00046
00052 RemoteService(
const QString& label);
00053
00057 RemoteService(
const QString& name,
const QString& type,
const QString& domain);
00058
00059
virtual ~RemoteService();
00060
00066
void resolveAsync();
00067
00073
bool resolve();
00074
00078
bool isResolved()
const;
00079
00080 signals:
00086
void resolved(
bool);
00087
00088
protected:
00089
virtual void virtual_hook(
int id,
void *data);
00090
virtual void customEvent(
QCustomEvent* event);
00091
private:
00092
void resolveError();
00093
void resolved(
const char *host,
unsigned short port,
unsigned short txtlen,
00094
const char* txtRecord);
00095 RemoteServicePrivate *d;
00096
00097
friend KDNSSD_EXPORT
QDataStream & operator<< (
QDataStream & s,
const RemoteService & a);
00098
friend KDNSSD_EXPORT
QDataStream & operator>> (
QDataStream & s, RemoteService & a);
00099
00100 };
00101
00102 }
00103
00104
#endif
This file is part of the documentation for dnssd Library Version 3.4.0.