Plasma
webapplet.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef WEBAPPLET_H
00023 #define WEBAPPLET_H
00024
00025 #include <QUrl>
00026
00027 #include <Plasma/DataEngine>
00028 #include <Plasma/AppletScript>
00029
00030 class QWebFrame;
00031
00032 namespace Plasma
00033 {
00034 class WebView;
00035 }
00036
00037 class WebApplet : public Plasma::AppletScript
00038 {
00039 Q_OBJECT
00040 public:
00041 WebApplet(QObject *parent, const QVariantList &args);
00042 ~WebApplet();
00043
00044 bool init();
00045
00046 protected:
00047 Plasma::WebView *view() const;
00048 void paintInterface(QPainter *painter,
00049 const QStyleOptionGraphicsItem *option,
00050 const QRect &contentsRect);
00051 virtual QByteArray dataFor(const QString &str);
00052 Plasma::WebView* page();
00053 bool loaded();
00054
00055 protected slots:
00056 void connectFrame(QWebFrame *);
00057 virtual void loadFinished(bool);
00058 virtual void initJsObjects();
00059
00060 private:
00061 class Private;
00062 Private *const d;
00063 };
00064
00065 #endif