ginebra2/PageSnippet.h
changeset 6 1c3b8676e58c
parent 5 0f2326c2a325
child 15 73c48011b8c7
--- a/ginebra2/PageSnippet.h	Wed Jun 23 17:59:43 2010 +0300
+++ b/ginebra2/PageSnippet.h	Tue Jul 06 14:03:49 2010 +0300
@@ -49,10 +49,13 @@
 public:
   PageSnippet(const QString & elementId, ChromeWidget * chrome,
               QGraphicsWidget * widget, const QWebElement & element);
+  ~PageSnippet();
+
+  static PageSnippet * instance(const QString& elementId, ChromeWidget * chrome, const QWebElement & element);
 
   // ChromeSnippet overrides:
   virtual void setVisible(bool visiblity, bool animate = true);
-  virtual void setWidget(QGraphicsWidget * widget);
+  virtual void setChromeWidget(QGraphicsWidget * widget);
 
   /// The URL of the web page.
   QString url() const;
@@ -78,13 +81,11 @@
   /// Destroys the web view, web page, etc. to free up memory.
   void cleanUp();
 
-private slots:
-  /// Called when the page has finished loading.
-  void onLoadFinished(bool ok);
-
 private:
   PageItem *pageItem();
   PageItem const *constPageItem() const;
+
+  ExternalEventCharm *m_externalEventCharm;
 };
 
 }