kprotocolinfofactory.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __kprotocolinfofactory_h__
00021 #define __kprotocolinfofactory_h__
00022
00023 #include "kprotocolinfo.h"
00024 #include "ksycocafactory.h"
00025
00026 #include <qstring.h>
00027 #include <qstringlist.h>
00028 #include <kurl.h>
00029
00030 class KProtocolInfoPrivate;
00031
00032 class KProtocolInfoFactory : public KSycocaFactory
00033 {
00034 K_SYCOCAFACTORY( KST_KProtocolInfoFactory )
00035 public:
00036 static KProtocolInfoFactory* self()
00037 { if ( !_self) new KProtocolInfoFactory(); return _self; }
00038 KProtocolInfoFactory();
00039 virtual ~KProtocolInfoFactory();
00040
00041
00042
00043
00044
00045
00046 KProtocolInfo *findProtocol(const QString &protocol);
00047
00048
00049
00050
00051
00052
00053
00054
00055 KProtocolInfo *findProtocol(const KURL &url);
00056
00060 QStringList protocols();
00061 protected:
00062
00066 virtual KSycocaEntry *createEntry(const QString &, const char *)
00067 { return 0; }
00068
00072 virtual KProtocolInfo *createEntry(int offset);
00073
00074 protected:
00075
00076
00077 static KProtocolInfoFactory *_self;
00078
00079 QString m_lastProtocol;
00080 KProtocolInfo::Ptr m_lastInfo;
00081 protected:
00082 virtual void virtual_hook( int id, void* data );
00083 private:
00084 class KProtocolInfoFactoryPrivate* d;
00085 };
00086
00087 #endif
This file is part of the documentation for kdelibs Version 3.1.5.