- Torrent addign and removal functional
[qtrapids] / src / gui / DownloadView.h
index 80b5228..408a232 100644 (file)
@@ -42,13 +42,17 @@ Q_OBJECT
 
     ~DownloadView();
 
-               void newItem(QTorrentHandle const* handle);
-               void updateItem(QTorrentHandle const* handle);
+               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<Sha1Hash, DownloadViewItem*> items_;
+               std::map<QTorrentHandle, DownloadViewItem*> items_;
                
 };