#ifndef DOWNLOADVIEW_H
#define DOWNLOADVIEW_H
+#include <map>
+
#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
~DownloadView();
+ void newItem(QTorrentHandle const* handle);
+ void updateItem(QTorrentHandle const* handle);
+
private:
-
+ // Maps torrent to downloadview item.
+ // Key: SHA1 info hash of torrent. Data: View item corresponding to torrent.
+ std::map<Sha1Hash, DownloadViewItem*> items_;
+
};