khtml_factory.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __khtml_factory_h__
00021 #define __khtml_factory_h__
00022
00023 #include <kparts/factory.h>
00024 #include <kparts/historyprovider.h>
00025 #include <qptrlist.h>
00026 #include <kurl.h>
00027
00028 class KInstance;
00029 class KAboutData;
00030 class HistoryProvider;
00031 class KHTMLSettings;
00032 class KHTMLPart;
00033
00034 class KHTMLFactory : public KParts::Factory
00035 {
00036 Q_OBJECT
00037 public:
00038 KHTMLFactory( bool clone = false );
00039 virtual ~KHTMLFactory();
00040
00041 virtual KParts::Part *createPartObject( QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, const char *className, const QStringList &args );
00042
00043 static void registerPart( KHTMLPart *part );
00044 static void deregisterPart( KHTMLPart *part );
00045
00046 static QPtrList<KHTMLPart> *partList() { return s_parts; }
00047
00048 static KInstance *instance();
00049
00050 static KHTMLSettings *defaultHTMLSettings();
00051
00052
00053 static KParts::HistoryProvider *vLinks() {
00054 return KParts::HistoryProvider::self();
00055 }
00056
00057 protected:
00058 static void ref();
00059 static void deref();
00060 private:
00061 static unsigned long s_refcnt;
00062 static KHTMLFactory *s_self;
00063 static KInstance *s_instance;
00064 static KAboutData *s_about;
00065 static KHTMLSettings *s_settings;
00066 static QPtrList<KHTMLPart> *s_parts;
00067 };
00068
00069 #endif
This file is part of the documentation for kdelibs Version 3.1.0.