*/
class QBittorrentSession : public QObject
{
- Q_OBJECT
+ Q_OBJECT
// class BitTorrentSession;
public:
- QBittorrentSession(QObject *parent = 0);
- ~QBittorrentSession();
+ QBittorrentSession(QObject *parent = 0);
+ ~QBittorrentSession();
- /// @brief Add torrent to session.
- qtrapids::QTorrentHandle addTorrent(AddTorrentParams const& params);
- void removeTorrent(qtrapids::QTorrentHandle const& handle);
+ /// @brief Add torrent to session.
+ qtrapids::QTorrentHandle addTorrent(AddTorrentParams const& params);
+ void removeTorrent(qtrapids::QTorrentHandle const& handle);
signals:
- void alert(std::auto_ptr<Alert> al);
+ void alert(std::auto_ptr<Alert> al);
private slots:
- void on_alert(Alert const *al);
+ void on_alert(Alert const *al);
private:
- TorrentSession btSession_;
- AlertWaiterThread *alertWaiter_;
+ TorrentSession btSession_;
+ AlertWaiterThread *alertWaiter_;
};