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

kdecore

  • kdecore
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 "../kio/kio/kprotocolinfo.h"
24 
25 #include <tqmap.h>
26 #include <tqstring.h>
27 #include <tqstringlist.h>
28 #include <kurl.h>
29 #include <ksycocafactory.h>
30 
31 class KProtocolInfoPrivate;
32 
40 class KDECORE_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

kdecore

Skip menu "kdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdecore

Skip menu "kdecore"
  • 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 kdecore by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |