• 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
27class TQDataStream;
28class KURL;
29namespace DNSSD
30{
31class RemoteServicePrivate;
32
42class TDEDNSSD_EXPORT RemoteService : public TQObject, public ServiceBase
43{
44 TQ_OBJECT
45public:
46 typedef TDESharedPtr<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
87signals:
93 void resolved(bool);
94
95protected:
96 virtual void virtual_hook(int id, void *data);
97 virtual void customEvent(TQCustomEvent* event);
98private:
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 TDEDNSSD_EXPORT TQDataStream & operator<< (TQDataStream & s, const RemoteService & a);
105 friend TDEDNSSD_EXPORT TQDataStream & operator>> (TQDataStream & s, RemoteService & a);
106
107};
108
109}
110
111#endif
DNSSD::RemoteService
RemoteService class allows to resolve service announced on remote machine.
Definition: remoteservice.h:43
DNSSD::RemoteService::resolved
void resolved(bool)
Emitted when resolving is complete.
DNSSD::ServiceBase
This class is used to carry information about service.
Definition: servicebase.h:41

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.