diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-05-13 12:05:06 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-05-15 09:53:43 +0200 |
commit | f56f2761ed68aee64fc334230e4fc34f1a7e2213 (patch) | |
tree | 2d974dd2cf9252190e42724fab16faccd288ef67 /src/downloadmanager.h | |
parent | Clean up NewTabPage API a bit (diff) | |
download | rekonq-f56f2761ed68aee64fc334230e4fc34f1a7e2213.tar.xz |
Improve downloads page
- remove from list (+ API for DownloadManager to save changes)
- open dir in extern app
- css
Diffstat (limited to 'src/downloadmanager.h')
-rw-r--r-- | src/downloadmanager.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/downloadmanager.h b/src/downloadmanager.h index c3a91939..7033ef6c 100644 --- a/src/downloadmanager.h +++ b/src/downloadmanager.h @@ -53,7 +53,8 @@ class REKONQ_TESTS_EXPORT DownloadManager : public QObject public: DownloadManager(QObject *parent = 0); - + ~DownloadManager(); + DownloadList downloads() const { return m_downloadList; @@ -66,15 +67,21 @@ public: void downloadLinksWithKGet(const QVariant &contentList); + void removeDownloadItem(int index); + +private: + void init(); + + DownloadItem* addDownload(const QString &srcUrl, const QString &destUrl); + Q_SIGNALS: void newDownloadAdded(QObject *item); void notifyDownload(const QString&, Rekonq::Notify = Rekonq::Download); private: - void init(); - DownloadItem* addDownload(const QString &srcUrl, const QString &destUrl); - DownloadList m_downloadList; + + bool m_needToSave; }; #endif // DOWNLOADMANAGER_H |