21 #ifndef DNSSDSDEVENT_H
22 #define DNSSDSDEVENT_H
31 enum Operation { SD_ERROR = 101,SD_ADDREMOVE, SD_PUBLISH, SD_RESOLVE};
33 class ErrorEvent :
public TQCustomEvent
36 ErrorEvent() : TQCustomEvent(TQEvent::User+SD_ERROR)
39 class AddRemoveEvent :
public TQCustomEvent
42 enum Operation { Add, Remove };
43 AddRemoveEvent(Operation op,
const TQString& name,
const TQString& type,
44 const TQString& domain) : TQCustomEvent(TQEvent::User+SD_ADDREMOVE),
45 m_op(op), m_name(name), m_type(type), m_domain(domain)
49 const TQString m_name;
50 const TQString m_type;
51 const TQString m_domain;
54 class PublishEvent :
public TQCustomEvent
57 PublishEvent(
bool ok) : TQCustomEvent(TQEvent::User+SD_PUBLISH), m_ok(ok)
63 class ResolveEvent :
public TQCustomEvent
66 ResolveEvent(
const TQString& hostname,
unsigned short port,
67 const TQMap<TQString,TQString>& txtdata)
68 : TQCustomEvent(TQEvent::User+SD_RESOLVE), m_hostname(hostname),
69 m_port(port), m_txtdata(txtdata)
72 const TQString m_hostname;
73 const unsigned short m_port;
74 const TQMap<TQString,TQString> m_txtdata;