projects
/
qtrapids
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Torrent can be now opened and download starts
[qtrapids]
/
src
/
gui
/
DownloadView.h
diff --git
a/src/gui/DownloadView.h
b/src/gui/DownloadView.h
index
f3d43c5
..
80b5228
100644
(file)
--- a/
src/gui/DownloadView.h
+++ b/
src/gui/DownloadView.h
@@
-20,9
+20,17
@@
#ifndef DOWNLOADVIEW_H
#define DOWNLOADVIEW_H
#ifndef DOWNLOADVIEW_H
#define DOWNLOADVIEW_H
+#include <map>
+
#include <QTreeWidget>
#include <QTreeWidget>
+#include "QBittorrentSession.h"
+
+class DownloadViewItem;
+
/**
/**
+ @class DownloadView
+ @brief A view showing all downloaded torrents
@author Lassi Väätämöinen <lassi.vaatamoinen@ixonos.com>
*/
class DownloadView : public QTreeWidget
@author Lassi Väätämöinen <lassi.vaatamoinen@ixonos.com>
*/
class DownloadView : public QTreeWidget
@@
-34,8
+42,14
@@
Q_OBJECT
~DownloadView();
~DownloadView();
+ void newItem(QTorrentHandle const* handle);
+ void updateItem(QTorrentHandle const* handle);
+
private:
private:
-
+ // Maps torrent to downloadview item.
+ // Key: SHA1 info hash of torrent. Data: View item corresponding to torrent.
+ std::map<Sha1Hash, DownloadViewItem*> items_;
+
};
};