• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • dnssd
 

dnssd

  • dnssd
servicebase.h
1/* This file is part of the KDE project
2 *
3 * Copyright (C) 2004 Jakub Stachowski <qbast@go2.pl>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef DNSSDSERVICEBASE_H
22#define DNSSDSERVICEBASE_H
23
24#include <tqmap.h>
25#include <ksharedptr.h>
26
27class TQString;
28class TQDataStream;
29namespace DNSSD
30{
31class ServiceBasePrivate;
32
40class TDEDNSSD_EXPORT ServiceBase : public TDEShared
41{
42public:
43 typedef TDESharedPtr<ServiceBase> Ptr;
44
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);
55
56 virtual ~ServiceBase();
57
61 const TQString& serviceName() const;
62
67 const TQString& type() const;
68
72 const TQString& domain() const;
73
77 const TQString& hostName() const;
78
82 unsigned short port() const;
83
87 const TQMap<TQString,TQString>& textData() const;
88
89protected:
90 TQString m_serviceName;
91 TQString m_type;
92 TQString m_domain;
93 TQString m_hostName;
94 unsigned short m_port;
95
99 TQMap<TQString,TQString> m_textData;
103 TQString encode();
108 void decode(const TQString& name);
109
110 friend TDEDNSSD_EXPORT TQDataStream & operator<< (TQDataStream & s, const ServiceBase & a);
111 friend TDEDNSSD_EXPORT TQDataStream & operator>> (TQDataStream & s, ServiceBase & a);
112
113 virtual void virtual_hook(int, void*);
114private:
115 ServiceBasePrivate* d;
116
117};
118
119}
120
121#endif
DNSSD::ServiceBase
This class is used to carry information about service.
Definition: servicebase.h:41
DNSSD::ServiceBase::m_textData
TQMap< TQString, TQString > m_textData
Map of TXT properties.
Definition: servicebase.h:99

dnssd

Skip menu "dnssd"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

dnssd

Skip menu "dnssd"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for dnssd by doxygen 1.9.4
This website is maintained by Timothy Pearson.