Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
dnssd
dnssd
dnssd
domainbrowser.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 DNSSDDOMAINBROWSER_H
22
#define DNSSDDOMAINBROWSER_H
23
24
#include <tqobject.h>
25
#include <tqdict.h>
26
#include <dnssd/remoteservice.h>
27
28
// KIPC message ID used by kcm module to signal change in browsing domains list
29
30
#define KIPCDomainsChanged 2014
31
32
class
TQStringList;
33
namespace
DNSSD
34
{
35
class
DomainBrowserPrivate;
36
41
class
KDNSSD_EXPORT
DomainBrowser
:
public
TQObject
42
{
43
Q_OBJECT
44
public
:
50
DomainBrowser
(TQObject *parent=0);
51
60
DomainBrowser
(
const
TQStringList& domains,
bool
recursive=
false
, TQObject *parent=0);
61
62
~
DomainBrowser
();
63
67
const
TQStringList& domains()
const
;
68
72
void
startBrowse() ;
73
77
bool
isRunning()
const
;
78
79
signals:
83
void
domainRemoved(
const
TQString&);
88
void
domainAdded(
const
TQString&);
89
90
protected
:
91
virtual
void
virtual_hook(
int
,
void
*);
92
private
:
93
friend
class
DomainBrowserPrivate;
94
DomainBrowserPrivate *d;
95
96
void
gotNewDomain(
const
TQString&);
97
void
gotRemoveDomain(
const
TQString&);
98
99
private
slots:
100
void
domainListChanged(
int
,
int
);
101
};
102
103
}
104
105
#endif
DNSSD::DomainBrowser
Class used to provide current list of domains for browsing.
Definition:
domainbrowser.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
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