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

dnssd

  • dnssd
remoteservice.h
1 /* This file is part of the KDE project
2  *
3  * Copyright (C) 2004, 2005 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 DNSSDREMOTESERVICE_H
22 #define DNSSDREMOTESERVICE_H
23 
24 #include <tqobject.h>
25 #include <dnssd/servicebase.h>
26 
27 class TQDataStream;
28 class KURL;
29 namespace DNSSD
30 {
31 class RemoteServicePrivate;
32 
42 class KDNSSD_EXPORT RemoteService : public TQObject, public ServiceBase
43 {
44  Q_OBJECT
45 public:
46  typedef KSharedPtr<RemoteService> Ptr;
47 
53  RemoteService(const TQString& label);
54 
58  RemoteService(const TQString& name,const TQString& type,const TQString& domain);
59 
64  RemoteService(const KURL& url);
65 
66  virtual ~RemoteService();
67 
73  void resolveAsync();
74 
80  bool resolve();
81 
85  bool isResolved() const;
86 
87 signals:
93  void resolved(bool);
94 
95 protected:
96  virtual void virtual_hook(int id, void *data);
97  virtual void customEvent(TQCustomEvent* event);
98 private:
99  void resolveError();
100  void resolved(const char *host, unsigned short port, unsigned short txtlen,
101  const char* txtRecord);
102  RemoteServicePrivate *d;
103 
104  friend KDNSSD_EXPORT TQDataStream & operator<< (TQDataStream & s, const RemoteService & a);
105  friend KDNSSD_EXPORT TQDataStream & operator>> (TQDataStream & s, RemoteService & a);
106 
107 };
108 
109 }
110 
111 #endif
DNSSD::ServiceBase
This class is used to carry information about service.
Definition: servicebase.h:40
DNSSD::RemoteService
RemoteService class allows to resolve service announced on remote machine.
Definition: remoteservice.h:42
DNSSD
Definition: domainbrowser.cpp:36

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.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |