summaryrefslogtreecommitdiff
path: root/src/application.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-07-21 13:04:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-07-21 13:04:14 +0200
commit644c7c8c062228c760b490838748c5f14547ff1c (patch)
tree624769f17e4a250712776eaeb095ac3585877066 /src/application.h
parentDon't hide the bookmarks toolbar by default (diff)
downloadrekonq-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.h37
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