- Namespaced QBittorrentSession and QTorrentHandle to avoid possible future conflicts
[qtrapids] / src / engine / QBittorrentSession.h
index 9cf5381..7d2ea43 100644 (file)
@@ -40,6 +40,8 @@ typedef       libtorrent::torrent_alert TorrentAlert;
 typedef libtorrent::sha1_hash Sha1Hash;
 
 
+namespace qtrapids {
+
 /**
        @author Lassi Väätämöinen <lassi.vaatamoinen@ixonos.com>
 */
@@ -52,8 +54,8 @@ class QBittorrentSession : public QObject {
     ~QBittorrentSession();
                
                /// @brief Add torrent to session.
-               QTorrentHandle addTorrent(AddTorrentParams const& params);
-               void removeTorrent(QTorrentHandle const& handle);
+               qtrapids::QTorrentHandle addTorrent(AddTorrentParams const& params);
+               void removeTorrent(qtrapids::QTorrentHandle const& handle);
                
        signals:
                void alert(std::auto_ptr<Alert> al);
@@ -67,4 +69,5 @@ class QBittorrentSession : public QObject {
                
 };
 
+} //namespace qtrapids
 #endif