1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

- beta4 release

This commit is contained in:
Christophe Dumez 2007-08-04 06:23:44 +00:00
parent ff756a2b1f
commit b702bea806
5 changed files with 14 additions and 12 deletions

3
TODO
View File

@ -42,7 +42,7 @@
- Complete documentation and english translation - Complete documentation and english translation
- Windows port (Chris - Peerkoel) - Windows port (Chris - Peerkoel)
- Add checking icon to documentation - Add checking icon to documentation
* beta4 * beta5
- Translations update (IN PROGRESS) - Translations update (IN PROGRESS)
- make use of finishedChecking alert if hydri implements it - make use of finishedChecking alert if hydri implements it
- Clean up delayed progress column sorting code - Clean up delayed progress column sorting code
@ -53,6 +53,7 @@
- upload/download limit per torrent (Ticket #83) - upload/download limit per torrent (Ticket #83)
- double free or corruption on exit (Ticket #84) - double free or corruption on exit (Ticket #84)
- Crash due to simple_segregated_storage (Ticket #94) - Crash due to simple_segregated_storage (Ticket #94)
LANGUAGES UPDATED: LANGUAGES UPDATED:
- French *BETA3* - French *BETA3*
- English *BETA3* - English *BETA3*

View File

@ -90,15 +90,15 @@ bittorrent::~bittorrent(){
delete s; delete s;
} }
void bittorrent::setDownloadLimit(QString hash, int val){ void bittorrent::setDownloadLimit(QString hash, long val){
torrent_handle h = getTorrentHandle(hash); torrent_handle h = getTorrentHandle(hash);
if(h.is_valid()) if(h.is_valid())
h.set_download_limit(val); h.set_download_limit(val);
saveTorrentSpeedLimits(hash); saveTorrentSpeedLimits(hash);
} }
void bittorrent::setUploadLimit(QString hash, int val){ void bittorrent::setUploadLimit(QString hash, long val){
qDebug("Set upload limit rate to %d", val); qDebug("Set upload limit rate to %ld", val);
torrent_handle h = getTorrentHandle(hash); torrent_handle h = getTorrentHandle(hash);
if(h.is_valid()) if(h.is_valid())
h.set_upload_limit(val); h.set_upload_limit(val);
@ -762,7 +762,8 @@ void bittorrent::setListeningPortsRange(std::pair<unsigned short, unsigned short
// Set download rate limit // Set download rate limit
// -1 to disable // -1 to disable
void bittorrent::setDownloadRateLimit(int rate){ void bittorrent::setDownloadRateLimit(long rate){
qDebug("Setting a global download rate limit at %ld", rate);
s->set_download_rate_limit(rate); s->set_download_rate_limit(rate);
} }
@ -772,7 +773,7 @@ session* bittorrent::getSession() const{
// Set upload rate limit // Set upload rate limit
// -1 to disable // -1 to disable
void bittorrent::setUploadRateLimit(int rate){ void bittorrent::setUploadRateLimit(long rate){
s->set_upload_rate_limit(rate); s->set_upload_rate_limit(rate);
} }

View File

@ -112,8 +112,8 @@ class bittorrent : public QObject{
// Session configuration - Setters // Session configuration - Setters
void setListeningPortsRange(std::pair<unsigned short, unsigned short> ports); void setListeningPortsRange(std::pair<unsigned short, unsigned short> ports);
void setMaxConnections(int maxConnec); void setMaxConnections(int maxConnec);
void setDownloadRateLimit(int rate); void setDownloadRateLimit(long rate);
void setUploadRateLimit(int rate); void setUploadRateLimit(long rate);
void setGlobalRatio(float ratio); void setGlobalRatio(float ratio);
void setDHTPort(int dht_port); void setDHTPort(int dht_port);
void setProxySettings(proxy_settings proxySettings, bool trackers=true, bool peers=true, bool web_seeds=true, bool dht=true); void setProxySettings(proxy_settings proxySettings, bool trackers=true, bool peers=true, bool web_seeds=true, bool dht=true);
@ -121,8 +121,8 @@ class bittorrent : public QObject{
void setDefaultSavePath(QString savepath); void setDefaultSavePath(QString savepath);
void applyEncryptionSettings(pe_settings se); void applyEncryptionSettings(pe_settings se);
void loadFilesPriorities(torrent_handle& h); void loadFilesPriorities(torrent_handle& h);
void setDownloadLimit(QString hash, int val); void setDownloadLimit(QString hash, long val);
void setUploadLimit(QString hash, int val); void setUploadLimit(QString hash, long val);
protected slots: protected slots:
void scanDirectory(); void scanDirectory();

View File

@ -665,7 +665,7 @@ bool options_imp::isDHTEnabled() const{
bool options_imp::isPeXDisabled() const{ bool options_imp::isPeXDisabled() const{
return disablePeX->isChecked(); return disablePeX->isChecked();
} }
// Return Download & Upload limits // Return Download & Upload limits in kbps
// [download,upload] // [download,upload]
QPair<int,int> options_imp::getLimits() const{ QPair<int,int> options_imp::getLimits() const{
int DL = -1, UP = -1; int DL = -1, UP = -1;

View File

@ -11,7 +11,7 @@ TARGET = qbittorrent
CONFIG += qt thread x11 network CONFIG += qt thread x11 network
# Update this VERSION for each release # Update this VERSION for each release
DEFINES += VERSION=\\\"v1.0.0beta3\\\" DEFINES += VERSION=\\\"v1.0.0beta4\\\"
DEFINES += VERSION_MAJOR=1 DEFINES += VERSION_MAJOR=1
DEFINES += VERSION_MINOR=0 DEFINES += VERSION_MINOR=0
DEFINES += VERSION_BUGFIX=0 DEFINES += VERSION_BUGFIX=0