• 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 
27 class TQString;
28 class TQDataStream;
29 namespace DNSSD
30 {
31 class ServiceBasePrivate;
32 
40 class KDNSSD_EXPORT ServiceBase : public KShared
41 {
42 public:
43  typedef KSharedPtr<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 
89 protected:
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 KDNSSD_EXPORT TQDataStream & operator<< (TQDataStream & s, const ServiceBase & a);
111  friend KDNSSD_EXPORT TQDataStream & operator>> (TQDataStream & s, ServiceBase & a);
112 
113  virtual void virtual_hook(int, void*);
114 private:
115  ServiceBasePrivate* d;
116 
117 };
118 
119 }
120 
121 #endif

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
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for dnssd by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |