mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 09:13:08 -07:00
- Added some debug in bittorrent.cpp
- Added Legal Notice on qBittorrent startup "Be careful, sharing copyrighted material without permission is against the law." because of new DADVSI law.
This commit is contained in:
parent
341225aff4
commit
ef1f030076
2 changed files with 8 additions and 0 deletions
|
@ -187,6 +187,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent){
|
||||||
setAcceptDrops(true);
|
setAcceptDrops(true);
|
||||||
// Set info Bar infos
|
// Set info Bar infos
|
||||||
setInfoBar(tr("qBittorrent %1 started.", "e.g: qBittorrent v0.x started.").arg(QString(VERSION)));
|
setInfoBar(tr("qBittorrent %1 started.", "e.g: qBittorrent v0.x started.").arg(QString(VERSION)));
|
||||||
|
setInfoBar(tr("Be careful, sharing copyrighted material without permission is against the law."));
|
||||||
show();
|
show();
|
||||||
qDebug("GUI Built");
|
qDebug("GUI Built");
|
||||||
}
|
}
|
||||||
|
|
|
@ -588,6 +588,7 @@ void bittorrent::resumeAllTorrents(){
|
||||||
|
|
||||||
// Add uT PeX extension to bittorrent session
|
// Add uT PeX extension to bittorrent session
|
||||||
void bittorrent::enablePeerExchange(){
|
void bittorrent::enablePeerExchange(){
|
||||||
|
qDebug("Enabling Peer eXchange");
|
||||||
s->add_extension(&create_ut_pex_plugin);
|
s->add_extension(&create_ut_pex_plugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -603,21 +604,26 @@ void bittorrent::setDHTPort(int dht_port){
|
||||||
|
|
||||||
// Enable IP Filtering
|
// Enable IP Filtering
|
||||||
void bittorrent::enableIPFilter(ip_filter filter){
|
void bittorrent::enableIPFilter(ip_filter filter){
|
||||||
|
qDebug("Enabling IPFiler");
|
||||||
s->set_ip_filter(filter);
|
s->set_ip_filter(filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable IP Filtering
|
// Disable IP Filtering
|
||||||
void bittorrent::disableIPFilter(){
|
void bittorrent::disableIPFilter(){
|
||||||
|
qDebug("Disable IPFilter");
|
||||||
s->set_ip_filter(ip_filter());
|
s->set_ip_filter(ip_filter());
|
||||||
|
qDebug("IPFilter disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set BT session settings (user_agent)
|
// Set BT session settings (user_agent)
|
||||||
void bittorrent::setSessionSettings(session_settings sessionSettings){
|
void bittorrent::setSessionSettings(session_settings sessionSettings){
|
||||||
|
qDebug("Set session settings");
|
||||||
s->set_settings(sessionSettings);
|
s->set_settings(sessionSettings);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set Proxy
|
// Set Proxy
|
||||||
void bittorrent::setProxySettings(proxy_settings proxySettings, bool trackers, bool peers, bool web_seeds, bool dht){
|
void bittorrent::setProxySettings(proxy_settings proxySettings, bool trackers, bool peers, bool web_seeds, bool dht){
|
||||||
|
qDebug("Set Proxy settings");
|
||||||
if(trackers)
|
if(trackers)
|
||||||
s->set_tracker_proxy(proxySettings);
|
s->set_tracker_proxy(proxySettings);
|
||||||
if(peers)
|
if(peers)
|
||||||
|
@ -832,6 +838,7 @@ void bittorrent::saveDHTEntry(){
|
||||||
}
|
}
|
||||||
|
|
||||||
void bittorrent::applyEncryptionSettings(pe_settings se){
|
void bittorrent::applyEncryptionSettings(pe_settings se){
|
||||||
|
qDebug("Applying encryption settings");
|
||||||
s->set_pe_settings(se);
|
s->set_pe_settings(se);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue