21 #ifndef DNSSDSERVICEBASE_H
22 #define DNSSDSERVICEBASE_H
25 #include <ksharedptr.h>
31 class ServiceBasePrivate;
43 typedef TDESharedPtr<ServiceBase> Ptr;
52 ServiceBase(
const TQString& name=TQString::null,
const TQString& type=TQString::null,
53 const TQString& domain=TQString::null,
const TQString& host=TQString::null,
54 unsigned short port=0);
61 const TQString& serviceName()
const;
67 const TQString& type()
const;
72 const TQString& domain()
const;
77 const TQString& hostName()
const;
82 unsigned short port()
const;
87 const TQMap<TQString,TQString>& textData()
const;
90 TQString m_serviceName;
94 unsigned short m_port;
108 void decode(
const TQString& name);
110 friend TDEDNSSD_EXPORT TQDataStream & operator<< (TQDataStream & s,
const ServiceBase & a);
111 friend TDEDNSSD_EXPORT TQDataStream & operator>> (TQDataStream & s,
ServiceBase & a);
113 virtual void virtual_hook(
int,
void*);
115 ServiceBasePrivate* d;
This class is used to carry information about service.
TQMap< TQString, TQString > m_textData
Map of TXT properties.