summaryrefslogtreecommitdiff
path: root/src/websnap.h
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2009-12-17 18:22:23 +0100
committermatgic78 <matgic78@gmail.com>2010-02-06 11:22:46 +0100
commit8343d45f3dfd631a3f5ac4213918f285930eb446 (patch)
tree8ec95f3f7b2c97ca6bf02ae70d8654011b72a99a /src/websnap.h
parentQPointers --> QWeakPointers (diff)
downloadrekonq-8343d45f3dfd631a3f5ac4213918f285930eb446.tar.xz
Re-implemented previews in homepage without using plugins. Not finished yet :
Little things that change: -nice buttons appearing on hover -transitions on hover TODO: -when a preview is empty or when loading, it is very ugly -for now there's no way to choose the page you want to preview -port "closed Tabs" to this new architecture -totally remove PreviewImage classes -eventually, specific contextmenu for previews
Diffstat (limited to 'src/websnap.h')
-rw-r--r--src/websnap.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/websnap.h b/src/websnap.h
index 6c5b4af9..04fded57 100644
--- a/src/websnap.h
+++ b/src/websnap.h
@@ -51,18 +51,26 @@ public:
WebSnap(const QUrl &url);
~WebSnap();
- QPixmap previewImage();
+ QPixmap previewImage(); // TODO : remove
+
static QPixmap renderPreview(const QWebPage &page, int w, int h);
+ static KUrl fileForUrl(KUrl url);
+
+ static QString guessNameFromUrl(QUrl url);
+
QString snapTitle();
QUrl snapUrl();
+
+ void SetData(QVariant data);
+ QVariant& data();
signals:
void finished();
private slots:
void load();
- void saveResult(bool ok);
+ void saveResult(bool ok = true);
private:
QWebPage m_page;
@@ -70,6 +78,8 @@ private:
QUrl m_url;
QString m_snapTitle;
+
+ QVariant m_data;
};
#endif // WEB_SNAP_H