1
mirror of https://github.com/qbittorrent/qBittorrent synced 2025-10-26 06:12:17 +01:00

Compare commits

..

279 Commits

Author SHA1 Message Date
Christophe Dumez
429ff34e46 - Tagged beta2 release 2008-06-22 17:41:47 +00:00
Christophe Dumez
54bf7e61f7 - libmagick configure improvement 2008-04-11 16:47:55 +00:00
Christophe Dumez
8422cb395a - Fixed unlimited download limit problem (trayicon) 2008-03-14 20:54:02 +00:00
Christophe Dumez
313b9b9bc0 - Fixed mistake in french translation 2008-03-14 20:46:07 +00:00
Christophe Dumez
9d3fcb10d5 - Updated language files 2008-03-14 20:27:40 +00:00
Christophe Dumez
34725dc26b - Fixed index problem in preview selection (closes #192495) 2008-02-17 13:33:43 +00:00
Christophe Dumez
8b576fcc50 - Attempt to fix compilation on vc++ 2008-02-03 10:43:12 +00:00
Christophe Dumez
1b7449ef4e - Fixed torrent names in mininova search engine 2008-01-28 12:26:44 +00:00
Christophe Dumez
596ec6ae4c - Updated slovak translation 2008-01-11 23:35:09 +00:00
Christophe Dumez
569b69689a - updated translation files 2008-01-04 20:53:56 +00:00
Christophe Dumez
07c195f475 - Catch more exceptions when adding a torrent 2008-01-04 20:43:28 +00:00
Christophe Dumez
5e86c8a14d - Fixed systray integration when qbittorrent is launched on system startup 2008-01-04 20:09:37 +00:00
Christophe Dumez
85796d9c2c - Use 16px tray icon on windows 2008-01-04 19:48:26 +00:00
Christophe Dumez
f4120088c6 Updated language files 2008-01-03 16:18:37 +00:00
Christophe Dumez
8d1f1512b0 - Fixed UPnP messages 2008-01-03 16:17:01 +00:00
Christophe Dumez
c6abdacadd - Threadified torrent creation
- Added a progress bar in torrent creation
- Display if UPnP/NAT-PMP was successful or not
2007-12-31 16:57:35 +00:00
Christophe Dumez
fa00d745b2 - Sharemonkey filename fix (Thanks Keiron Waites) 2007-12-30 21:03:05 +00:00
Christophe Dumez
1e1313dffc - Fixed torrent creation from a folder
- Fixed start seeding directly after torrent creation
2007-12-30 18:06:51 +00:00
Christophe Dumez
00b3677867 - Fixed btjunkie search engine 2007-12-28 09:57:05 +00:00
Ishan Arora
8a9a23866f Corrections in RealProgressBarThread
- Fixed a bug related to the size of the array
- Removed the much hated goto statements with loops :)
2007-12-26 16:40:20 +00:00
Christophe Dumez
91328de30f - Disabled libcurl verbosity 2007-12-12 22:20:36 +00:00
Christophe Dumez
204d9ff496 - Fixed eol problems on Windows 2007-12-12 22:00:41 +00:00
Christophe Dumez
5d64373798 should fix eol problems on windows 2007-12-12 21:45:44 +00:00
Christophe Dumez
699d4b1161 - Forgot to call a python script with python executable 2007-12-12 18:17:09 +00:00
Christophe Dumez
0fe9d68be1 - Forgot to call one script with python 2007-12-12 17:55:16 +00:00
Christophe Dumez
b2f9394d6e - Call python scripts using python executable (fix for windows) 2007-12-12 17:14:15 +00:00
Christophe Dumez
56965d444a - Attempt to fix search engine on Windows 2007-12-12 16:56:32 +00:00
Christophe Dumez
07d7a44731 - DownloadThread now write in binary mode (should fix problems on Windows) 2007-12-12 12:23:38 +00:00
Christophe Dumez
f85aa72c72 - Disable libcurl debug 2007-12-11 20:33:57 +00:00
Christophe Dumez
2f5b4a190e - downloads from urls now follow redirections 2007-12-11 20:20:43 +00:00
Christophe Dumez
aada4f3c03 - Forgot to remove temporary download file when addition failed 2007-12-11 20:00:43 +00:00
Christophe Dumez
9540d45c1d - Fixed torrentreactor search engine 2007-12-11 19:32:09 +00:00
Christophe Dumez
cfd7a1bf0b Updated Japanese translation 2007-12-11 17:11:27 +00:00
Arnaud Demaiziere
3e13bd1381 BUGFIX : when shutting down the system, qbt simply quits 2007-12-09 16:35:51 +00:00
Christophe Dumez
3af23ae8a9 - Fixed compilation warning 2007-12-09 15:51:09 +00:00
Christophe Dumez
f1aa1f993d - Fixed preview when path contain spaces 2007-12-09 09:30:06 +00:00
Christophe Dumez
82b1b29906 - Fixed space problem for "open destination folder" action 2007-12-09 09:28:11 +00:00
Christophe Dumez
14882fe38f - Added our sharemonkey campaign id
- Updated hungarian translation
2007-12-08 22:17:01 +00:00
Christophe Dumez
82f60f1b89 - Updated version in menu entry 2007-12-07 22:59:12 +00:00
Christophe Dumez
dab617458a - Added comment for sharemonkey campaign id 2007-12-07 22:56:36 +00:00
Christophe Dumez
1832d518d6 - Updated splash screen for v1.1.0
- Version Bump to v1.1.0alpha2
2007-12-07 22:51:25 +00:00
Christophe Dumez
5ed8517cde - Added an icon for the new "Buy it" action
- Updated language files
2007-12-07 22:48:51 +00:00
Christophe Dumez
b2950afd5c - FEATURE: Allow to buy downloads using ShareMonkey 2007-12-07 22:33:19 +00:00
Christophe Dumez
a84c686090 - Fixed a problem when closing to systray, then closing the app and cancel 2007-12-04 12:04:53 +00:00
Christophe Dumez
efb8315a38 - Fixed nbResult != 0 when clearing results while a search is running 2007-12-03 19:29:57 +00:00
Christophe Dumez
56b018fb95 - Attempt to fix downloadFromUrl on Windows 2007-11-30 16:05:20 +00:00
Christophe Dumez
731438a19a - Updated search engine plugins in order to limit to 10 pages 2007-11-30 11:54:05 +00:00
Christophe Dumez
fd4ce53eb1 - Added a 3 minutes search timeout 2007-11-30 10:48:00 +00:00
Christophe Dumez
b4f0fbdbc4 Updated polish translation 2007-11-29 18:16:45 +00:00
Christophe Dumez
26ae2af198 - Fixed proxy host max length in preferences 2007-11-28 12:50:08 +00:00
Christophe Dumez
bdb625a615 - Fixed compilation on windows (closes #172391) 2007-11-27 19:37:45 +00:00
Christophe Dumez
f68c5114b2 Updated japanese translation 2007-11-25 19:55:19 +00:00
Christophe Dumez
83282bf835 - Updated polish translation 2007-11-25 14:55:16 +00:00
Christophe Dumez
054351e3a4 - Updated translation files 2007-11-25 13:38:21 +00:00
Christophe Dumez
a5dac03956 - Same as last commit but for gnome looks 2007-11-24 23:47:44 +00:00
Christophe Dumez
a760913482 - Same as last commit but for infoBar this time 2007-11-24 23:43:57 +00:00
Christophe Dumez
f3c8889865 - Should fixed text color for stalled torrents when using a dark theme 2007-11-24 23:39:44 +00:00
Christophe Dumez
b24a1e9123 - COSMETIC: Do not display progress bar in seeding list (always 100%) 2007-11-24 22:24:01 +00:00
Christophe Dumez
c4b7622a17 - Do not compute data for hidden columns in order to save CPU 2007-11-24 22:16:00 +00:00
Christophe Dumez
f7fa66c65d - Improved a lot ETA calculation algorithm 2007-11-24 21:55:19 +00:00
Christophe Dumez
a91d2028d8 - Rewrote part of Arnaud's code for column hiding to debug and optimize it 2007-11-24 19:04:28 +00:00
Christophe Dumez
adea644c04 - Removed "Resize all columns" action 2007-11-24 18:33:17 +00:00
Christophe Dumez
31679f0d6d Tagged rc9 release 2007-11-24 12:11:12 +00:00
Arnaud Demaiziere
0d90ad8f7c bufixes on hidden columns in transfert lists 2007-11-24 00:14:19 +00:00
Christophe Dumez
8ab6aeafcc - Fixed compilation warning in Ishan's code 2007-11-23 23:48:05 +00:00
Christophe Dumez
a56baf5b58 - Added some errors code for libcurl
- Added HTTPS download support
2007-11-23 23:06:38 +00:00
Christophe Dumez
61eb921e44 - Moved from libcommoncpp to libcurl for downloads from urls
- Added SOCKS5 proxy support when downloading from urls
2007-11-23 22:57:49 +00:00
Christophe Dumez
8ecf79e91c - Do not use SOCKS5 proxies in downloadThread.cpp (does not work) 2007-11-23 20:48:47 +00:00
Christophe Dumez
349e58fa22 - Fixed minor version number 2007-11-23 17:22:48 +00:00
Christophe Dumez
436f5bbd7e - Fixed HTTP proxy support in downloadThread 2007-11-23 15:54:18 +00:00
Christophe Dumez
64bfdf930c - Fixed not destructing libtorrent session bug 2007-11-23 15:20:26 +00:00
Christophe Dumez
8858518a14 - fixed proxy layout in preferences 2007-11-23 00:23:55 +00:00
Christophe Dumez
def19ef88b - Added h.is_valid check 2007-11-22 21:53:42 +00:00
Christophe Dumez
4f989b674f - Do not save fastresume data for paused torrents anymore 2007-11-22 21:50:22 +00:00
Christophe Dumez
f0ef21e409 - Fixed proxy auth disable problem when disabling proxy 2007-11-22 21:32:30 +00:00
Christophe Dumez
6b0ae4f575 - Some bug fixes (Proxy) 2007-11-22 10:49:10 +00:00
Christophe Dumez
3926b0d787 - Fixed compilation warning 2007-11-21 22:46:13 +00:00
Christophe Dumez
a721e6d943 - Improved proxy support (search, rss, downloadFromUrl...) 2007-11-21 22:30:33 +00:00
Ishan Arora
9c05148a24 few more corrections on RealProgressBar
- removed counting incomplete pieces
- replaced few Q_ASSERT with corrective statements
2007-11-21 21:12:03 +00:00
Christophe Dumez
725ef52cfe - Fixed compilation warning 2007-11-21 20:35:31 +00:00
Christophe Dumez
7982011d0b - Do not save fastresume data regularly for seeding torrents 2007-11-21 20:33:30 +00:00
Christophe Dumez
0a3bb0cfcd - BUGFIX: title bar is now reset when "Display speed in title" is disabled 2007-11-21 20:17:01 +00:00
Christophe Dumez
f75501f781 - Fixed overflow handling in ETA calculation 2007-11-21 18:59:49 +00:00
Christophe Dumez
70f8a00c20 - Save fastresume data every minute instead of every 10 sec 2007-11-21 16:50:26 +00:00
Christophe Dumez
2691677650 - Fixed segfault that would happen when unfiltering files in torrent addition dialog (closes #163379) 2007-11-19 21:42:58 +00:00
Christophe Dumez
be34bed61a - Fixed compilation warning 2007-11-19 21:33:07 +00:00
Christophe Dumez
721ef1d236 - Fixed useless variable in properties 2007-11-19 21:31:48 +00:00
Christophe Dumez
c8b944508b - Saving trackers file only when necessary
- Avoid code duplication for showProperties()
2007-11-19 21:10:57 +00:00
Christophe Dumez
f3f3f2822b - Do not save fastresume data for checking torrents anymore 2007-11-19 20:43:54 +00:00
Christophe Dumez
3ef0c82a8c - Do no pause torrents before saving fastresume data anymore (no longer needed)
- Save fast resume data regularly (every 10 seconds) to avoid downloading from s
cratch when qBittorrent restart
2007-11-19 20:33:31 +00:00
Arnaud Demaiziere
b8200fd7b2 feature : allow to hide/show columns 2007-11-19 00:58:14 +00:00
Ishan Arora
9e62780a6d Added files missing in last revision 2007-11-18 19:40:49 +00:00
Christophe Dumez
58c78fa6f6 - FEATURE: Real progress bar in torrent properties that displays downloaded pieces (contribution by
Ishan Arora)
2007-11-18 18:06:44 +00:00
Christophe Dumez
5484ec923d - Improved proxy support in search engine 2007-11-16 19:59:36 +00:00
Christophe Dumez
54225cd42f - Made properties window a bit larger
- Remember properties window size and position on startup
2007-11-16 19:33:38 +00:00
Christophe Dumez
dc651ffed3 - Updated TODO List 2007-11-16 19:21:24 +00:00
Christophe Dumez
476a7d7be0 Updated language files 2007-11-16 18:54:52 +00:00
Christophe Dumez
c580285fe8 - Allow to open destination folder on right click on a torrent 2007-11-16 18:53:21 +00:00
Christophe Dumez
5b6166ee15 - Simplified file preview using QDesktopServices 2007-11-16 18:36:57 +00:00
Christophe Dumez
18ee43225e - Allow to open destination folder on double-click 2007-11-16 18:26:00 +00:00
Christophe Dumez
b47073901f - Removed a fedora 7 workaround 2007-11-13 10:32:42 +00:00
Christophe Dumez
d45c44868e - Removed Fedora workaround because Fedora 8 is working propery now 2007-11-10 09:25:51 +00:00
Christophe Dumez
4401b60d51 - cleaned up arnaud's code for double-click action 2007-11-08 18:31:41 +00:00
Christophe Dumez
0ce114a7f8 - Fixed double-click default action 2007-11-08 18:22:34 +00:00
Christophe Dumez
38ca306499 - Fixed start minimized 2007-11-07 12:30:20 +00:00
Christophe Dumez
6cb636f85d - Fixed Changelog 2007-11-07 12:19:12 +00:00
Christophe Dumez
7563b09ead - Updated TODO/Changelog 2007-11-07 11:20:28 +00:00
Arnaud Demaiziere
76783c819c clear the results of a search stops it 2007-11-07 08:41:34 +00:00
Arnaud Demaiziere
42312b982b i forgot the changelog ... oups 2007-11-06 21:16:49 +00:00
Arnaud Demaiziere
a329a59719 - Start minimized option in program preferences
*** - In finished list, replace "Seeds/Leechs" column by "Leechers" 
because Seeds are always 0.
- Allow to change action on double-click
  -> in download list
  -> in seeding list
2007-11-06 21:11:09 +00:00
Christophe Dumez
82e548a2fd - Fixed a bug in torrent files filtering (closes #158846) 2007-11-06 20:55:23 +00:00
Christophe Dumez
5bbdb9e119 - Renabled debug
- Bumped to v1.1.0alpha1
2007-11-06 17:40:44 +00:00
Christophe Dumez
68cbcaeab9 - Fixed a little problem with 16x16px icon install 2007-11-04 09:18:31 +00:00
Christophe Dumez
3c88657e0f rc7 release 2007-11-03 11:57:00 +00:00
Christophe Dumez
f836be6736 - BUGFIX: Don't reload seeding torrents anymore (no point) 2007-11-03 00:19:24 +00:00
Christophe Dumez
85fe900afe - Disable debug mode 2007-11-02 22:56:33 +00:00
Christophe Dumez
052ccf2302 - BUGFIX: Don't reload all torrents everytime settings are saved 2007-11-02 22:56:07 +00:00
Christophe Dumez
ae384da609 - Updated TODO 2007-11-02 13:32:24 +00:00
Christophe Dumez
0fc2d289eb - BUGFIX: Pause/Start All now affect all tabs, not only the current one 2007-11-02 13:12:31 +00:00
Christophe Dumez
9ca02aad88 - BUGFIX: Fixed a bug in children update when changing files priorities 2007-10-30 21:29:15 +00:00
Christophe Dumez
8ea34135e4 - BUGFIX: Catching DHT exception in case there is a problem 2007-10-27 20:53:09 +00:00
Christophe Dumez
b66be5b64b - Removed build dependency on Python 2007-10-27 20:24:17 +00:00
Christophe Dumez
ebc738e3a5 - Updated Turkish translation 2007-10-19 22:27:00 +00:00
Christophe Dumez
713474bc43 - Bump to rc6 2007-10-19 21:25:17 +00:00
Christophe Dumez
265a8cada8 - Fixed ETA display 2007-10-19 20:38:00 +00:00
Christophe Dumez
138af31ef9 - BUGFIX: Remember scan directory in program preferences now 2007-10-19 16:08:05 +00:00
Christophe Dumez
a5f6663e65 - BUGFIX: Fixed deletion of subfolders when deleting torrents from hard drive 2007-10-19 16:00:42 +00:00
Christophe Dumez
1519bca46d - Fixed folder progress calculation in torrent properties (closes #154387) 2007-10-19 15:51:13 +00:00
Christophe Dumez
03719cbb87 - Simplified code 2007-10-18 18:30:04 +00:00
Christophe Dumez
98825613fa - Fixed spanish translation 2007-10-17 16:18:40 +00:00
Christophe Dumez
47abadfc67 - Fixed a typo in french translation 2007-10-17 15:47:49 +00:00
Christophe Dumez
a220e01e2e - FEATURE: Added a button to clear search pattern
- I18N: Fixed swedish translation
2007-10-14 12:21:51 +00:00
Christophe Dumez
dea9237aa0 - BUGFIX: Fixed minimize to tray feature 2007-10-14 09:23:29 +00:00
Christophe Dumez
6099544da5 - BUGFIX: configure doesn't require paths with a terminal "/" anymore 2007-10-14 09:15:02 +00:00
Christophe Dumez
902116cbc8 - BUGFIX: configure looks for libraries in lib64 folders too 2007-10-14 09:09:19 +00:00
Christophe Dumez
96a6f450d0 - Make use of this: added option to delete files from disk as a torrent is removed (libtorrent) 2007-10-13 08:54:46 +00:00
Christophe Dumez
6ed565a06b - COSMETIC: Improved progress bar text rendering 2007-10-13 08:32:31 +00:00
Christophe Dumez
1fbbee794c - BUGFIX: Fixed "Automatically start seeding" feature in torrent creation tool 2007-10-12 18:28:30 +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
26a4040003 - BUGFIX: Fixed "Missing Input path" error when creating a torrent
- BUGFIX: Fixed some notification messages for torrent addition dialog
2007-10-12 11:50:02 +00:00
Christophe Dumez
e7ac721b3c - Updated TODO 2007-10-11 18:34:14 +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
9bb18e1a07 - reverted src.pro 2007-10-10 19:17:25 +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
be94c86350 - Revert a change in src.pro I didn't mean to commit 2007-10-10 17:36:02 +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
4c862597ae - Updated Japanese translation
- rc4 release
2007-10-06 20:00:13 +00:00
Christophe Dumez
937d45d850 - Use system's default style as a default instead of Plastique style 2007-10-03 19:18:55 +00:00
Christophe Dumez
20b6579392 - BUGFIX: Updated INSTALL file
- BUGFIX: Optimized torrent real size calculation
2007-10-01 19:43:24 +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
ce3b8733d1 BUGFIX: Fixed a proxy problem causing connections to be rejected by trackers 2007-09-30 17:46:47 +00:00
Christophe Dumez
b0140fbdbe - We have an optimized way to get the torrent actual size using libtorrent but this is buggy. Hence we don't use it yet. 2007-09-29 08:32:22 +00:00
Christophe Dumez
abcd2b7600 - Ok, Now I'm pretty sure I fixed the compilation problem on FreeBSD 2007-09-29 08:13:20 +00:00
Christophe Dumez
f9998957cd - attempt to fix compilation on FreeBSD 2007-09-29 08:00:14 +00:00
Christophe Dumez
acb8d5679f - rc2 release 2007-09-27 19:15:41 +00:00
Christophe Dumez
c3d3156ec7 - BUGFIX: Fixed search engine plugins update 2007-09-27 19:09:32 +00:00
Christophe Dumez
09abd303bd - Updated plugin version in text file 2007-09-27 18:51:06 +00:00
Christophe Dumez
0678e2e2bd - Fixed mininova search engie plugin 2007-09-27 18:47:26 +00:00
Christophe Dumez
00dbf7ba38 - Updated italian and korean translations
- Fixed infoBar text when adding a torrent
2007-09-27 18:25:37 +00:00
Christophe Dumez
42cacabccd - BUGFIX: Fixed a unsupported character in man page 2007-09-26 18:32:17 +00:00
Christophe Dumez
3d04a944b6 - rc1 release
- disabled debug mode
2007-09-25 17:50:04 +00:00
Christophe Dumez
b02e2c2f9b Updated Hungarian translation 2007-09-24 21:01:46 +00:00
Christophe Dumez
5c0f17bf31 - Fixed a problem in log text color (introduced very recently) 2007-09-24 18:56:14 +00:00
Christophe Dumez
ac9a81985f - Fixed error in last commit 2007-09-24 18:35:35 +00:00
Christophe Dumez
a46c63d883 - Updated spanish translation
- Log text default color uses skin foreground color instead of black now
2007-09-24 18:08:38 +00:00
Christophe Dumez
09a696fc27 updated translations 2007-09-22 13:32:31 +00:00
Christophe Dumez
dedc54d26f - Updated TODO 2007-09-21 20:06:04 +00:00
Christophe Dumez
c0ffb8fa5c - BUGFIX: Fixed overflow in ratio 2007-09-21 07:45:28 +00:00
Christophe Dumez
3e350c5935 - Updated some translation
- Added -NDEBUG to src.pro to fix compilation problem with libtorrent svn
2007-09-20 20:57:41 +00:00
Christophe Dumez
da244d7ef2 - Added more debug when we get a file_error 2007-09-18 22:41:23 +00:00
Christophe Dumez
2fc7039cc7 - COSMETIC: Progress bar text now uses style foreground color 2007-09-18 22:09:06 +00:00
Christophe Dumez
654497cd4a - Disable debug in libtorrent when qBittorrent is in release mode 2007-09-18 20:01:31 +00:00
Christophe Dumez
bdf50483df - Attempt to make progress bar text color dynamic 2007-09-18 19:08:09 +00:00
Christophe Dumez
8a0681744e - Improved tracker deletion code slightly 2007-09-18 17:27:01 +00:00
Christophe Dumez
2699c76afd Updated japanese 2007-09-18 06:52:41 +00:00
Christophe Dumez
773064a081 - beta7 release 2007-09-17 19:50:47 +00:00
Christophe Dumez
7718403419 - Perfected chinese translation 2007-09-17 19:42:31 +00:00
Christophe Dumez
26b4d31810 - Updated a lot of translations 2007-09-17 19:16:12 +00:00
Christophe Dumez
f8dfda0893 - Updated resource files 2007-09-16 19:59:54 +00:00
Christophe Dumez
e8897ae159 - Fixed configure 2007-09-16 19:58:07 +00:00
Christophe Dumez
2f71f9f51a - Updated russian translation 2007-09-16 18:37:24 +00:00
Christophe Dumez
fc595f49d8 - Updated slovak translation 2007-09-16 16:51:56 +00:00
Christophe Dumez
92444fccf4 - Updated swedish translation 2007-09-16 15:15:44 +00:00
Christophe Dumez
6d0aebe9cb - Edit a bit of code in torrent permanent deletion to make sure all files are actually deleted 2007-09-16 15:13:32 +00:00
Christophe Dumez
ef7af6bad6 - Fixed torrent permanent deletion from hd
- Updated Romanian translation
2007-09-16 15:10:25 +00:00
Christophe Dumez
c1a8a58080 - Updated TODO 2007-09-16 14:27:13 +00:00
Christophe Dumez
76047f4ef2 - Fixed transfers list interval setting 2007-09-16 14:25:24 +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
9cdcd53234 - Completed french translation 2007-09-16 14:02:06 +00:00
Christophe Dumez
419b94f042 - A lot of improvement and bug fixes in new torrent content selection 2007-09-16 13:33:41 +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
925ecb3464 - Fixed search engines plugins saving 2007-09-16 12:08:26 +00:00
Christophe Dumez
488bd90303 - Fixed a bug in torrent content selection when there is only one file in the torrent 2007-09-16 09:41:05 +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
b2bf7047d9 - Fixed search resource file 2007-09-13 19:34:21 +00:00
Christophe Dumez
e943449b42 - Updated TODO, spotted a bug 2007-09-13 18:48:52 +00:00
Christophe Dumez
69e2355ff4 Update language files 2007-09-11 19:32:37 +00:00
Christophe Dumez
b7ea2fb51a - Allow to download plugins from their url 2007-09-11 19:31:21 +00:00
Christophe Dumez
4c880fea09 - Improved tooltip title style 2007-09-11 18:49:24 +00:00
Christophe Dumez
a0e895641c - Improved systray tooltip a little 2007-09-11 11:55:58 +00:00
Christophe Dumez
484f1c36c9 - Improved systray style 2007-09-10 20:25:31 +00:00
Christophe Dumez
982ce5c0ad - Updated TODO 2007-09-09 20:12:54 +00:00
Christophe Dumez
7ac5da0acc - Updated TODO 2007-09-09 20:10:49 +00:00
Christophe Dumez
9733716136 - Updated language files 2007-09-09 20:08:53 +00:00
Christophe Dumez
eebdc26e5a - FEATURE: Articles in a RSS feed are now ordered by date (newer at the top)
- FEATURE: Read articles in a feed are not resetted when the feed is refreshed anymore
2007-09-09 20:02:49 +00:00
Christophe Dumez
1f8b9378a3 - FEATURE: Display RSS article date and author if available 2007-09-09 19:19:33 +00:00
Christophe Dumez
b99b838827 - Fix in rss refresh and mark all as read 2007-09-09 17:02:12 +00:00
Christophe Dumez
c4d143c2c0 - Added some RSS preferences 2007-09-09 15:46:23 +00:00
Christophe Dumez
db1bd53f44 - Fixed a typo in RSS 2007-09-09 12:23:29 +00:00
Christophe Dumez
07dc182053 - FEATURE: Added 'Mark all as read' function for RSS feeds 2007-09-09 11:31:51 +00:00
Christophe Dumez
563055e891 Updated language files 2007-09-09 09:47:59 +00:00
Christophe Dumez
b3de2ccc72 - Small fix for proxy options 2007-09-09 09:42:30 +00:00
Christophe Dumez
f4d5ceb3c4 - Fixed a unit problem in last commit 2007-09-09 09:36:10 +00:00
Christophe Dumez
70beef9f94 - FEATURE: Added an option to display current transfer speeds in title bar 2007-09-09 09:35:30 +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
6ba4588e62 Updated language files 2007-09-08 17:11:08 +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
cb8ecb74bf - Fixed a bug introduced recently in torrent addition dialog 2007-09-04 04:27:52 +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
2c2c1093c3 - Reworked options UI file. Now I need to rewrite the code 2007-09-04 02:20:28 +00:00
Christophe Dumez
0e81f3731f - Dropped Qt4.2 support, it becomes too difficult to maintain for me and Trolltech broke backward compatibility for UI files... 2007-09-03 22:59:46 +00:00
Christophe Dumez
f1114387ae - Updated TODO 2007-09-03 22:54:19 +00:00
Christophe Dumez
54516ac231 - In torrent content selection, check if all files are filtered before saving and display an error if it is the case. I removed this checking on right click menu in case people want to filter all torrents, then add one, then save. 2007-09-03 22:52:58 +00:00
Christophe Dumez
913f93ba82 - Updated language files
- Fixed a typo in french translation
- Updated Hungarian translation
2007-09-03 22:38:37 +00:00
Christophe Dumez
11c7255da6 - Added a lot of stuff to TODO list 2007-09-03 22:33:37 +00:00
Christophe Dumez
69fa916e26 - FEATURE: Added zip support in search plugins manager (can put .py & .png inside) 2007-09-03 22:05:40 +00:00
Christophe Dumez
d86335a58e - Rename fake zip files to pyqBT because we will add real zip support soon 2007-09-03 17:58:23 +00:00
Christophe Dumez
24dced2411 - BUGFIX: the function that set the rows color doesn't handle hidden columns anymore
- BUGFIX: improved search engine plugin manager code and fixed bugs
2007-09-03 17:45:16 +00:00
Christophe Dumez
1b71a4a4a4 - Updated TODO 2007-09-03 17:18:31 +00:00
Christophe Dumez
ffedffcead - Updated Itralian, greek and bolgarian translations 2007-09-03 11:14:11 +00:00
Christophe Dumez
1f64e14195 updated french translation 2007-09-02 17:08:55 +00:00
Christophe Dumez
d6a5b1d321 updated language files 2007-09-02 17:05:26 +00:00
Christophe Dumez
792101731f - BUGFIX: Fixed torrent create (can only one file or one folder) 2007-09-02 17:03:33 +00:00
Christophe Dumez
3e783873ec - BUGFIX: Made pause/resume all function affect both (dl/up) tabs when window is hidden 2007-09-02 14:57:07 +00:00
Christophe Dumez
ffb262f0a1 - Fixed log context menu position
- Updated Changelog
2007-09-02 14:42:09 +00:00
Christophe Dumez
4727c1bdca - Updated remove icon 2007-09-02 14:29:43 +00:00
Christophe Dumez
1f1e37ce76 - Updated bug report icon 2007-09-02 14:14:22 +00:00
Christophe Dumez
f40337d2e3 - Updated cryptographie icon 2007-09-02 13:53:34 +00:00
Christophe Dumez
ecc5106f07 - Updated TODO 2007-09-02 13:32:14 +00:00
Christophe Dumez
1b93f4eaf1 - Fixed a little bug in last commit 2007-09-02 13:23:02 +00:00
Christophe Dumez
685ceafc5b - second attempt for drag n drop 2007-09-02 13:19:30 +00:00
Christophe Dumez
cf6128a222 - Fixed drag'ndrop on non-KDE systems 2007-09-02 13:06:42 +00:00
Christophe Dumez
f78c74c1b5 - Updated checking icon 2007-09-02 12:50:38 +00:00
Christophe Dumez
faeee49517 - Use RSS (un)subscribe icons 2007-09-02 12:44:09 +00:00
Christophe Dumez
1918969e28 - Updated RSS icon with one from Oxygen (KDE4 icons) 2007-09-02 12:12:51 +00:00
Christophe Dumez
fa9e3bf564 Updated french translation 2007-09-02 09:37:18 +00:00
Christophe Dumez
8eac154c05 Updated language files 2007-09-02 09:32:59 +00:00
Christophe Dumez
ff12c76a62 - Updated TODO 2007-09-02 09:12:26 +00:00
Christophe Dumez
2c27f952e2 - FEATURE: Allow to drag'n drop plugin to list for install/update
- Added some debug
2007-09-02 09:01:22 +00:00
Christophe Dumez
e3214a9b6a - Updated TODO 2007-09-02 08:23:59 +00:00
Christophe Dumez
4a02d171b4 - BUGFIX: 'Unknown' is now displayed in search results columns where value is -1
- BUGFIX: Improved search engine core a little
- BUGFIX: Forgot to remove *.pyc files when uninstalling a search plugin
2007-09-02 07:58:25 +00:00
Christophe Dumez
7a16a1d8f1 - updated language files 2007-09-02 06:53:55 +00:00
Christophe Dumez
ecc41fbc60 - Display "Unknown" in search engine result columns where value is -1 2007-09-02 06:39:55 +00:00
Christophe Dumez
0125a2b521 - Updated polish translation 2007-09-01 23:05:56 +00:00
Christophe Dumez
d328b93c1a - Updated swedish and German translations 2007-09-01 23:01:15 +00:00
Christophe Dumez
ab588b741e Paused torrents could be displayed as connected for a sec after checking 2007-09-01 22:57:50 +00:00
Christophe Dumez
1588cd5d3d - Updated Ukrainian translation 2007-09-01 12:24:40 +00:00
Christophe Dumez
a597f067e2 - Updated french and dutch translations
- Fixed some typos in engineSelect
- Made search engine plugin install more reliable
- Added some comments
2007-09-01 10:23:39 +00:00
Christophe Dumez
0778f2a19e - Updated Russian translation 2007-08-31 21:32:30 +00:00
Christophe Dumez
6c0d4b9439 - Dropped Hong Kong flag 2007-08-31 17:39:41 +00:00
Christophe Dumez
98d91f7697 - beta6 release 2007-08-31 17:15:38 +00:00
Christophe Dumez
f7ac4ec652 - Updated Italian translation 2007-08-31 16:56:21 +00:00
Christophe Dumez
43b96ea4f2 - Updated slovak translation 2007-08-31 16:55:00 +00:00
Christophe Dumez
91bd5f1d8e - Updated Changelog 2007-08-31 16:51:02 +00:00
Christophe Dumez
f0edd7dcf7 - Added multipage support for mininova 2007-08-31 16:39:29 +00:00
Christophe Dumez
e3f2480fe5 - Added multipage support to btjunkie plugin 2007-08-31 16:15:39 +00:00
Christophe Dumez
26e5785754 - Fixed plugin update && fixed btjunkie search plugin 2007-08-31 16:02:01 +00:00
Christophe Dumez
db12fb292a - Updated French translation 2007-08-31 14:25:07 +00:00
Christophe Dumez
798ee52de1 - Added some more debug 2007-08-31 14:08:47 +00:00
Christophe Dumez
b1f562d7c0 - Fixed a bug in previous commit
- Added some debug
2007-08-31 13:39:27 +00:00
Christophe Dumez
41daeb4c19 - Added a messagebox when plugin are already up to date 2007-08-31 13:35:55 +00:00
Christophe Dumez
d66b788e5f - Update translation files 2007-08-31 12:11:38 +00:00
Christophe Dumez
ff4ab915a2 - Merged custom-search branch. New search plugins management system 2007-08-31 12:06:31 +00:00
142 changed files with 23729 additions and 11626 deletions

View File

@@ -3,3 +3,4 @@ Author:
Contributors:
* Arnaud Demaizière <arnaud@qbittorrent.org>
* Ishan Arora <ishanarora@gmail.com>

View File

@@ -1,4 +1,29 @@
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v1.0.0
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v1.1.0
- FEATURE: Web interface to control qbittorrent (Ishan Arora)
- FEATURE: Can spoof Azureus peer id to avoid ban
- FEATURE: Allow to hide/show some columns in download and seeding lists
- FEATURE: Option to start qBittorrent minimized in systray
- FEATURE: Allow to define double-click actions in torrents lists
- FEATURE: Allow to open torrent destination folder
- FEATURE: Real progress bar in torrent properties that displays downloaded pieces
- FEATURE: Allow to buy downloads using ShareMonkey
- FEATURE: Display if UPnP/NAT-PMP was successful or not
- FEATURE: Threadified torrent creation
- FEATURE: Improved eMule DAT ip filter parser
- FEATURE: Added support for PeerGuardian p2p filters (text)
- FEATURE: Added support for PeerGuardian p2b filters (binary)
- FEATURE: Allow to customize folder scan interval
- FEATURE: Allow to add several trackers at once
- BUGFIX: Do not display seeds number in seeding list (always 0)
- BUGFIX: Threadified IP filter file parser to avoid GUI freeze
- COSMETIC: Do not display progress bar in seeding list (always 100%)
- COSMETIC: Added a progress bar for torrent creation
- COSMETIC: Display tracker errors in a cleaner way
- COSMETIC: Display "unpaused/total_torrent" in download/upload tabs
- COSMETIC: Allow to resize RSS column
- COSMETIC: Global UP/DL speeds and ratio are displayed above tabs
* Fri Apr 11 2008 - Christophe Dumez <chris@qbittorrent.org> - v1.0.0
- FEATURE: Based on new libtorrent v0.13
- FEATURE: Added UPnP / NAT-PMP port forwarding support
- FEATURE: Added encryption support (compatible with Azureus)
@@ -41,11 +66,9 @@
- FEATURE: Added an option to automatically delete torrents when they reach a given ratio (>= 1.0)
- FEATURE: Added an option to display current transfer speeds in title bar
- FEATURE: Torrent content is now displayed as a tree
- FEATURE: Better media file preview (player detected automatically)
- I18N: Added Hungarian translation
- I18N: Added Brazilian translation
- BUGFIX: Progress of paused torrents is now correct on restart
- BUGFIX: clear the results of a search stops searching
- BUGFIX: Progress column gets sorted on restart it is was during last execution
- BUGFIX: Made ETA more reliable using stats instead of instant values
- BUGFIX: Remove torrent from hard drive used to delete parent folder if empty
@@ -68,8 +91,6 @@
- BUGFIX: Fixed drag'n drop on non-KDE systems
- BUGFIX: Removed build dependency on Python
- BUGFIX: Catching DHT exception in case there is a problem
- BUGFIX: Remember properties window size and position
- BUGFIX: Improved proxy support in search engine (HTTP only)
- COSMETIC: Redesigned torrent properties a little
- COSMETIC: Totally redesigned program preferences
- COSMETIC: Display more logs messages concerning features

43
TODO
View File

@@ -23,46 +23,15 @@
(http://techbase.kde.org/Development/Tutorials/D-Bus/Accessing_Interfaces)
- When favicon can't be downloaded, try to parse the webpage for:
<link rel="icon" href="http://example.com/favicon.ico" type="image/vnd.microsoft.icon">
* Be carefull, the link can be relative
* Be careful, the link can be relative
- Improve search plugin install (choose in a list taken from plugins.qbittorrent.org)
- support zipped torrents? (useful?)
- Allow to limit the number of downloading torrents simultaneously (other are paused until a download finishes)
// in v1.2.0
- Allow user to organize the downloads into categories/folders?
// in v1.1.0
- Tabs support in search
- Allow to hide columns?
- Allow to scan multiple directories? (useful?)
- Web interface (turbogears? php? python?)
* Webserver? Try to write a webserver as a plugin for qBittorrent in Python
* http://fragments.turtlemeat.com/pythonwebserver.php
- improve and test tracker authentication code (remember login/pass) (need a tracker to test this)
- support zipped torrents? (useful?)
- Allow to limit the number of downloading torrents simultaneously (other are paused until a download finishes)
- Improve search plugin install (choose in a list taken from plugins.qbittorrent.org)
- Display the number of DHT node if possible
- When adding a duplicate torrent, check if the trackers are different from the existing one and ask the user if he wants to add them
- Display in torrent addition dialog:
* free disk space on selected drive
* free disk space after torrent download (and/or torrent size)
- Start minimized option in program preferences
- In finished list, replace "Seeds/Leechs" column by "Leechers" because Seeds are always 0.
- Allow to change action on double-click
-> in download list
-> in seeding list
- Stop calculating ETAs when ETA column is hidden
-> See https://blueprints.launchpad.net/qbittorrent
rc8->rc9 changelog:
- FEATURE: Better media file preview (player detected automatically)
- BUGFIX: Remember properties window size and position
- BUGFIX: Added HTTP and SOCKS5 proxy support in downloads from urls, RSS
- BUGFIX: Added HTTP proxy support in search engine (no SOCKS yet)
- BUGFIX: Do no pause torrents before saving fastresume data anymore (no longer needed)
- BUGFIX: Save fast resume data regularly (every 60 seconds) to avoid downloading from scratch if qBittorrent crashes
- BUGFIX: Do not save fastresume data for checking torrents anymore
- BUGFIX: Saving trackers file only when necessary
- BUGFIX: Fixed possible segfault when unfiltering files in torrent addition dialog
- BUGFIX: Fixed possible overflow in ETA calculation
- BUGFIX: title bar is now reset when "Display speed in title" is disabled
- BUGFIX: Fixed HTTP_PW and SOCKS5_PW in proxy combobox
- BUGFIX: Fixed proxy auth disable problem when disabling proxy
- BUGFIX: Fixed proxy layout in program preferences
- BUGFIX: Fixed everlasting libtorrent session destruction on exit

10
configure vendored
View File

@@ -594,9 +594,9 @@ public:
s = conf->getenv("QC_WITH_LIBMAGICK_LIB");
if(!s.isEmpty()) {
if(!QFile::exists(s+QString("/libMagick++.so"))){
return false;
}
if(!conf->checkLibrary(s, "Magick++")) {
return false;
}
}else{
QStringList sl;
sl << "/usr/lib/";
@@ -605,9 +605,9 @@ public:
sl << "/usr/local/lib64/";
bool found = false;
foreach(s, sl){
if(QFile::exists(s+QString("libMagick++.so"))){
if(conf->checkLibrary(s, "Magick++")) {
found = true;
break;
break;
}
}
if(!found)

28
doc/qbittorrent.1 Normal file
View File

@@ -0,0 +1,28 @@
.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>.
.TH "QBITTORRENT" "1" "September 1st 2007" "Bittorrent client written in C++ / Qt4" ""
.SH NAME
qBittorrent \- a Bittorrent client written in C++ / Qt4
.SH SYNOPSIS
\fBqbittorrent\fR [FILE | URL] [FILE | URL...]
\fBqbittorrent\fR \-\-help
\fBqbittorrent\fR \-\-version
.PP
.SH "DESCRIPTION"
\fBqBittorrent\fR is an advanced Bittorrent client written in C++ / Qt4,
using the \fBrblibtorrent\fR library by Arvid Norberg. qBittorrent aims
to be a good alternative to all other bittorrent clients out there. qBittorrent
is fast, stable, light, it supports unicode and it provides a good integrated search engine.
It also comes with UPnP port forwarding / NAT-PMP, encryption (Azureus compatible), FAST extension (mainline) and PeX support (utorrent compatible).
Please report any problem to http://bugs.qbittorrent.org
.PP
.SH "AUTHOR"
Christophe Dumez <chris@qbittorrent.org>

Binary file not shown.

View File

@@ -94,13 +94,12 @@
<includestyle>4</includestyle>
<designerintegration>ExternalDesigner</designerintegration>
<root>/usr/lib/qt4</root>
<qmake>/usr/bin/qmake-qt4</qmake>
<designer>/usr/bin/designer-qt4</designer>
<qmake>/usr/bin/qmake</qmake>
<designer>/usr/bin/designer</designer>
<designerpluginpaths/>
</qt>
<references>
<pcs>automatic_%2Fhome%2Fchris%2Fqbittorrent_svn%2Ftrunk</pcs>
<pcs>Qt4</pcs>
<pcs>automatic_%2Fhome%2Fishanarora%2Fprojects%2Fqbittorrent</pcs>
</references>
<codecompletion>
<automaticCodeCompletion>true</automaticCodeCompletion>
@@ -149,14 +148,14 @@
</kdevfilecreate>
<kdevtrollproject>
<general>
<activedir></activedir>
<activedir>src</activedir>
</general>
<run>
<directoryradio>executable</directoryradio>
<mainprogram>/home/chris/qbittorrent_svn/trunk/src/qbittorrent</mainprogram>
<mainprogram>/home/ishanarora/projects/qbittorrent/src/qbittorrent</mainprogram>
<programargs/>
<globaldebugarguments/>
<globalcwd>/home/chris/qbittorrent_svn/trunk</globalcwd>
<globalcwd>/home/ishanarora/projects/qbittorrent</globalcwd>
<useglobalprogram>true</useglobalprogram>
<terminal>false</terminal>
<autocompile>true</autocompile>
@@ -187,7 +186,7 @@
</cppsupportpart>
<ctagspart>
<customArguments/>
<customTagfilePath>/home/chris/qbittorrent_svn/trunk/tags</customTagfilePath>
<customTagfilePath>/home/ishanarora/projects/qbittorrent/tags</customTagfilePath>
<activeTagsFiles/>
</ctagspart>
<kdevdocumentation>

View File

@@ -44,9 +44,9 @@ public:
s = conf->getenv("QC_WITH_LIBMAGICK_LIB");
if(!s.isEmpty()) {
if(!QFile::exists(s+QString("/libMagick++.so"))){
return false;
}
if(!conf->checkLibrary(s, "Magick++")) {
return false;
}
}else{
QStringList sl;
sl << "/usr/lib/";
@@ -55,9 +55,9 @@ public:
sl << "/usr/local/lib64/";
bool found = false;
foreach(s, sl){
if(QFile::exists(s+QString("libMagick++.so"))){
if(conf->checkLibrary(s, "Magick++")) {
found = true;
break;
break;
}
}
if(!found)

View File

@@ -34,11 +34,10 @@
// Defines for download list list columns
#define F_NAME 0
#define F_SIZE 1
#define F_PROGRESS 2
#define F_UPSPEED 3
#define F_SEEDSLEECH 4
#define F_RATIO 5
#define F_HASH 6
#define F_UPSPEED 2
#define F_LEECH 3
#define F_RATIO 4
#define F_HASH 5
class FinishedListDelegate: public QItemDelegate {
Q_OBJECT
@@ -67,20 +66,6 @@ class FinishedListDelegate: public QItemDelegate {
QItemDelegate::drawDisplay(painter, opt, opt.rect, QString(QByteArray::number(ratio, 'f', 1)));
break;
}
case F_PROGRESS:{
QStyleOptionProgressBarV2 newopt;
double progress = index.data().toDouble()*100.;
newopt.rect = opt.rect;
newopt.text = QString(QByteArray::number(progress, 'f', 1))+QString::fromUtf8("%");
newopt.progress = (int)progress;
newopt.maximum = 100;
newopt.minimum = 0;
newopt.state |= QStyle::State_Enabled;
newopt.textVisible = true;
QApplication::style()->drawControl(QStyle::CE_ProgressBar, &newopt,
painter);
break;
}
default:
QItemDelegate::paint(painter, option, index);
}

File diff suppressed because it is too large Load Diff

View File

@@ -39,6 +39,10 @@ class FinishedTorrents : public QWidget, public Ui::seeding {
FinishedListDelegate *finishedListDelegate;
QStandardItemModel *finishedListModel;
unsigned int nbFinished;
void hideOrShowColumn(int index);
bool loadHiddenColumns();
void saveHiddenColumns();
QAction* getActionHoSCol(int index);
public:
FinishedTorrents(QObject *parent, bittorrent *BTSession);
@@ -53,6 +57,7 @@ class FinishedTorrents : public QWidget, public Ui::seeding {
protected slots:
void showProperties(const QModelIndex &index);
void displayFinishedListMenu(const QPoint&);
void displayFinishedHoSMenu(const QPoint&);
void setRowColor(int row, QString color);
void saveColWidthFinishedList() const;
void sortFinishedList(int index);
@@ -62,6 +67,11 @@ class FinishedTorrents : public QWidget, public Ui::seeding {
void torrentAdded(QString path, QTorrentHandle& h, bool fastResume);
void on_actionSet_upload_limit_triggered();
void notifyTorrentDoubleClicked(const QModelIndex& index);
void hideOrShowColumnName();
void hideOrShowColumnSize();
void hideOrShowColumnUpSpeed();
void hideOrShowColumnLeechers();
void hideOrShowColumnRatio();
public slots:
void addTorrent(QString hash);
@@ -70,10 +80,11 @@ class FinishedTorrents : public QWidget, public Ui::seeding {
void resumeTorrent(QString hash);
void propertiesSelection();
void deleteTorrent(QString hash);
void showPropertiesFromHash(QString hash);
signals:
void torrentMovedFromFinishedList(QString);
void torrentDoubleClicked(QString hash);
void torrentDoubleClicked(QString hash, bool finished);
void finishedTorrentsNumberChanged(unsigned int);
};

File diff suppressed because it is too large Load Diff

View File

@@ -46,6 +46,7 @@ class options_imp;
class QTabWidget;
class QLabel;
class QModelIndex;
class HttpServer;
class GUI : public QMainWindow, private Ui::MainWindow{
Q_OBJECT
@@ -59,6 +60,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{
QTabWidget *tabs;
options_imp *options;
QSystemTrayIcon *myTrayIcon;
QTimer *systrayCreator;
QMenu *myTrayIconMenu;
DownloadingTorrents *downloadingTorrentTab;
FinishedTorrents *finishedTorrentTab;
@@ -78,6 +80,8 @@ class GUI : public QMainWindow, private Ui::MainWindow{
SearchEngine *searchEngine;
// RSS
RSSImp *rssWidget;
// Web UI
HttpServer *httpServer;
// Misc
QTcpServer *tcpServer;
QTcpSocket *clientConnection;
@@ -94,6 +98,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{
void readParamsOnSocket();
void acceptConnection();
void togglePausedState(QString hash);
void torrentDoubleClicked(QString hash, bool finished);
void on_actionPreview_file_triggered();
void previewFile(QString filePath);
void balloonClicked();
@@ -105,6 +110,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{
void updateFinishedTorrentNumber(unsigned int nb);
void fullDiskError(QTorrentHandle& h) const;
void handleDownloadFromUrlFailure(QString, QString) const;
void createSystrayDelayed();
// Keyboard shortcuts
void createKeyboardShortcuts();
void displayDownTab() const;
@@ -131,10 +137,13 @@ class GUI : public QMainWindow, private Ui::MainWindow{
void processScannedFiles(const QStringList& params);
void processDownloadedFiles(QString path, QString url);
void downloadFromURLList(const QStringList& urls);
void deleteTorrent(QString hash, QString fileName, bool finished);
void deleteTorrent(QString hash);
void deleteRatioTorrent(QString fileName);
void finishedTorrent(QTorrentHandle& h) const;
void torrentChecked(QString hash) const;
void updateLists();
bool initWebUi(QString username, QString password, int port);
void pauseTorrent(QString hash);
// Options slots
void on_actionOptions_triggered();
void OptionsSaved(QString info, bool deleteOptions);
@@ -145,6 +154,9 @@ class GUI : public QMainWindow, private Ui::MainWindow{
public slots:
void trackerAuthenticationRequired(QTorrentHandle& h);
void setTabText(int index, QString text) const;
void openDestinationFolder() const;
void goBuyPage() const;
void updateRatio();
protected:
void closeEvent(QCloseEvent *);
@@ -155,7 +167,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{
GUI(QWidget *parent=0, QStringList torrentCmdLine=QStringList());
~GUI();
// Methods
unsigned int getCurrentTabIndex() const;
int getCurrentTabIndex() const;
QPoint screenCenter() const;
};

BIN
src/Icons/money.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 813 B

View File

@@ -1,7 +1,6 @@
[Desktop Entry]
Categories=Qt;Application;Network;P2P
Comment=V1.0.0
Encoding=UTF-8
Comment=V1.1.0
Exec=qbittorrent
GenericName=Bittorrent client
GenericName[bg]=Торент клиент
@@ -9,6 +8,7 @@ GenericName[de]=Bittorren Client
GenericName[el]=Τορεντ πελάτης
GenericName[es]=Cliente Bittorrent
GenericName[fr]=Client Bittorrent
GenericName[it]=Client Bittorrent
GenericName[ja]=Bittorrent クライアント
GenericName[ko]=비토렌트 클라이언트
GenericName[nl]=Bittorrent client

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 75 KiB

View File

@@ -16,13 +16,194 @@
<string/>
</property>
<widget class="QWidget" name="centralwidget" >
<layout class="QVBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="margin" >
<number>9</number>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>58</y>
<width>849</width>
<height>505</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout" >
<item>
<layout class="QHBoxLayout" name="_3" >
<property name="spacing" >
<number>6</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="lbl_DLSpeed_2" >
<property name="text" >
<string>Total DL Speed:</string>
</property>
<property name="alignment" >
<set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
</property>
</widget>
</item>
<item>
<widget class="QLCDNumber" name="LCD_DownSpeed" >
<property name="autoFillBackground" >
<bool>true</bool>
</property>
<property name="frameShadow" >
<enum>QFrame::Raised</enum>
</property>
<property name="smallDecimalPoint" >
<bool>false</bool>
</property>
<property name="numDigits" >
<number>6</number>
</property>
<property name="segmentStyle" >
<enum>QLCDNumber::Flat</enum>
</property>
<property name="value" stdset="0" >
<double>0.000000000000000</double>
</property>
<property name="intValue" stdset="0" >
<number>0</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="unitDL_2" >
<property name="text" >
<string>KiB/s</string>
</property>
<property name="alignment" >
<set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Session ratio: </string>
</property>
<property name="alignment" >
<set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
</property>
</widget>
</item>
<item>
<widget class="QLCDNumber" name="LCD_Ratio" >
<property name="autoFillBackground" >
<bool>true</bool>
</property>
<property name="numDigits" >
<number>4</number>
</property>
<property name="segmentStyle" >
<enum>QLCDNumber::Flat</enum>
</property>
<property name="value" stdset="0" >
<double>1.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lbl_ratio_icon" >
<property name="text" >
<string/>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="lbl_UPSpeed_2" >
<property name="text" >
<string>Total UP Speed:</string>
</property>
<property name="alignment" >
<set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
</property>
</widget>
</item>
<item>
<widget class="QLCDNumber" name="LCD_UpSpeed" >
<property name="autoFillBackground" >
<bool>true</bool>
</property>
<property name="smallDecimalPoint" >
<bool>false</bool>
</property>
<property name="numDigits" >
<number>6</number>
</property>
<property name="segmentStyle" >
<enum>QLCDNumber::Flat</enum>
</property>
<property name="value" stdset="0" >
<double>0.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="unitUP_2" >
<property name="text" >
<string>KiB/s</string>
</property>
<property name="alignment" >
<set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar" >
@@ -31,7 +212,7 @@
<x>0</x>
<y>0</y>
<width>849</width>
<height>29</height>
<height>26</height>
</rect>
</property>
<widget class="QMenu" name="menu_Edit" >
@@ -82,6 +263,14 @@
<property name="enabled" >
<bool>true</bool>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>26</y>
<width>849</width>
<height>32</height>
</rect>
</property>
<property name="contextMenuPolicy" >
<enum>Qt::NoContextMenu</enum>
</property>
@@ -98,7 +287,7 @@
</size>
</property>
<attribute name="toolBarArea" >
<number>4</number>
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak" >
<bool>false</bool>

53
src/TrackersAdditionDlg.h Normal file
View File

@@ -0,0 +1,53 @@
/*
* Bittorrent Client using Qt4 and libtorrent.
* Copyright (C) 2006 Christophe Dumez
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Contact : chris@qbittorrent.org
*/
#ifndef TRACKERSADDITION_H
#define TRACKERSADDITION_H
#include <QDialog>
#include <QStringList>
#include "ui_trackersAdd.h"
class TrackersAddDlg : public QDialog, private Ui::TrackersAdditionDlg{
Q_OBJECT
public:
TrackersAddDlg(QWidget *parent): QDialog(parent){
setupUi(this);
setAttribute(Qt::WA_DeleteOnClose);
show();
}
~TrackersAddDlg(){}
signals:
void TrackersToAdd(QStringList trackers);
public slots:
void on_buttonBox_accepted() {
QStringList trackers = trackers_list->toPlainText().trimmed().split("\n");
if(trackers.size()) {
emit TrackersToAdd(trackers);
}
}
};
#endif

View File

@@ -27,19 +27,19 @@
#include <QDir>
#include "misc.h"
class file {
class torrent_file {
private:
file *parent;
torrent_file *parent;
bool is_dir;
QString rel_path;
QList<file*> children;
QList<torrent_file*> children;
size_type size;
float progress;
int priority;
int index; // Index in torrent_info
public:
file(file *parent, QString path, bool dir, size_type size=0, int index=-1, float progress=0., int priority=1): parent(parent), is_dir(dir), size(size), progress(progress), priority(priority), index(index){
torrent_file(torrent_file *parent, QString path, bool dir, size_type size=0, int index=-1, float progress=0., int priority=1): parent(parent), is_dir(dir), size(size), progress(progress), priority(priority), index(index){
qDebug("created a file with index %d", index);
rel_path = QDir::cleanPath(path);
if(parent) {
@@ -48,7 +48,7 @@ class file {
}
}
~file() {
~torrent_file() {
qDeleteAll(children);
}
@@ -68,7 +68,7 @@ class file {
}
float wanted = 0.;
float done = 0.;
file *child;
torrent_file *child;
foreach(child, children) {
wanted += child->getSize();
done += child->getSize()*child->getProgress();
@@ -80,7 +80,7 @@ class file {
void updatePriority(int prio) {
Q_ASSERT(is_dir);
file *child;
torrent_file *child;
foreach(child, children) {
if(child->getPriority() != prio) return;
}
@@ -111,13 +111,13 @@ class file {
return (!children.isEmpty());
}
QList<file*> getChildren() const {
QList<torrent_file*> getChildren() const {
return children;
}
file* getChild(QString fileName) const {
torrent_file* getChild(QString fileName) const {
Q_ASSERT(is_dir);
file* f;
torrent_file* f;
foreach(f, children) {
if(f->name() == fileName) return f;
}
@@ -130,10 +130,10 @@ class file {
parent->addBytes(b);
}
file* addChild(QString fileName, bool dir, size_type size=0, int index = -1, float progress=0., int priority=1) {
torrent_file* addChild(QString fileName, bool dir, size_type size=0, int index = -1, float progress=0., int priority=1) {
Q_ASSERT(is_dir);
qDebug("Adding a new child of size: %ld", (long)size);
file *f = new file(this, QDir::cleanPath(rel_path+QDir::separator()+fileName), dir, size, index, progress, priority);
torrent_file *f = new torrent_file(this, QDir::cleanPath(rel_path+QDir::separator()+fileName), dir, size, index, progress, priority);
children << f;
if(size) {
addBytes(size);
@@ -148,7 +148,7 @@ class file {
return true;
}
bool success = true;
file *f;
torrent_file *f;
qDebug("We have %d children", children.size());
foreach(f, children) {
bool s = f->removeFromFS(saveDir);
@@ -169,16 +169,16 @@ class file {
class arborescence {
private:
file *root;
torrent_file *root;
public:
arborescence(torrent_info t) {
torrent_info::file_iterator fi = t.begin_files();
if(t.num_files() > 1) {
root = new file(0, misc::toQString(t.name()), true);
root = new torrent_file(0, misc::toQString(t.name()), true);
} else {
// XXX: Will crash if there is no file in torrent
root = new file(0, misc::toQString(t.name()), false, fi->size, 0);
root = new torrent_file(0, misc::toQString(t.name()), false, fi->size, 0);
return;
}
int i = 0;
@@ -196,11 +196,11 @@ class arborescence {
torrent_info::file_iterator fi = t.begin_files();
if(t.num_files() > 1) {
qDebug("More than one file in the torrent, setting a folder as root");
root = new file(0, misc::toQString(t.name()), true);
root = new torrent_file(0, misc::toQString(t.name()), true);
} else {
// XXX: Will crash if there is no file in torrent
qDebug("one file in the torrent, setting it as root with index 0");
root = new file(0, misc::toQString(t.name()), false, fi->size, 0, fp[0], prioritiesTab[0]);
root = new torrent_file(0, misc::toQString(t.name()), false, fi->size, 0, fp[0], prioritiesTab[0]);
return;
}
int i = 0;
@@ -218,7 +218,7 @@ class arborescence {
delete root;
}
file* getRoot() const {
torrent_file* getRoot() const {
return root;
}
@@ -240,13 +240,13 @@ class arborescence {
relative_path.remove(0, 1);
QStringList fileNames = relative_path.split(QDir::separator());
QString fileName;
file *dad = root;
torrent_file *dad = root;
unsigned int nb_i = 0;
unsigned int size = fileNames.size();
foreach(fileName, fileNames) {
++nb_i;
if(fileName == ".") continue;
file* child = dad->getChild(fileName);
torrent_file* child = dad->getChild(fileName);
if(!child) {
if(nb_i != size) {
// Folder

File diff suppressed because it is too large Load Diff

View File

@@ -25,6 +25,7 @@
#include <QList>
#include <QPair>
#include <QStringList>
#include <QDateTime>
#include <libtorrent/session.hpp>
#include <libtorrent/ip_filter.hpp>
@@ -35,6 +36,7 @@ using namespace libtorrent;
class downloadThread;
class deleteThread;
class QTimer;
class FilterParserThread;
class bittorrent : public QObject{
Q_OBJECT
@@ -45,15 +47,15 @@ class bittorrent : public QObject{
QTimer *timerScan;
QTimer *timerAlerts;
QTimer *fastResumeSaver;
QTimer *BigRatioTimer;
bool DHTEnabled;
downloadThread *downloader;
QString defaultSavePath;
QStringList torrentsToPauseAfterChecking;
QHash<QString, QList<qlonglong> > ETAstats;
QHash<QString, qlonglong> ETAs;
QHash<QString, QDateTime> TorrentsStartTime;
QHash<QString, size_type> TorrentsStartData;
QHash<QString, QPair<size_type,size_type> > ratioData;
QTimer *ETARefresher;
QHash<QString, QList<QPair<QString, QString> > > trackersErrors;
QHash<QString, QHash<QString, QString> > trackersErrors;
deleteThread *deleter;
QStringList finishedTorrents;
QStringList unfinishedTorrents;
@@ -65,6 +67,9 @@ class bittorrent : public QObject{
bool UPnPEnabled;
bool NATPMPEnabled;
bool LSDEnabled;
FilterParserThread *filterParser;
QString filterPath;
int folderScanInterval; // in seconds
protected:
QString getSavePath(QString hash);
@@ -82,14 +87,16 @@ class bittorrent : public QObject{
session_status getSessionStatus() const;
int getListenPort() const;
QStringList getTorrentsToPauseAfterChecking() const;
long getETA(QString hash) const;
qlonglong getETA(QString hash) const;
float getRealRatio(QString hash) const;
session* getSession() const;
QList<QPair<QString, QString> > getTrackersErrors(QString hash) const;
QHash<QString, QString> getTrackersErrors(QString hash) const;
QStringList getFinishedTorrents() const;
QStringList getUnfinishedTorrents() const;
bool isFinished(QString hash) const;
bool has_filtered_files(QString hash) const;
unsigned int getFinishedPausedTorrentsNb() const;
unsigned int getUnfinishedPausedTorrentsNb() const;
public slots:
void addTorrent(QString path, bool fromScanDir = false, QString from_url = QString(), bool resumed = false);
@@ -98,6 +105,8 @@ class bittorrent : public QObject{
void deleteTorrent(QString hash, bool permanent = false);
bool pauseTorrent(QString hash);
bool resumeTorrent(QString hash);
void pauseAllTorrents();
void resumeAllTorrents();
void saveDHTEntry();
void preAllocateAllFiles(bool b);
void saveFastResumeAndRatioData();
@@ -105,10 +114,9 @@ class bittorrent : public QObject{
void enableDirectoryScanning(QString scan_dir);
void disableDirectoryScanning();
void enablePeerExchange();
void enableIPFilter(ip_filter filter);
void enableIPFilter(QString filter);
void disableIPFilter();
void resumeUnfinishedTorrents();
void updateETAs();
void saveTorrentSpeedLimits(QString hash);
void loadTorrentSpeedLimits(QString hash);
void saveDownloadUploadForTorrent(QString hash);
@@ -140,6 +148,7 @@ class bittorrent : public QObject{
void enableLSD(bool b);
bool enableDHT(bool b);
void reloadTorrent(const QTorrentHandle &h, bool full_alloc);
void setTimerScanInterval(int secs);
protected slots:
void scanDirectory();
@@ -153,6 +162,9 @@ class bittorrent : public QObject{
void invalidTorrent(QString path);
void duplicateTorrent(QString path);
void addedTorrent(QString path, QTorrentHandle& h, bool fastResume);
void deletedTorrent(QString hash);
void pausedTorrent(QString hash);
void resumedTorrent(QString hash);
void finishedTorrent(QTorrentHandle& h);
void fullDiskError(QTorrentHandle& h);
void trackerError(QString hash, QString time, QString msg);
@@ -167,7 +179,9 @@ class bittorrent : public QObject{
void fastResumeDataRejected(QString name);
void urlSeedProblem(QString url, QString msg);
void torrentFinishedChecking(QString hash);
void torrent_deleted(QString hash, QString fileName, bool finished);
void torrent_ratio_deleted(QString fileName);
void UPnPError(QString msg);
void UPnPSuccess(QString msg);
};
#endif

View File

@@ -6,7 +6,7 @@
<x>0</x>
<y>0</y>
<width>592</width>
<height>590</height>
<height>655</height>
</rect>
</property>
<property name="windowTitle" >
@@ -477,6 +477,20 @@
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="progressLbl" >
<property name="text" >
<string>Progress:</string>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="progressBar" >
<property name="value" >
<number>0</number>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="spacing" >

View File

@@ -36,6 +36,7 @@
#include <libtorrent/file_pool.hpp>
#include "createtorrent_imp.h"
#include "misc.h"
using namespace libtorrent;
using namespace boost::filesystem;
@@ -43,9 +44,17 @@ using namespace boost::filesystem;
createtorrent::createtorrent(QWidget *parent): QDialog(parent){
setupUi(this);
setAttribute(Qt::WA_DeleteOnClose);
creatorThread = new torrentCreatorThread();
connect(creatorThread, SIGNAL(creationSuccess(QString)), this, SLOT(handleCreationSucess(QString)));
connect(creatorThread, SIGNAL(creationFailure(QString)), this, SLOT(handleCreationFailure(QString)));
connect(creatorThread, SIGNAL(updateProgress(int)), this, SLOT(updateProgressBar(int)));
show();
}
createtorrent::~createtorrent() {
delete creatorThread;
}
void createtorrent::on_addFolder_button_clicked(){
QString dir = QFileDialog::getExistingDirectory(this, tr("Select a folder to add to the torrent"), QDir::homePath(), QFileDialog::ShowDirsOnly);
if(!dir.isEmpty())
@@ -120,11 +129,13 @@ void createtorrent::on_addURLSeed_button_clicked(){
// Subfunction to add files to a torrent_info structure
// Written by Arvid Norberg (libtorrent Author)
void add_files(torrent_info& t, path const& p, path const& l){
qDebug("p: %s, l: %s, l.leaf(): %s", p.string().c_str(), l.string().c_str(), l.leaf().c_str());
path f(p / l);
if (is_directory(f)){
for (directory_iterator i(f), end; i != end; ++i)
add_files(t, p, l / i->leaf());
}else{
qDebug("Adding %s", l.string().c_str());
t.add_file(l, file_size(f));
}
}
@@ -141,6 +152,8 @@ QStringList createtorrent::allItems(QListWidget *list){
// Main function that create a .torrent file
void createtorrent::on_createButton_clicked(){
QString input = textInputPath->text().trimmed();
if (input.endsWith(QDir::separator()))
input.chop(1);
if(input.isEmpty()){
QMessageBox::critical(0, tr("No input path set"), tr("Please type an input path first"));
return;
@@ -157,27 +170,70 @@ void createtorrent::on_createButton_clicked(){
} else {
return;
}
QStringList url_seeds = allItems(URLSeeds_list);
QString comment = txt_comment->toPlainText();
creatorThread->create(input, destination, trackers, url_seeds, comment, check_private->isChecked(), getPieceSize());
}
void createtorrent::handleCreationFailure(QString msg) {
QMessageBox::information(0, tr("Torrent creation"), tr("Torrent creation was unsuccessful, reason: %1").arg(msg));
hide();
}
void createtorrent::handleCreationSuccess(QString path, const char* branch_path, QString hash) {
if(checkStartSeeding->isChecked()) {
// Create save path file
QFile savepath_file(misc::qBittorrentPath()+QString::fromUtf8("BT_backup")+QDir::separator()+hash+QString::fromUtf8(".savepath"));
savepath_file.open(QIODevice::WriteOnly | QIODevice::Text);
savepath_file.write(branch_path);
savepath_file.close();
emit torrent_to_seed(path);
}
QMessageBox::information(0, tr("Torrent creation"), tr("Torrent was created successfully:")+" "+path);
hide();
}
void createtorrent::updateProgressBar(int progress) {
progressBar->setValue(progress);
}
//
// Torrent Creator Thread
//
void torrentCreatorThread::create(QString _input_path, QString _save_path, QStringList _trackers, QStringList _url_seeds, QString _comment, bool _is_private, int _piece_size) {
input_path = _input_path;
save_path = _save_path;
trackers = _trackers;
url_seeds = _url_seeds;
comment = _comment;
is_private = _is_private;
piece_size = _piece_size;
abort = false;
start();
}
void torrentCreatorThread::run() {
emit updateProgress(0);
char const* creator_str = "qBittorrent "VERSION;
try {
boost::intrusive_ptr<torrent_info> t(new torrent_info);
ofstream out(complete(path((const char*)destination.toUtf8())), std::ios_base::binary);
path full_path;
ofstream out(complete(path((const char*)save_path.toUtf8())), std::ios_base::binary);
// Adding files to the torrent
full_path = complete(path(input.toUtf8().data()));
path full_path = complete(path(input_path.toUtf8().data()));
add_files(*t, full_path.branch_path(), full_path.leaf());
if(abort) return;
// Set piece size
int piece_size = getPieceSize();
t->set_piece_size(piece_size);
// Add url seeds
QStringList urlSeeds = allItems(URLSeeds_list);
QString seed;
foreach(seed, urlSeeds){
foreach(seed, url_seeds){
t->add_url_seed(seed.toUtf8().data());
}
for(int i=0; i<trackers.size(); ++i){
t->add_tracker(trackers.at(i).toUtf8().data());
}
if(abort) return;
// calculate the hash for all pieces
file_pool fp;
boost::scoped_ptr<storage_interface> st(default_storage_constructor(t, full_path.branch_path(), fp));
@@ -187,28 +243,26 @@ void createtorrent::on_createButton_clicked(){
st->read(&buf[0], i, 0, t->piece_size(i));
hasher h(&buf[0], t->piece_size(i));
t->set_hash(i, h.final());
emit updateProgress((int)(i*100./(float)num));
if(abort) return;
}
// Set qBittorrent as creator and add user comment to
// torrent_info structure
t->set_creator(creator_str);
t->set_comment((const char*)txt_comment->toPlainText().toUtf8());
t->set_comment((const char*)comment.toUtf8());
// Is private ?
if(check_private->isChecked()){
if(is_private){
t->set_priv(true);
}
if(abort) return;
// create the torrent and print it to out
entry e = t->create_torrent();
libtorrent::bencode(std::ostream_iterator<char>(out), e);
out.flush();
if(checkStartSeeding->isChecked())
emit torrent_to_seed(destination);
emit updateProgress(100);
emit creationSuccess(save_path, full_path.branch_path().string().c_str(), misc::toQString(t->info_hash()));
}
catch (std::exception& e){
std::cerr << e.what() << "\n";
QMessageBox::information(0, tr("Torrent creation"), tr("Torrent creation was unsuccessful, reason: %1").arg(QString::fromUtf8(e.what())));
hide();
return;
emit creationFailure(QString::fromUtf8(e.what()));
}
hide();
QMessageBox::information(0, tr("Torrent creation"), tr("Torrent was created successfully:")+" "+destination);
}

View File

@@ -22,13 +22,48 @@
#ifndef CREATE_TORRENT_IMP_H
#define CREATE_TORRENT_IMP_H
#include <QThread>
#include "ui_createtorrent.h"
class torrentCreatorThread : public QThread {
Q_OBJECT
QString input_path;
QString save_path;
QStringList trackers;
QStringList url_seeds;
QString comment;
bool is_private;
int piece_size;
bool abort;
public:
torrentCreatorThread() {}
~torrentCreatorThread() {
abort = true;
wait();
}
void create(QString _input_path, QString _save_path, QStringList _trackers, QStringList _url_seeds, QString _comment, bool _is_private, int _piece_size);
protected:
void run();
signals:
void creationFailure(QString msg);
void creationSuccess(QString path, const char* branch_path, QString hash);
void updateProgress(int progress);
};
class createtorrent : public QDialog, private Ui::createTorrentDialog{
Q_OBJECT
private:
torrentCreatorThread *creatorThread;
public:
createtorrent(QWidget *parent = 0);
~createtorrent();
QStringList allItems(QListWidget *list);
int getPieceSize() const;
@@ -43,6 +78,9 @@ class createtorrent : public QDialog, private Ui::createTorrentDialog{
void on_removeTracker_button_clicked();
void on_addURLSeed_button_clicked();
void on_removeURLSeed_button_clicked();
void handleCreationFailure(QString msg);
void handleCreationSuccess(QString path, const char* branch_path, QString hash);
void updateProgressBar(int progress);
};
#endif

File diff suppressed because it is too large Load Diff

View File

@@ -73,7 +73,7 @@ void subDownloadThread::run(){
filePath = tmpfile->fileName();
}
delete tmpfile;
FILE *f = fopen(filePath.toUtf8().data(), "w");
FILE *f = fopen(filePath.toUtf8().data(), "wb");
if(!f) {
std::cerr << "couldn't open destination file" << "\n";
return;
@@ -109,8 +109,17 @@ void subDownloadThread::run(){
curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, (username+QString(":")+password).toUtf8().data());
}
}
// TODO: define CURLOPT_WRITEFUNCTION or it will crash on windows
// We have to define CURLOPT_WRITEFUNCTION or it will crash on windows
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, f);
// Verbose
//curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
// No progress info (we don't use it)
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1);
// Redirections
curl_easy_setopt(curl, CURLOPT_AUTOREFERER, 1);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(curl, CURLOPT_MAXREDIRS, -1);
qDebug("Downloading %s", url.toUtf8().data());
res = curl_easy_perform(curl);
/* always cleanup */

File diff suppressed because it is too large Load Diff

View File

@@ -41,6 +41,10 @@ class DownloadingTorrents : public QWidget, public Ui::downloading{
bool delayedSorting;
unsigned int nbTorrents;
Qt::SortOrder delayedSortingOrder;
void hideOrShowColumn(int index);
bool loadHiddenColumns();
void saveHiddenColumns();
QAction* getActionHoSCol(int index);
public:
DownloadingTorrents(QObject *parent, bittorrent *BTSession);
@@ -54,7 +58,7 @@ class DownloadingTorrents : public QWidget, public Ui::downloading{
signals:
void unfinishedTorrentsNumberChanged(unsigned int);
void torrentDoubleClicked(QString hash);
void torrentDoubleClicked(QString hash, bool finished);
void torrentFinished(QString hash);
protected slots:
@@ -65,6 +69,7 @@ class DownloadingTorrents : public QWidget, public Ui::downloading{
void notifyTorrentDoubleClicked(const QModelIndex& index);
void on_actionSet_upload_limit_triggered();
void displayDLListMenu(const QPoint& pos);
void displayDLHoSMenu(const QPoint&);
void on_actionClearLog_triggered();
void displayInfoBarMenu(const QPoint& pos);
void addTorrent(QString hash);
@@ -79,18 +84,28 @@ class DownloadingTorrents : public QWidget, public Ui::downloading{
void setRowColor(int row, QColor color);
void displayDownloadingUrlInfos(QString url);
void showProperties(const QModelIndex &index);
void hideOrShowColumnName();
void hideOrShowColumnSize();
void hideOrShowColumnProgress();
void hideOrShowColumnDownSpeed();
void hideOrShowColumnUpSpeed();
void hideOrShowColumnSeedersLeechers();
void hideOrShowColumnRatio();
void hideOrShowColumnEta();
void displayUPnPError(QString msg);
void displayUPnPSuccess(QString msg);
public slots:
void updateDlList();
void setInfoBar(QString info, QColor color=QPalette::WindowText);
void setInfoBar(QString info, QColor color=QApplication::palette().color(QPalette::WindowText));
void pauseTorrent(QString hash);
void resumeTorrent(QString hash);
void updateRatio();
void deleteTorrent(QString hash);
void setBottomTabEnabled(unsigned int index, bool b);
void propertiesSelection();
void sortProgressColumnDelayed();
void updateFileSizeAndProgress(QString hash);
void showPropertiesFromHash(QString hash);
};

View File

@@ -250,11 +250,13 @@ void engineSelectDlg::setRowColor(int row, QString color){
bool engineSelectDlg::checkInstalled(QString plugin_name) const {
QProcess nova;
QStringList params;
params << misc::qBittorrentPath()+"search_engine"+QDir::separator()+"nova2.py";
params << "--supported_engines";
nova.start(misc::qBittorrentPath()+"search_engine"+QDir::separator()+"nova2.py", params, QIODevice::ReadOnly);
nova.start("python", params, QIODevice::ReadOnly);
nova.waitForStarted();
nova.waitForFinished();
QByteArray result = nova.readAll();
result = result.replace("\r", "");
result = result.replace("\n", "");
QList<QByteArray> plugins_list = result.split(',');
return plugins_list.contains(plugin_name.toUtf8());
@@ -280,11 +282,13 @@ void engineSelectDlg::loadSupportedSearchEngines(bool first) {
QStringList params;
// Ask nova core for the supported search engines
QProcess nova;
params << misc::qBittorrentPath()+"search_engine"+QDir::separator()+"nova2.py";
params << "--supported_engines";
nova.start(misc::qBittorrentPath()+"search_engine"+QDir::separator()+"nova2.py", params, QIODevice::ReadOnly);
nova.start("python", params, QIODevice::ReadOnly);
nova.waitForStarted();
nova.waitForFinished();
QByteArray result = nova.readAll();
result = result.replace("\r", "");
result = result.replace("\n", "");
qDebug("read: %s", result.data());
QByteArray e;
@@ -295,11 +299,13 @@ void engineSelectDlg::loadSupportedSearchEngines(bool first) {
installed_engines[en] = old_engines.value(en, true);
}
params.clear();
params << misc::qBittorrentPath()+"search_engine"+QDir::separator()+"nova2.py";
params << "--supported_engines_infos";
nova.start(misc::qBittorrentPath()+"search_engine"+QDir::separator()+"nova2.py", params, QIODevice::ReadOnly);
nova.start("python", params, QIODevice::ReadOnly);
nova.waitForStarted();
nova.waitForFinished();
result = nova.readAll();
result = result.replace("\r", "");
result = result.replace("\n", "");
qDebug("read: %s", result.data());
unsigned int i = 0;

186
src/eventmanager.cpp Normal file
View File

@@ -0,0 +1,186 @@
/*
* Copyright (C) 2007 by Ishan Arora
* ishanarora@gmail.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "eventmanager.h"
#include "json.h"
#include <QDebug>
EventManager::EventManager(QObject *parent)
: QObject(parent)
{
revision = 0;
}
void EventManager::update(QVariantMap event)
{
revision++;
events << QPair<ulong, QVariantMap>(revision, event);
emit updated();
qDebug("Added the following event");
qDebug() << event;
/* QLinkedList<QPair<ulong, QVariantMap> >::iterator i;
for (i = events.begin(); i != events.end(); i++)
qDebug() << *i;*/
}
QVariant EventManager::querySince(ulong r) const
{
QVariantList list;
QLinkedListIterator<QPair<ulong, QVariantMap> > i(events);
i.toBack();
while (i.hasPrevious())
{
QPair<ulong, QVariantMap> pair = i.previous();
if (pair.first <= r)
break;
list.prepend(QVariant(pair.second));
}
QVariantMap map;
map["events"] = QVariant(list);
map["revision"] = QVariant((qulonglong) revision);
return QVariant(map);
}
bool EventManager::isUpdated(ulong r) const
{
return (r < revision);
}
void EventManager::addedTorrent(QString, QTorrentHandle& h)
{
QVariantMap event;
event["type"] = QVariant("add");
event["hash"] = QVariant(h.hash());
event["name"] = QVariant(h.name());
update(event);
}
void EventManager::deletedTorrent(QString hash)
{
QVariantMap event;
event["type"] = QVariant("delete");
event["hash"] = QVariant(hash);
QLinkedList<QPair<ulong, QVariantMap> >::iterator i = events.end();
bool loop = true;
while (loop && i != events.begin()) {
--i;
QVariantMap oldevent = i->second;
if(oldevent["hash"] == QVariant(hash))
{
if(oldevent["type"] == QVariant("add"))
loop = false;
i = events.erase(i);
}
}
update(event);
}
void EventManager::modifiedTorrent(QTorrentHandle h)
{
QString hash = h.hash();
QVariantMap event;
QVariant v;
if(h.is_paused())
v = QVariant("paused");
else
{
switch(h.state())
{
case torrent_status::finished:
case torrent_status::seeding:
v = QVariant("seeding");
break;
case torrent_status::checking_files:
case torrent_status::queued_for_checking:
v = QVariant("checking");
break;
case torrent_status::connecting_to_tracker:
if(h.download_payload_rate() > 0)
v = QVariant("downloading");
else
v = QVariant("connecting");
break;
case torrent_status::downloading:
case torrent_status::downloading_metadata:
if(h.download_payload_rate() > 0)
v = QVariant("downloading");
else
v = QVariant("stalled");
break;
default:
v = QVariant();
}
}
if(modify(hash, "state", v))
event["state"] = v;
v = QVariant((qlonglong)h.actual_size());
if(modify(hash, "size", v))
event["size"] = v;
v = QVariant(h.progress());
if(modify(hash, "progress", v))
event["progress"] = v;
v = QVariant(h.download_payload_rate());
if(modify(hash, "dlspeed", v))
event["dlspeed"] = v;
v = QVariant(h.upload_payload_rate());
if(modify(hash, "upspeed", v))
event["upspeed"] = v;
if(event.size() > 0)
{
event["type"] = QVariant("modify");
event["hash"] = QVariant(hash);
update(event);
}
}
bool EventManager::modify(QString hash, QString key, QVariant value)
{
QLinkedList<QPair<ulong, QVariantMap> >::iterator i = events.end();
while (i != events.begin()) {
--i;
QVariantMap event = i->second;
if(event["hash"] == QVariant(hash))
{
if(event["type"] == QVariant("add"))
return true;
if(event.contains(key))
{
if(event[key] == value)
return false;
else
{
if(event.size() <= 3)
i = events.erase(i);
else
i->second.remove(key);
return true;
}
}
}
}
return true;
}

55
src/eventmanager.h Normal file
View File

@@ -0,0 +1,55 @@
/*
* Copyright (C) 2007 by Ishan Arora
* ishanarora@gmail.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef EVENTMANAGER_H
#define EVENTMANAGER_H
#include "qtorrenthandle.h"
#include <QLinkedList>
#include <QPair>
#include <QVariant>
class EventManager : public QObject
{
Q_OBJECT
private:
ulong revision;
QLinkedList<QPair <ulong, QVariantMap> > events;
bool modify(QString hash, QString key, QVariant value);
protected:
void update(QVariantMap event);
public:
EventManager(QObject *parent = 0);
QVariant querySince(ulong r) const;
bool isUpdated(ulong r) const;
signals:
void updated();
public slots:
void addedTorrent(QString path, QTorrentHandle& h);
void deletedTorrent(QString hash);
void modifiedTorrent(QTorrentHandle h);
};
#endif

383
src/filterParserThread.h Normal file

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More