X-Git-Url: http://git.maemo.org/git/?p=qtrapids;a=blobdiff_plain;f=src%2Fgui%2FDownloadView.h;h=80b5228a107e855d5dfbf08b866bf0f3ca112120;hp=f3d43c580e0002dba7a8ee4d8d1d74a59412da3b;hb=45e692ff47151854cc149c514d3a53285f0f195a;hpb=a287bad35d31bc51adaad80dea33f7573b688eaf diff --git a/src/gui/DownloadView.h b/src/gui/DownloadView.h index f3d43c5..80b5228 100644 --- a/src/gui/DownloadView.h +++ b/src/gui/DownloadView.h @@ -20,9 +20,17 @@ #ifndef DOWNLOADVIEW_H #define DOWNLOADVIEW_H +#include + #include +#include "QBittorrentSession.h" + +class DownloadViewItem; + /** + @class DownloadView + @brief A view showing all downloaded torrents @author Lassi Väätämöinen */ class DownloadView : public QTreeWidget @@ -34,8 +42,14 @@ Q_OBJECT ~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 items_; + };