- corrected makefile
[qtrapids] / src / gui / DownloadView.h
index f3d43c5..408a232 100644 (file)
 #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
@@ -34,8 +42,18 @@ Q_OBJECT
 
     ~DownloadView();
 
+               void newItem(QTorrentHandle handle);
+               void updateItem(QTorrentHandle handle);
+               QTorrentHandle removeSelected();
+               void removeItem(QTorrentHandle handle);
+               
+       private slots:
+               void on_itemClicked(QTreeWidgetItem * item, int column);
        private:
-
+               // Maps torrent to downloadview item.
+               // Key: SHA1 info hash of torrent. Data: View item corresponding to torrent.
+               std::map<QTorrentHandle, DownloadViewItem*> items_;
+               
 };