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

dnssd

  • dnssd
sdevent.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 DNSSDSDEVENT_H
22#define DNSSDSDEVENT_H
23
24#include <tqevent.h>
25#include <tqstring.h>
26#include <tqmap.h>
27
28namespace DNSSD
29{
30
31enum Operation { SD_ERROR = 101,SD_ADDREMOVE, SD_PUBLISH, SD_RESOLVE};
32
33class ErrorEvent : public TQCustomEvent
34{
35public:
36 ErrorEvent() : TQCustomEvent(TQEvent::User+SD_ERROR)
37 {}
38};
39class AddRemoveEvent : public TQCustomEvent
40{
41public:
42 enum Operation { Add, Remove };
43 AddRemoveEvent(Operation op,const TQString& name,const TQString& type,
44 const TQString& domain) : TQCustomEvent(TQEvent::User+SD_ADDREMOVE),
45 m_op(op), m_name(name), m_type(type), m_domain(domain)
46 {}
47
48 const Operation m_op;
49 const TQString m_name;
50 const TQString m_type;
51 const TQString m_domain;
52};
53
54class PublishEvent : public TQCustomEvent
55{
56public:
57 PublishEvent(bool ok) : TQCustomEvent(TQEvent::User+SD_PUBLISH), m_ok(ok)
58 {}
59
60 bool m_ok;
61};
62
63class ResolveEvent : public TQCustomEvent
64{
65public:
66 ResolveEvent(const TQString& hostname, unsigned short port,
67 const TQMap<TQString,TQString>& txtdata)
68 : TQCustomEvent(TQEvent::User+SD_RESOLVE), m_hostname(hostname),
69 m_port(port), m_txtdata(txtdata)
70 {}
71
72 const TQString m_hostname;
73 const unsigned short m_port;
74 const TQMap<TQString,TQString> m_txtdata;
75};
76
77
78}
79
80#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
  •   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.