Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
tdecore
tdecore
tdecore
kprotocolinfofactory.h
1
/* This file is part of the KDE libraries
2
Copyright (C) 1999 Torben Weis <weis@kde.org>
3
Copyright (C) 2000,2003 Waldo Bastian <bastian@kde.org>
4
5
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Library General Public
8
License version 2 as published by the Free Software Foundation.
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
#ifndef __kprotocolinfofactory_h__
21
#define __kprotocolinfofactory_h__
22
23
#include "../tdeio/tdeio/kprotocolinfo.h"
24
25
#include <tqmap.h>
26
#include <tqstring.h>
27
#include <tqstringlist.h>
28
#include <kurl.h>
29
#include <tdesycocafactory.h>
30
31
class
KProtocolInfoPrivate;
32
40
class
TDECORE_EXPORT
KProtocolInfoFactory
:
public
KSycocaFactory
41
{
42
K_SYCOCAFACTORY( KST_KProtocolInfoFactory )
43
public
:
48
static
KProtocolInfoFactory
*
self
()
49
{
if
( !_self)
new
KProtocolInfoFactory
();
return
_self; }
51
KProtocolInfoFactory
();
52
virtual
~
KProtocolInfoFactory
();
53
54
/*
55
* Returns protocol info for @p protocol.
56
*
57
* Does not take proxy settings into account.
58
* @param protocol the protocol to search for
59
* @return the pointer to the KProtocolInfo, or 0 if not found
60
*/
61
KProtocolInfo *findProtocol(
const
TQString &protocol);
62
67
TQStringList protocols();
68
protected
:
69
73
virtual
KSycocaEntry
*createEntry(
const
TQString &,
const
char
*)
74
{
return
0; }
75
79
virtual
KProtocolInfo *createEntry(
int
offset);
80
81
protected
:
82
static
KProtocolInfoFactory
*_self;
83
84
TQMap<TQString,KProtocolInfo::Ptr> m_cache;
85
protected
:
86
virtual
void
virtual_hook(
int
id
,
void
* data );
87
private
:
88
class
KProtocolInfoFactoryPrivate* d;
89
};
90
91
#endif
KProtocolInfoFactory
KProtocolInfoFactory is a factory for getting KProtocolInfo.
Definition:
kprotocolinfofactory.h:41
KSycocaEntry
Base class for all Sycoca entries.
Definition:
tdesycocaentry.h:38
tdecore
Skip menu "tdecore"
Main Page
Modules
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
tdecore
Skip menu "tdecore"
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