X-Git-Url: http://git.maemo.org/git/?p=qtrapids;a=blobdiff_plain;f=src%2Fengine%2FQBittorrentSession.h;h=ac2fa8cd42b01ab6ec845d0b702188faa16012e1;hp=9cf5381cac98d5f1b5ed212bf02c78a3302b4cbb;hb=4fda70ff265b1a5a1f37597f57253272a2b22fbf;hpb=08828f51a534f17235944d186b8f1b0c69696e1b diff --git a/src/engine/QBittorrentSession.h b/src/engine/QBittorrentSession.h index 9cf5381..ac2fa8c 100644 --- a/src/engine/QBittorrentSession.h +++ b/src/engine/QBittorrentSession.h @@ -40,31 +40,36 @@ typedef libtorrent::torrent_alert TorrentAlert; typedef libtorrent::sha1_hash Sha1Hash; +namespace qtrapids +{ + /** @author Lassi Väätämöinen */ -class QBittorrentSession : public QObject { +class QBittorrentSession : public QObject +{ Q_OBJECT // class BitTorrentSession; - - public: - QBittorrentSession(QObject *parent = 0); - ~QBittorrentSession(); - - /// @brief Add torrent to session. - QTorrentHandle addTorrent(AddTorrentParams const& params); - void removeTorrent(QTorrentHandle const& handle); - - signals: - void alert(std::auto_ptr al); - - private slots: - void on_alert(Alert const *al); - - private: - TorrentSession btSession_; - AlertWaiterThread *alertWaiter_; - + +public: + QBittorrentSession(QObject *parent = 0); + ~QBittorrentSession(); + + /// @brief Add torrent to session. + qtrapids::QTorrentHandle addTorrent(AddTorrentParams const& params); + void removeTorrent(qtrapids::QTorrentHandle const& handle); + +signals: + void alert(std::auto_ptr al); + +private slots: + void on_alert(Alert const *al); + +private: + TorrentSession btSession_; + AlertWaiterThread *alertWaiter_; + }; +} //namespace qtrapids #endif