- Uncommitted files
[qtrapids] / src / engine / QBittorrentSession.h
index ac2fa8c..badae43 100644 (file)
@@ -34,6 +34,7 @@
 // Forward declarations and typedefs
 class AlertWaiterThread;
 typedef libtorrent::session TorrentSession;
+typedef libtorrent::session_settings SessionSettings;
 typedef libtorrent::add_torrent_params AddTorrentParams;
 typedef libtorrent::alert Alert;
 typedef        libtorrent::torrent_alert TorrentAlert;
@@ -59,6 +60,11 @@ public:
        qtrapids::QTorrentHandle addTorrent(AddTorrentParams const& params);
        void removeTorrent(qtrapids::QTorrentHandle const& handle);
 
+       void setUploadRateLimit(int rate);
+       void setDownloadrateLimit(int rate);
+       int getUploadRateLimt() const;
+       int getDownloadRateLimit() const;
+       
 signals:
        void alert(std::auto_ptr<Alert> al);