- Added buildconf.pri to hold the master-level build options.
[qtrapids] / src / gui / DownloadView.h
index 5ab1442..6fadb92 100644 (file)
@@ -27,6 +27,7 @@
 #include "QBittorrentSession.h"
 
 class DownloadViewItem;
+class QTimer;
 
 /**
        @class DownloadView
@@ -46,22 +47,29 @@ Q_OBJECT
                void updateItem(QTorrentHandle handle);
                QTorrentHandle removeSelected();
                void removeItem(QTorrentHandle handle);
+               void setRefreshInterval(int msec);
                
        private slots:
                void on_itemClicked(QTreeWidgetItem * item, int column);
+               void on_timeout();
+               
        private:
                // Maps torrent to downloadview item.
                // Key: SHA1 info hash of torrent. Data: View item corresponding to torrent.
                std::map<QTorrentHandle, DownloadViewItem*> items_;
+               QTimer *timer_;
                
                // Private functions.
                QString GetStatusString(QTorrentHandle::State const& status) const;
                QColor GetStatusColor(QTorrentHandle::State const& status) const;
+    void UpdateView();
+
+               
 };
 
 
 /**
-       @class DownloadViewItem
+       @class DownloadViewItem 
        @brief Represents one item row of DownloadView
 */
 class DownloadViewItem : public QTreeWidgetItem {