- Torrent can be now opened and download starts
[qtrapids] / src / gui / SeedView.h
index 37d61e0..1410aa8 100644 (file)
 
 #include <QTreeWidget>
 
+#include "QBittorrentSession.h"
+
+class SeedViewItem;
+
 /**
        @author Lassi Väätämöinen <lassi.vaatamoinen@ixonos.com>
 */
@@ -32,8 +36,15 @@ Q_OBJECT
     SeedView(QWidget* parent);
 
     ~SeedView();
+               
+               void newItem(QTorrentHandle const* handle);
+               void updateItem(QTorrentHandle const* handle);
 
        private:
+               // Maps torrent to SeedView item.
+               // Key: SHA1 info hash of torrent. Data: View item corresponding to torrent.
+               std::map<Sha1Hash, SeedViewItem*> items_;
+
                        // Name
                // Size
                // Status