Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / konqueror / about / konq_aboutpage.h
blobb6090274aa57cc1059df82b017c8217fa9121bf6
1 #ifndef __konq_aboutpage_h__
2 #define __konq_aboutpage_h__
4 #include <khtml_part.h>
6 class KonqAboutPageSingleton
8 public:
9 KonqAboutPageSingleton();
10 ~KonqAboutPageSingleton();
12 QString launch();
13 QString intro();
14 QString specs();
15 QString tips();
16 QString plugins();
18 private:
19 static QString loadFile( const QString& file );
21 QString m_launch_html, m_intro_html, m_specs_html, m_tips_html, m_plugins_html;
24 class KonqAboutPage : public KHTMLPart
26 Q_OBJECT
27 public:
28 KonqAboutPage(QWidget *parentWidget, QObject *parent, const QVariantList& args);
29 ~KonqAboutPage();
31 virtual bool openUrl( const KUrl &url );
33 virtual bool openFile();
35 virtual void saveState( QDataStream &stream );
36 virtual void restoreState( QDataStream &stream );
38 protected:
39 virtual bool urlSelected( const QString &url, int button, int state, const QString &target,
40 const KParts::OpenUrlArguments& args = KParts::OpenUrlArguments(),
41 const KParts::BrowserArguments& browserArgs = KParts::BrowserArguments() );
43 private:
44 void serve( const QString&, const QString& );
46 KHTMLPart *m_doc;
47 QString m_htmlDoc;
48 QString m_what;
51 #endif