summaryrefslogtreecommitdiff
path: root/src/websnap.h
diff options
context:
space:
mode:
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