Commit graph

226 commits

Author SHA1 Message Date
Christophe Dumez
6ed565a06b - COSMETIC: Improved progress bar text rendering 2007-10-13 08:32:31 +00:00
Christophe Dumez
bfab6389b5 - Commented fast resume rejected alert until #182 is fixed in libtorrent 2007-10-12 11:54:29 +00:00
Christophe Dumez
48f5436f6f - Improved ETA calculation code a little and fixed a little typo in the code
- Updated TODO (waiting for a bug fix in libtorrent)
2007-10-10 20:29:07 +00:00
Christophe Dumez
f754e34e35 - BUGFIX: Fixed possible overflow in ETA calculation 2007-10-10 19:57:24 +00:00
Christophe Dumez
0245bbf5ab - BUGFIX: Fixed an ETA calculation problem when the torrent has filtered files 2007-10-10 19:10:34 +00:00
Christophe Dumez
0a0c1f3529 - BUGFIX: AddInPause setting doesn't pause downloads on startup anymore (real fix this time...) 2007-10-10 17:54:09 +00:00
Christophe Dumez
a26333bc65 - BUGFIX: Now filtered don't appear on hard drive anymore (libtorrent >= r1659 REQUIRED)
- BUGFIX: AddInPause setting doesn't pause downloads on startup anymore
2007-10-10 17:34:52 +00:00
Christophe Dumez
4f25e6c769 - Another attempt to fix compilation on FreeBSD
- Fixed IP Filter preferences (closes #147532)
2007-10-01 09:47:00 +00:00
Christophe Dumez
f9998957cd - attempt to fix compilation on FreeBSD 2007-09-29 08:00:14 +00:00
Christophe Dumez
c0ffb8fa5c - BUGFIX: Fixed overflow in ratio 2007-09-21 07:45:28 +00:00
Christophe Dumez
da244d7ef2 - Added more debug when we get a file_error 2007-09-18 22:41:23 +00:00
Christophe Dumez
9062266a84 - Fixed a ratio assert in libtorrent because we sent it -1 for unlimited instead of 0 2007-09-16 14:16:42 +00:00
Christophe Dumez
3cb34ed7ee - Fixed an overflow that could cause ETA to become negative sometimes (hitted an assert) 2007-09-16 12:30:41 +00:00
Christophe Dumez
c478ba59ac - new torrent content selection (as a tree). Merge from the new-torrent-selection branch 2007-09-16 09:19:22 +00:00
Christophe Dumez
fe7c0db425 - remove ratio should be applied to finished torrent only (and disabled as a default!) - FIXED 2007-09-13 19:50:14 +00:00
Christophe Dumez
47c1908519 - Added some more debug 2007-09-09 09:20:01 +00:00
Christophe Dumez
e1ead940be - Added some more debug 2007-09-09 09:15:29 +00:00
Christophe Dumez
862d24ac48 - FEATURE: Added an option to automatically delete torrents when they reach a given ratio (>= 1.0) 2007-09-09 09:09:24 +00:00
Christophe Dumez
078c80c81d - FEATURE: Added an option to set the max number of connections per torrent
- FEATURE: Added an option to set the max number of uploads per torrent
2007-09-09 07:44:22 +00:00
Christophe Dumez
cd70843ee9 - Totally redesigned program preferences
- Added some options, the following are already implemented:
  * Start/Stop LSD/NAT-PMP/UPnP
	* Force preallocation of all files
	* Force new torrents status to pause
- Other new features are going to be implemented soon
2007-09-08 17:07:29 +00:00
Christophe Dumez
9f36d521a4 - BUGFIX: Fixed deprecation warning with latest libtorrent svn
- FEATURE: Redesigned torrent creation dialog
- FEATURE: Allow to set piece size when creating a torrent
- improved new options dialog a little
2007-09-04 04:18:51 +00:00
Christophe Dumez
b582ec9480 - BUGFIX: Do not store and calculate ETA values for paused torrents 2007-08-29 16:23:37 +00:00
Christophe Dumez
b5ccf05541 - BUGFIX: Do not store and calculate ETA values for finished torrents 2007-08-29 16:15:11 +00:00
Christophe Dumez
b3c5e6cfa2 - Store less ETA values for each torrent in order to save memory 2007-08-29 16:11:24 +00:00
Christophe Dumez
229927bbe9 - BUGFIX: Fixed file preview and improved previewable files detection 2007-08-29 16:07:37 +00:00
Christophe Dumez
495d6f2bab - Save less trackers errors to save memory 2007-08-29 15:13:20 +00:00
Christophe Dumez
73c247fe10 BUGFIX: Fixed pause state toggle for paused and checking torrents 2007-08-29 15:04:30 +00:00
Christophe Dumez
bd84cb197f - little optimization for torrentstopauseafterchecking 2007-08-29 15:00:31 +00:00
Christophe Dumez
57309c7d82 - Do not save paused torrents in a list anymore to save some memory 2007-08-29 14:54:03 +00:00
Christophe Dumez
27e76962d1 - Found a way not to use FullAllocationMode list in order to save memory in cpu 2007-08-29 14:30:30 +00:00
Christophe Dumez
057029787a - Added some asserts to check for overflows
- Removed a useless functions (was used for debug)
- Fixed 2 warnings in createTorrent.ui
- Improved CXX_FLAGS in src.pro
2007-08-29 06:33:27 +00:00
Christophe Dumez
cdfaed4fb4 BUGFIX: ETA was wrong for torrents with filtered files 2007-08-28 18:49:45 +00:00
Christophe Dumez
21908e0a03 - Optimized function that transform a number of seconds to a duration(days, hours, minutes, secs)
- Improved ETA calculation to avoid overflows (Added asserts to make sure it doesn't happen)
2007-08-28 18:44:54 +00:00
Christophe Dumez
01df4d3c81 - Use int instead of short where possible 2007-08-28 16:55:14 +00:00
Christophe Dumez
6ecb45d661 - Code optimization using initialization lists
- Removed Traditional Chinese translation because we lost our translator and translation is outdated
2007-08-28 16:17:32 +00:00
Christophe Dumez
8f7de730cc - Added some more torrent_handle checking to be sure we don't use invalid ones 2007-08-27 09:24:22 +00:00
Christophe Dumez
fd2ee35e92 - Do not save torrent related info in class destruction, this is too dangerous 2007-08-26 19:58:41 +00:00
Christophe Dumez
1bfc181cb2 - Better handing of .finished files (bittorrent class level instead of GUI level) 2007-08-26 19:17:50 +00:00
Christophe Dumez
28294efadf - Check if the hash read from the filename and from the torrent are the same and don't add it if it is different. Safer 2007-08-26 18:50:51 +00:00
Christophe Dumez
829c358f10 - fixed some bugs introduced recently
- improved debug output
2007-08-26 18:41:45 +00:00
Christophe Dumez
35a9fab3b4 - Check if priorities file exists before trying to read it to avoid a warning message 2007-08-26 17:48:38 +00:00
Christophe Dumez
32c330092a - Merged splitGUI branch, GUI and download tab are now splitted. Code is a lot cleaner and easier to understand. I also fixed some bugs I found on the way :) 2007-08-26 16:25:22 +00:00
Christophe Dumez
e82cb2188e - Made torrent deletion from hard-drive safer 2007-08-23 14:04:53 +00:00
Christophe Dumez
cfacac7dbf - Add torrents in pause before applying settings to avoid race conditions
- Started to work on a new function to delete torrents permanently that is safer. Not used yet because it is buggy : it works only for simple cases and I'm not sure I can do better right now with the info libtorrent is providing.
2007-08-22 18:26:00 +00:00
Christophe Dumez
d8dd509a7b - Updated Russian translation 2007-08-21 07:17:13 +00:00
Christophe Dumez
c9925eddb6 - Big code cleanup
- Added a Qwrapper for torrent_handle to make code more readable
2007-08-20 06:29:18 +00:00
Christophe Dumez
5231f5a22b - Rewrote a lot of code concerning finishedTorrents code. It was optimized and should be safer too 2007-08-19 14:20:54 +00:00
Christophe Dumez
04352cce3c - Fixed bad assert
- Little checking before saving url seeds list
- Little optimization to make fastresume data saving faster
2007-08-19 08:45:24 +00:00
Christophe Dumez
b2867e97bf - Updated spanish translation 2007-08-18 05:55:09 +00:00
Christophe Dumez
b4fbaaa47c BUGFIX: Improved incremental download 2007-08-17 02:22:04 +00:00
Christophe Dumez
13f21ef6cd - Make use of new torrent_checked_alert that was just included in libtorrent. This allowed to improve torrent that just finished checking handling and progress column sorting. Also allowed to optimize cpu/memory usage a little. 2007-08-17 02:03:13 +00:00
Christophe Dumez
36e87952fa - BUGFIX: Wait for torrent_paused_alert before reloading a torrent for full allocation mode 2007-08-15 19:41:12 +00:00
Christophe Dumez
12fd87ab85 - Removed some debug (didn't mean to commit that) 2007-08-11 14:54:24 +00:00
Christophe Dumez
31abae33a1 - Improved the way menu icons are installed to avoid problems on some systems (Thanks JanCR for reporting this)
- Fixed version in desktop file
2007-08-11 14:47:52 +00:00
Christophe Dumez
aa4c53ec43 - Fixed assert so that it doesn't crash when we toggle paused state of a torrent several times and quickly 2007-08-09 05:10:39 +00:00
Christophe Dumez
44d61e0b9d - Fixed overflow that caused ratio to become negative
- Added some more asserts so that it doesn't happen again
- Fixed waiting for paused_alert on exit in the case where a torrent was paused then resumed before we received torrent_paused_alert
2007-08-09 05:03:06 +00:00
Christophe Dumez
320c125d17 - Added some more debug 2007-08-08 07:35:57 +00:00
Christophe Dumez
8b26b7fd48 - BUGFIX: Fixed progress column delayed sorting (after torrent finished checking) 2007-08-07 23:15:46 +00:00
Christophe Dumez
f9c357b52d - Wait for torrent_paused_alert before saving fast resume data 2007-08-07 23:00:51 +00:00
Christophe Dumez
b702bea806 - beta4 release 2007-08-04 06:23:44 +00:00
Christophe Dumez
190dc793ac - Should fix building with boost 1.33.1 2007-08-01 20:01:06 +00:00
Christophe Dumez
7469f97953 - Really enable UPnP/LSD/NAT-PMP (recently disabled as a default in libtorrent) 2007-08-01 08:47:58 +00:00
Christophe Dumez
58dc75fbcf - Fixed some slots connects in new deleteThread
- Added some debug when pausing torrents
2007-07-31 14:28:17 +00:00
Christophe Dumez
99a58b9208 - Removed a useless function
- Stop resfreshing trackers errors in torrent properties because this is annoying when you're trying to read them
2007-07-31 09:17:59 +00:00
Christophe Dumez
570296c29e - Multithreaded deletionThread (harmonized with deleteThread) 2007-07-31 08:52:04 +00:00
Christophe Dumez
5518144b26 - Improved resumeUnfinishedTorrents using a "*.torrent" filter 2007-07-31 08:21:51 +00:00
Christophe Dumez
e66af5b271 - Improved files deletion in BT_backup (no more hard-coded extensions that are annoying when adding new ones)
- Improved directory scanning for torrents using a "*.torrent" filter
2007-07-31 08:13:38 +00:00
Christophe Dumez
05a7ba4e38 - Fixed some bugs in italian translation 2007-07-30 16:57:28 +00:00
Christophe Dumez
f07b0eed61 - Removed useless function 2007-07-30 14:01:14 +00:00
Christophe Dumez
8fdc59c37c - Optimized Bittorrent class for faster compilation 2007-07-30 13:56:31 +00:00
Christophe Dumez
dbc084dd66 - Improved debug output
- code clean up
- Moved some bittorrent code from GUI class to Bittorrent one
2007-07-29 14:54:39 +00:00
Christophe Dumez
c6285d8f67 - Improved start/Pause & start_all/pause_all functions 2007-07-29 14:14:57 +00:00
Christophe Dumez
74b2b955c9 - Added some more debug in pause function 2007-07-29 01:46:31 +00:00
Christophe Dumez
620deb3b6a - Fixed a problem that happened sometimes with torrents to pause after checking 2007-07-29 01:44:49 +00:00
Christophe Dumez
f839d6fe41 - Improved trackers errors code a lot and moved it to Bittorrent class
- When using startAll() command and when only some torrents are paused : already started torrents are not displayed as connecting untill next refresh anymore (they keep their current state).
2007-07-27 13:58:12 +00:00
Christophe Dumez
9cbab8d63e -FEATURE: Url seeds are now displayed in torrent properties and are editable
- Broke compatibility with Qt4.2. Will fix this a bit later (in the meantime, edit properties.ui)
2007-07-27 09:53:55 +00:00
Christophe Dumez
3ba3e12f93 - Fixed removing from finished list 2007-07-25 14:01:48 +00:00
Christophe Dumez
a0e32fefd7 - Fixed compilation warnings
- Started work on fastresume reject alerts
2007-07-24 07:13:40 +00:00
Christophe Dumez
1e64d0a3e4 - Added a lot of supported media extensions for preview (tried to be exhaustive but the best way would probably be to use mime types) 2007-07-23 15:55:12 +00:00
Christophe Dumez
e4ab5ceb43 - Compile with -O2 optimization
- Added some media extensions supported
2007-07-23 15:31:30 +00:00
Christophe Dumez
93938d8597 - still optimizing includes 2007-07-23 12:46:36 +00:00
Christophe Dumez
325a588526 - Fixed some signals/slots (safer)
- Forgot to remove temp file when the file was downloaded from an url (rare occasions)
2007-07-22 09:47:27 +00:00
Christophe Dumez
1fb848e9ed - Added download from url handling in GUI (still missing: search plugin update and rss) 2007-07-20 20:18:18 +00:00
Christophe Dumez
7c8677d787 - Improved a lot downloading from url using libcommoncpp2 instead of libcurl
- TODO soon:
  - Updated configure file
	- Add url download error handling
2007-07-20 15:55:50 +00:00
Christophe Dumez
38c6c63924 - Improved debug output 2007-07-18 08:05:15 +00:00
Christophe Dumez
86a0e68f46 - Added ratio column 2007-07-18 07:44:52 +00:00
Christophe Dumez
8df61db644 - Rollback to GNU GPLv2 because Qt4 is not compatible with GPLv3 :( 2007-07-14 14:31:59 +00:00
Christophe Dumez
f0353e50b2 - Upload/download limits per torrent are now saved on restart. I can't test this feature yet though because libtorrent is crashing when I try to use it :) 2007-07-14 13:38:29 +00:00
Christophe Dumez
8c5d38400a - Allow to set global upload/download bandwidth limit from tray icon menu
- Fixed a bug in bandwidth limitation per torrent (confused bytes with kbytes)
- Fixed a bug with paused torrents still displayed as checking
2007-07-14 10:50:38 +00:00
Christophe Dumez
54f9375b32 - Update to GNU GPL v3 2007-07-13 06:55:51 +00:00
Christophe Dumez
a4371e7f55 - Removed some debug
- Updated TODO
2007-07-12 13:38:40 +00:00
Christophe Dumez
9f3b9da24a - fixed a bug with full allocation mode, introduced yesterday 2007-07-05 00:07:45 +00:00
Christophe Dumez
18ec98c3fb - Reloading a torrent only when necessary (properties, when files are filtered but full allocation mode is disabled) 2007-07-04 10:06:22 +00:00
Christophe Dumez
c8e4894d85 - Fixed size update when filtering files in a torrent (broken in svn) 2007-07-04 08:10:44 +00:00
Christophe Dumez
c11e5e8b12 - Blocked users (by ipfilter) are now logged in GUI 2007-07-04 06:42:36 +00:00
Christophe Dumez
107d2c8e7b Fixed file filtering in a torrent 2007-07-03 22:39:49 +00:00
Christophe Dumez
b1ed521d6b Fixed downloadFromUrl 2007-07-03 09:04:04 +00:00
Christophe Dumez
d12e510fad Improved start_All and resume_All functions to detect if a torrent's state changed or not. This way, it doesn't flood the GUI if the user keeps on clicking on those buttons 2007-06-30 18:56:49 +00:00
Christophe Dumez
9bde00b7de Improved ETA calculation 2007-06-29 16:49:45 +00:00
Christophe Dumez
0ec6af03c0 Fixed possible division by 0 2007-06-29 15:37:59 +00:00
Christophe Dumez
80f61880b7 made ETA calculation more reliable 2007-06-29 15:23:15 +00:00
Christophe Dumez
dfa9965ed3 use a mutex for download list access (should fix sorting) 2007-06-29 14:00:17 +00:00
Christophe Dumez
55538934e0 A better fix for progress column sorting on restart (still untested, gtsoul please check) 2007-06-28 22:58:43 +00:00
Christophe Dumez
568b2ddf75 Progress of paused torrents is now correct on restart 2007-06-28 21:54:07 +00:00
Christophe Dumez
ef1f030076 - 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.
2007-06-15 23:02:35 +00:00
Christophe Dumez
c39da36cca - Added Encryption support!
- Removed old UPnP code
- Removed UPnP in options since libtorrent doesn't allow to disable it. Thus, UPnP is always enabled
- Made options window a bit larger
- Added Arnaud Demaiziere to developpers list
- Updated TODO & Changelog
2007-06-15 20:35:07 +00:00
Christophe Dumez
2196fcc911 - Supports SOCKS5 proxies as well as HTTP ones
- Allow to use Proxy for Trackers / Peers / Web seeds / DHT connections
- Redesigned Proxy options a little (for new features)
2007-05-13 20:02:30 +00:00
Christophe Dumez
9093f8e44a - Proxy is now used for tracker / web seeds / peers connections
- Fixed the compiling errors with latest libtorrent svn
2007-05-02 13:52:29 +00:00
Christophe Dumez
45d51e1d44 - The torrent size displayed now takes filtered files into consideration 2007-04-12 21:28:15 +00:00
Christophe Dumez
ff3575c7ac - Implemented files prioritizing in a torrent (Part I: Torrent Properties), still need to work on torrent addition dialog 2007-04-12 19:51:39 +00:00
Christophe Dumez
f3f71e5d14 - Added Japanese translation 2007-04-07 07:43:57 +00:00
Christophe Dumez
4ca852c2b3 - Added a message log when an UPnP WAN service is detected 2007-03-29 14:49:01 +00:00
Christophe Dumez
3ff075c048 - Display more log messages 2007-03-29 14:31:43 +00:00
Arnaud Demaiziere
e8e40c7bcf - Fixed compiling errors when upnp is disabled (chris) 2007-03-28 11:45:32 +00:00
Christophe Dumez
92f840519c - Allow to change UPnP port while it is enabled
- Allow to change qBT style! (GTK people should like Cleanlooks style)
2007-03-28 08:05:37 +00:00
Christophe Dumez
e0a0a0beb1 - fix for UPnP option 2007-03-27 21:12:33 +00:00
Christophe Dumez
e8cc751f22 - Splitted search engine code from MainWindow part because GUI.cpp was getting too big and we are going to add a RSS tab soon
- Removed some unnecessary includes
2007-03-27 18:49:29 +00:00
Christophe Dumez
d2d3968b8b - Finished trackers edition 2007-03-25 18:39:27 +00:00
Christophe Dumez
1256da9bd5 - Remember edited trackers on restart 2007-03-25 16:18:57 +00:00
Christophe Dumez
fd2d2ddc0b - Added UPnP support (experimental) - taken from aMule CVS 2007-03-19 21:15:29 +00:00
Christophe Dumez
ec0d6229c6 - Added some debug
- Added more checking on handles before using them
2007-03-11 18:01:34 +00:00
Christophe Dumez
524540e63d - Fixed downloadFromUrl() (still have to do some checking with the thread) 2007-03-08 17:00:12 +00:00
Christophe Dumez
aa6f6161c3 - Oups, sorry I forgot pause_all() & start_all() functions in last commit :)
- Updated version to v0.9.0beta4
2007-03-08 16:40:02 +00:00
Christophe Dumez
bd3bde919d ** BIG COMMIT **
- Fixed a bug in options (scan dir widget were not initialized well, still disabled when they shouldn't)
- Fixed a bug in scan dir (doesn't display torrent addition dialog several times for the same torrent if we don't close the dialog before next scan refresh
- Splitted GUI from Bittorrent, lot of code rewritten and optimized. Code changed so much that we will spend the next few days squashing eventual new bugs ;)
- We don't use the hash table to store the torrent handles anymore because libtorrent is already doing it for us (save memory)
2007-03-07 22:36:01 +00:00
Christophe Dumez
dc89c5d381 - A lot of fixes/improvements in bittorrent class (now compiling)
- Half way, now I need to rewrite the GUI class to use the bittorrent class
2007-03-05 17:35:38 +00:00
Christophe Dumez
11a146a796 - Updated TODO / Changelog
- Added a signal to the deleteThead for future use
- Started coding of a bittorrent class to split GUI/BT (still unused)
2007-03-05 13:55:23 +00:00