diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-07-21 13:04:14 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-07-21 13:04:14 +0200 |
commit | 644c7c8c062228c760b490838748c5f14547ff1c (patch) | |
tree | 624769f17e4a250712776eaeb095ac3585877066 /src/application.h | |
parent | Don't hide the bookmarks toolbar by default (diff) | |
download | rekonq-644c7c8c062228c760b490838748c5f14547ff1c.tar.xz |
Moving download history management from HistoryManager to Application class
It's actually the same, but probably a bit more coherent.
More over, we are going to change a lot of things in the HistoryManager class...
Diffstat (limited to 'src/application.h')
-rw-r--r-- | src/application.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/application.h b/src/application.h index 7b58ab18..18c99afb 100644 --- a/src/application.h +++ b/src/application.h @@ -56,6 +56,38 @@ class WebView; typedef QList< QWeakPointer<MainWindow> > MainWindowList; +// --------------------------------------------------------------------------------------------------------------- + + +#include <QDateTime> + + +class DownloadItem +{ +public: + DownloadItem() {} + explicit DownloadItem(const QString &srcUrl, + const QString &destUrl, + const QDateTime &d + ) + : srcUrlString(srcUrl) + , destUrlString(destUrl) + , dateTime(d) + {} + + QString srcUrlString; + QString destUrlString; + QDateTime dateTime; +}; + + +typedef QList<DownloadItem> DownloadList; + + +// --------------------------------------------------------------------------------------------------------------- + + + /** * */ @@ -80,6 +112,11 @@ public: static SessionManager *sessionManager(); static AdBlockManager *adblockManager(); + // DOWNLOADS MANAGEMENT METHODS + void addDownload(const QString &srcUrl, const QString &destUrl); + DownloadList downloads(); + bool clearDownloadsHistory(); + public slots: /** * Save application's configuration |