21 #ifndef DNSSDPUBLICSERVICE_H
22 #define DNSSDPUBLICSERVICE_H
25 #include <dnssd/servicebase.h>
27 #include <avahi-client/client.h>
29 #define AvahiClientState void*
35 class PublicServicePrivate;
73 PublicService(
const TQString& name=TQString::null,
const TQString& type=TQString::null,
74 unsigned int port=0,
const TQString& domain=TQString::null);
93 bool isPublished()
const;
105 void setTextData(
const TQMap<TQString,TQString>& textData);
110 void setServiceName(
const TQString& serviceName);
116 void setType(
const TQString& type);
121 void setPort(
unsigned short port);
127 void setDomain(
const TQString& domain);
135 const KURL toInvitation(
const TQString& host=TQString::null);
144 PublicServicePrivate *d;
145 bool fillEntryGroup();
148 void clientState(AvahiClientState);
151 virtual void customEvent(TQCustomEvent* event);
152 virtual void virtual_hook(
int,
void*);
This class is most important for application that wants to announce its service on network.
void published(bool)
Emitted when publishing is complete - parameter is set to true if it was successfull.
This class is used to carry information about service.