- Namespaced QBittorrentSession and QTorrentHandle to avoid possible future conflicts
[qtrapids] / src / gui / DownloadView.h
index 6fadb92..cb300ba 100644 (file)
@@ -43,10 +43,10 @@ Q_OBJECT
 
     ~DownloadView();
 
-               void newItem(QTorrentHandle handle);
-               void updateItem(QTorrentHandle handle);
-               QTorrentHandle removeSelected();
-               void removeItem(QTorrentHandle handle);
+               void newItem(qtrapids::QTorrentHandle handle);
+               void updateItem(qtrapids::QTorrentHandle handle);
+               qtrapids::QTorrentHandle removeSelected();
+               void removeItem(qtrapids::QTorrentHandle handle);
                void setRefreshInterval(int msec);
                
        private slots:
@@ -56,12 +56,12 @@ Q_OBJECT
        private:
                // Maps torrent to downloadview item.
                // Key: SHA1 info hash of torrent. Data: View item corresponding to torrent.
-               std::map<QTorrentHandle, DownloadViewItem*> items_;
+               std::map<qtrapids::QTorrentHandle, DownloadViewItem*> items_;
                QTimer *timer_;
                
                // Private functions.
-               QString GetStatusString(QTorrentHandle::State const& status) const;
-               QColor GetStatusColor(QTorrentHandle::State const& status) const;
+               QString GetStatusString(qtrapids::QTorrentHandle::State const& status) const;
+               QColor GetStatusColor(qtrapids::QTorrentHandle::State const& status) const;
     void UpdateView();