X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fengine%2FQBittorrentSession.h;h=10f49e9e02b2d4a35df9447306266af38ef09f8d;hb=d27c2db830de9a65d6a419479ee598cbf3697746;hp=7d2ea436800a523e2e0de3e56ff87a860789c081;hpb=6c325f6d191739f115b2df64b7b83949e355e8d6;p=qtrapids diff --git a/src/engine/QBittorrentSession.h b/src/engine/QBittorrentSession.h index 7d2ea43..10f49e9 100644 --- a/src/engine/QBittorrentSession.h +++ b/src/engine/QBittorrentSession.h @@ -40,33 +40,35 @@ typedef libtorrent::torrent_alert TorrentAlert; typedef libtorrent::sha1_hash Sha1Hash; -namespace qtrapids { +namespace qtrapids +{ /** @author Lassi Väätämöinen */ -class QBittorrentSession : public QObject { - Q_OBJECT +class QBittorrentSession : public QObject +{ + Q_OBJECT // class BitTorrentSession; - - public: - QBittorrentSession(QObject *parent = 0); + +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_; - + + /// @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