mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 21:38:51 +03:00
931cfb6783
- Added Peer Exchange (PeX) - Display number of complete/incomplete sources in download list for each torrent - Updated version to v0.9.0beta1
25 lines
706 B
Text
25 lines
706 B
Text
/*
|
|
-----BEGIN QCMOD-----
|
|
name: libtorrent
|
|
-----END QCMOD-----
|
|
*/
|
|
class qc_libtorrent : public ConfObj
|
|
{
|
|
public:
|
|
qc_libtorrent(Conf *c) : ConfObj(c) {}
|
|
QString name() const { return "libtorrent >= 0.12"; }
|
|
QString shortname() const { return "libtorrent"; }
|
|
bool exec(){
|
|
QString s;
|
|
QStringList sl;
|
|
sl += "/usr/include";
|
|
sl += "/usr/local/include";
|
|
sl += "/sw/include";
|
|
if(!conf->findHeader("libtorrent/extensions/ut_pex.hpp", sl, &s)) {
|
|
qWarning("libtorrent v0.12 includes not found!\nYou can download it at http://www.libtorrent.net");
|
|
return false;
|
|
}
|
|
conf->addIncludePath(s);
|
|
return true;
|
|
}
|
|
};
|