dolphin/konqueror/about/konq_aboutpage.h
David Faure 09a996300b Ported out of K_EXPORT_COMPONENT_FACTORY and KParts::Factory, to use K_PLUGIN_FACTORY instead.
Old factory was also used as singleton, made it one using K_GLOBAL_STATIC.
-> fixes another runtime warning.

svn path=/trunk/KDE/kdebase/apps/; revision=814246
2008-05-29 18:35:25 +00:00

51 lines
1.2 KiB
C++

#ifndef __konq_aboutpage_h__
#define __konq_aboutpage_h__
#include <khtml_part.h>
class KonqAboutPageSingleton
{
public:
KonqAboutPageSingleton();
~KonqAboutPageSingleton();
QString launch();
QString intro();
QString specs();
QString tips();
QString plugins();
private:
static QString loadFile( const QString& file );
QString m_launch_html, m_intro_html, m_specs_html, m_tips_html, m_plugins_html;
};
class KonqAboutPage : public KHTMLPart
{
Q_OBJECT
public:
KonqAboutPage(QWidget *parentWidget, QObject *parent, const QVariantList& args);
~KonqAboutPage();
virtual bool openUrl( const KUrl &url );
virtual bool openFile();
virtual void saveState( QDataStream &stream );
virtual void restoreState( QDataStream &stream );
protected:
virtual bool urlSelected( const QString &url, int button, int state, const QString &target,
const KParts::OpenUrlArguments& args = KParts::OpenUrlArguments(),
const KParts::BrowserArguments& browserArgs = KParts::BrowserArguments() );
private:
void serve( const QString&, const QString& );
KHTMLPart *m_doc;
QString m_htmlDoc;
QString m_what;
};
#endif