You've already forked qBittorrent
mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-11-07 01:22:30 +01:00
Compare commits
74 Commits
release-3.
...
release-2.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fad329b7e | ||
|
|
bdaf16123f | ||
|
|
6b56a1f10f | ||
|
|
204b02a480 | ||
|
|
eb7a844099 | ||
|
|
84dbb76331 | ||
|
|
fb21944aae | ||
|
|
14625a565d | ||
|
|
3f875324d8 | ||
|
|
03f2293b2a | ||
|
|
47482586a1 | ||
|
|
96fd1624ce | ||
|
|
8ea2312b4f | ||
|
|
9382de64d6 | ||
|
|
b0e3549780 | ||
|
|
d2abe18497 | ||
|
|
ede004148f | ||
|
|
91bfe3585c | ||
|
|
f99adf8e9a | ||
|
|
ebab7c5760 | ||
|
|
baf5fe45b4 | ||
|
|
54793e4195 | ||
|
|
e8da08906c | ||
|
|
ae7e9cd1df | ||
|
|
7679b852b8 | ||
|
|
eda04b3ef3 | ||
|
|
3ef6e7bf65 | ||
|
|
146cf9a435 | ||
|
|
dff6b057b9 | ||
|
|
3b7448dfc7 | ||
|
|
4e4ac771a9 | ||
|
|
06a376d014 | ||
|
|
b3d2f9b701 | ||
|
|
055a99239b | ||
|
|
e779c9a7db | ||
|
|
b0f7f5ae58 | ||
|
|
512ab58832 | ||
|
|
9ad088682c | ||
|
|
d2fad8249c | ||
|
|
20fb7c3adf | ||
|
|
c4fdfec420 | ||
|
|
a3e03e739c | ||
|
|
9846dc0fff | ||
|
|
1b29b148d8 | ||
|
|
6dab35cb8e | ||
|
|
6b2d922005 | ||
|
|
1d92ae6382 | ||
|
|
62f4d6386a | ||
|
|
e74ef4c6fd | ||
|
|
282ee0e879 | ||
|
|
697d2ccb71 | ||
|
|
71d163d743 | ||
|
|
83685942de | ||
|
|
6f34c81014 | ||
|
|
5e826dffc8 | ||
|
|
b4dc66020c | ||
|
|
cb4741ed89 | ||
|
|
4c3976e5df | ||
|
|
fd7fb115ff | ||
|
|
197d5b3a05 | ||
|
|
624d6aa6a1 | ||
|
|
28d7dc137b | ||
|
|
351d84e2f7 | ||
|
|
774b8f4fd6 | ||
|
|
2fc6470696 | ||
|
|
1038b00553 | ||
|
|
c3b37b4f1f | ||
|
|
41faf341cc | ||
|
|
44e92a7f3d | ||
|
|
599f956269 | ||
|
|
79a9606e86 | ||
|
|
5b576baf67 | ||
|
|
aa3ce90478 | ||
|
|
2c433e35b0 |
5
AUTHORS
5
AUTHORS
@@ -92,9 +92,8 @@ Translations authors:
|
|||||||
- Georgian: Beqa Arabuli (arabulibeqa@yahoo.com)
|
- Georgian: Beqa Arabuli (arabulibeqa@yahoo.com)
|
||||||
- German: Niels Hoffmann (zentralmaschine@users.sourceforge.net)
|
- German: Niels Hoffmann (zentralmaschine@users.sourceforge.net)
|
||||||
- Greek: Tsvetan Bankov (emerge_life@users.sourceforge.net) and Stephanos Antaris (santaris@csd.auth.gr)
|
- Greek: Tsvetan Bankov (emerge_life@users.sourceforge.net) and Stephanos Antaris (santaris@csd.auth.gr)
|
||||||
- Hebrew: David Deutsch (d.deffo@gmail.com)
|
|
||||||
- Hungarian: Majoros Péter (majoros.j.p@t-online.hu)
|
- Hungarian: Majoros Péter (majoros.j.p@t-online.hu)
|
||||||
- Italian: bovirus (bovirus@live.it) and Matteo Sechi (bu17714@gmail.com)
|
- Italian: Matteo Sechi (bu17714@gmail.com)
|
||||||
- Japanese: Masato Hashimoto (cabezon.hashimoto@gmail.com)
|
- Japanese: Masato Hashimoto (cabezon.hashimoto@gmail.com)
|
||||||
- Korean: Jin Woo Sin (jin828sin@users.sourceforge.net)
|
- Korean: Jin Woo Sin (jin828sin@users.sourceforge.net)
|
||||||
- Lithuanian: Naglis Jonaitis (njonaitis@gmail.com)
|
- Lithuanian: Naglis Jonaitis (njonaitis@gmail.com)
|
||||||
@@ -108,5 +107,5 @@ Translations authors:
|
|||||||
- Spanish: Francisco Luque Contreras (frannoe@ya.com)
|
- Spanish: Francisco Luque Contreras (frannoe@ya.com)
|
||||||
- Swedish: Daniel Nylander (po@danielnylander.se)
|
- Swedish: Daniel Nylander (po@danielnylander.se)
|
||||||
- Turkish: Hasan Yilmaz (iletisim@hedefturkce.com)
|
- Turkish: Hasan Yilmaz (iletisim@hedefturkce.com)
|
||||||
- Ukrainian: Oleh Prypin (blaxpirit@gmail.com)
|
- Ukrainian: Andrey Shpachenko (masterfix@users.sourceforge.net) and Oleh Prypin (blaxpirit@gmail.com)
|
||||||
license: GPLv2
|
license: GPLv2
|
||||||
|
|||||||
89
Changelog
89
Changelog
@@ -1,55 +1,52 @@
|
|||||||
* Sun Oct 7 2012 - Christophe Dumez <chris@qbittorrent.org> - v3.0.6
|
* Sun Mar 18 2012 - Christophe Dumez <chris@qbittorrent.org> - v2.9.7
|
||||||
- BUGFIX: Fix unicode support for command-line arguments on Windows (closes #139)
|
- BUGFIX: Fix important HTTP request parsing bug (Web UI)
|
||||||
- BUGFIX: Do not store created torrent in memory before writing it to a file (closes #133)
|
|
||||||
- BUGFIX: No longer fallback to ANY interface if the user-selected interface cannot be found (closes #143)
|
|
||||||
- BUGFIX: Fix timezone parsing in RSS (closes #136)
|
|
||||||
- BUGFIX: Fix cookie support for RSS feeds (closes #119)
|
|
||||||
|
|
||||||
* Sun Sep 30 2012 - Christophe Dumez <chris@qbittorrent.org> - v3.0.5
|
* Sat Mar 17 2012 - Christophe Dumez <chris@qbittorrent.org> - v2.9.6
|
||||||
- BUGFIX: Disabling systray icon no longer disables file association settings (closes #114)
|
- BUGFIX: Fix download first/last pieces state reporting
|
||||||
- BUGFIX: Import new trackers from magnet link in case of duplicate torrent (closes #111)
|
- BUGFIX: Fix name of progress column in torrent content panel
|
||||||
- BUGFIX: Fix "Skip hash check" feature in torrent import dialog (closes #128)
|
- BUGFIX: Disable system tray icon on Mac OS X
|
||||||
- BUGFIX: Several Web UI connection fixes
|
- BUGFIX: RSS downloader should not ignore "Do not start automatically" rule (closes #946910)
|
||||||
- BUGFIX: Add Basque locale to Web UI
|
- BUGFIX: Fix DHT port setting in Web UI (Closes #952182)
|
||||||
|
- BUGFIX: Fix possible Web UI authentication problem when using SSL (closes #941343)
|
||||||
|
- BUGFIX: Fix possible issues with folder removal when removing a torrent
|
||||||
|
- I18N: Add Basque translation
|
||||||
|
|
||||||
* Tue Sep 18 2012 - Christophe Dumez <chris@qbittorrent.org> - v3.0.4
|
* Sat Feb 18 2012 - Christophe Dumez <chris@qbittorrent.org> - v2.9.5
|
||||||
- BUGFIX: Fix issue with downloads starting from scratch on startup if temporary
|
- BUGFIX: Fix crash when disabling then reenabling RSS
|
||||||
directory setting is enabled.
|
- BUGFIX: Fix duplicate torrent detection when adding a magnet link
|
||||||
|
- BUGFIX: Fix import of new trackers when adding a torrent with same hash (Closes #747000)
|
||||||
|
- BUGFIX: Fix possible redownload of torrents marked as read (Closes #927495)
|
||||||
|
- BUGFIX: Properly remove RSS feed settings/history upon feed removal
|
||||||
|
|
||||||
* Sun Sep 16 2012 - Christophe Dumez <chris@qbittorrent.org> - v3.0.3
|
* Sat Feb 18 2012 - Christophe Dumez <chris@qbittorrent.org> - v2.9.4
|
||||||
- BUGFIX: Fix issue with temporary directory not being taken into consideration (closes #94)
|
- BUGFIX: qBittorrent does not handle redirection to relative URLs correctly (Closes #919905)
|
||||||
- BUGFIX: Address encoding issues when using search engine on Windows (closes #29)
|
- BUGFIX: Cmd+M minimizes main window on Mac OS X (Closes #928216)
|
||||||
- BUGFIX: Bypass cache when uploading a torrent file in Web UI (closes #68)
|
- BUGFIX: Cmd+Del removes torrents on Mac OS X (Closes #928852)
|
||||||
- BUGFIX: "Completed On" column is not updated until restart (closes #84)
|
- BUGFIX: Fix potential bug when moving single file torrents to tmp folder (closes #932861)
|
||||||
- BUGFIX: Fix possible build error on some systems
|
- BUGFIX: Fix torrent import dialog layout (Closes #930932)
|
||||||
- I18N: Add hebrew translation
|
- BUGFIX: Prevent log window buffer from filling up (Closes #929673)
|
||||||
|
- I18N: Add Belarusian translation
|
||||||
|
|
||||||
* Sat Sep 1 2012 - Christophe Dumez <chris@qbittorrent.org> - v3.0.2
|
* Thu Dec 29 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.9.3
|
||||||
- FEATURE: Add "clear" functionality to search field (closes #59)
|
- BUGFIX: Fix btdigg plugin (Python3 support + torrent name in magnet links)
|
||||||
- BUGFIX: Attempt to use qBittorrent icon from theme if available (closes #49)
|
- BUGFIX: Fix banning of IPv6 peers (Closes #885021)
|
||||||
- BUGFIX: Fix crash when a fastresume file is empty (closes #52)
|
- BUGFIX: Fix torrent addition dialog layout problem (Closes #84650522)
|
||||||
- BUGFIX: Fix encoding problem for detected XDG Download folder (closes #53)
|
- BUGFIX: Do not report any progress for disabled files (Closes #56731485)
|
||||||
- BUGFIX: Improve performance when showing torrent content panel (Improves #24)
|
- BUGFIX: Make torrent sorting case insensitive (Closes #857154)
|
||||||
- BUGFIX: Fix label-based filtering of torrents whose label contains special characters
|
- BUGFIX: Improve Web UI usability of small devices
|
||||||
- BUGFIX: Fix possible crash due to labels (closes #64)
|
- BUGFIX: Program updater: More reliable version detection / comparison
|
||||||
|
- I18N: Add Georgian translation
|
||||||
|
|
||||||
* Tue Aug 21 2012 - Christophe Dumez <chris@qbittorrent.org> - v3.0.1
|
* Sat Oct 29 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.9.2
|
||||||
- BUGFIX: Fix possible crash when adding a tracker to a magnet torrent without metadata (Closes #1034254)
|
- BUGFIX: Fix mimimum dimensions for torrent addition dialog
|
||||||
- BUGFIX: Remember queue position for torrents without metadata (closes #17)
|
- BUGFIX: Remove dependency on boost-datetime
|
||||||
- BUGFIX: Fix crash when using unauthorized characters in label names (closes #19)
|
- BUGFIX: Remove dependency on boost-filesystem (libtorrent v0.16.x)
|
||||||
- BUGFIX: Fix search plugins updating (closes #25)
|
|
||||||
- BUGFIX: Make uTP connections rate limited by default
|
|
||||||
|
|
||||||
* Thu Aug 09 2012 - Christophe Dumez <chris@qbittorrent.org> - v3.0.0
|
* Sun Oct 23 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.9.1
|
||||||
- FEATURE: Brand new torrent addition dialog
|
- BUGFIX: Add support for speed limits scheduling (Web UI)
|
||||||
- FEATURE: Add the ability to choose the save path when using magnet links (mutoso)
|
- BUGFIX: Fix ratio calculation for purely seeded torrents
|
||||||
- FEATURE: Add support for adding multiple local torrents at once (Web UI)
|
- I18N: Update Russian translation
|
||||||
- COSMETIC: Improve style of left panel
|
- COSMETIC: Torrent addition dialog layout fixes
|
||||||
- BUGFIX: Lower panels no longer gets disabled
|
|
||||||
- BUGFIX: Major code refactoring and various optimizations.
|
|
||||||
- BUGFIX: No longer strip root folder from torrent files
|
|
||||||
- OTHER: Drop support for libtorrent v0.14.x
|
|
||||||
- OTHER: Drop support for Qt 4.5
|
|
||||||
|
|
||||||
* Sat Oct 08 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.9.0
|
* Sat Oct 08 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.9.0
|
||||||
- FEATURE: Add file association settings to program preferences (Windows)
|
- FEATURE: Add file association settings to program preferences (Windows)
|
||||||
|
|||||||
6
INSTALL
6
INSTALL
@@ -10,11 +10,11 @@ qBittorrent - A BitTorrent client in C++ / Qt4
|
|||||||
will install and execute qBittorrent hopefully without any problems.
|
will install and execute qBittorrent hopefully without any problems.
|
||||||
|
|
||||||
Dependencies:
|
Dependencies:
|
||||||
- Qt >= 4.6.0 (libqtgui, libqtcore, libqtnetwork, libqtxml, libqtdbus/optional)
|
- Qt >= 4.5.0 (libqtgui, libqtcore, libqtnetwork, libqtxml, libqtdbus/optional)
|
||||||
|
|
||||||
- pkg-config executable
|
- pkg-config executable
|
||||||
|
|
||||||
- libtorrent-rasterbar by Arvid Norberg (>= 0.15.0)
|
- libtorrent-rasterbar by Arvid Norberg (>= 0.14.4 REQUIRED, compatible with v0.15.x/v0.16.x)
|
||||||
-> http://www.libtorrent.net
|
-> http://www.libtorrent.net
|
||||||
Be careful: another library (the one used by rTorrent) uses a similar name.
|
Be careful: another library (the one used by rTorrent) uses a similar name.
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ qBittorrent - A BitTorrent client in C++ / Qt4
|
|||||||
|
|
||||||
- pkg-config executable
|
- pkg-config executable
|
||||||
|
|
||||||
- libtorrent-rasterbar by Arvid Norberg (>= v0.15.0)
|
- libtorrent-rasterbar by Arvid Norberg (>= 0.14.4 REQUIRED, >= v0.15.0 ADVISED)
|
||||||
-> http://www.libtorrent.net
|
-> http://www.libtorrent.net
|
||||||
Be careful: another library (the one used by rTorrent) uses a similar name.
|
Be careful: another library (the one used by rTorrent) uses a similar name.
|
||||||
|
|
||||||
|
|||||||
16
README.os2
16
README.os2
@@ -27,6 +27,7 @@ First you need to create the conf.pri file in the same dir as this readme.os2 is
|
|||||||
the conf.pri file has the following content:
|
the conf.pri file has the following content:
|
||||||
|
|
||||||
##### conf.pri content beginn #####
|
##### conf.pri content beginn #####
|
||||||
|
PREFIX = .
|
||||||
BINDIR = ./bin
|
BINDIR = ./bin
|
||||||
INCDIR = ./include
|
INCDIR = ./include
|
||||||
LIBDIR = ./lib
|
LIBDIR = ./lib
|
||||||
@@ -42,10 +43,7 @@ LIBS += -Lx:/trees/libtorrent/trunk/src/.libs \
|
|||||||
|
|
||||||
Of course all the above path references have to be adjusted to your build env.
|
Of course all the above path references have to be adjusted to your build env.
|
||||||
|
|
||||||
Now you can either do a normal build or a shadow build. A shadow build has the
|
It should now be easy to build qBittorrent:
|
||||||
advantage that no created files are in the same dir as the sources are.
|
|
||||||
|
|
||||||
For a normal build do the following:
|
|
||||||
|
|
||||||
Simply type:
|
Simply type:
|
||||||
$ qmake
|
$ qmake
|
||||||
@@ -53,16 +51,6 @@ $ qmake
|
|||||||
Followed by:
|
Followed by:
|
||||||
$ make
|
$ make
|
||||||
|
|
||||||
For a shadow build do the following:
|
|
||||||
given your sources are in x:\trees\qbittorrent\trunk create a
|
|
||||||
x:\trees\qbittorrent\build directory
|
|
||||||
|
|
||||||
Now switch to the created directory and type:
|
|
||||||
$ qmake ..\trunk
|
|
||||||
|
|
||||||
Followed by:
|
|
||||||
$ make
|
|
||||||
|
|
||||||
If all works fine you should get a working qbittorrent executable.
|
If all works fine you should get a working qbittorrent executable.
|
||||||
|
|
||||||
If you have any question regarding the eCS (OS/2) port of qBittorrent you can meet me (_diver) on IRC:
|
If you have any question regarding the eCS (OS/2) port of qBittorrent you can meet me (_diver) on IRC:
|
||||||
|
|||||||
12
configure
vendored
12
configure
vendored
@@ -325,7 +325,7 @@ cat >$1/modules.cpp <<EOT
|
|||||||
#line 1 "qt4.qcm"
|
#line 1 "qt4.qcm"
|
||||||
/*
|
/*
|
||||||
-----BEGIN QCMOD-----
|
-----BEGIN QCMOD-----
|
||||||
name: Qt >= 4.6
|
name: Qt >= 4.5
|
||||||
arg: enable-debug, Enable debug mode
|
arg: enable-debug, Enable debug mode
|
||||||
arg: disable-gui, Disable qBittorrent Graphical user interface for headless running
|
arg: disable-gui, Disable qBittorrent Graphical user interface for headless running
|
||||||
-----END QCMOD-----
|
-----END QCMOD-----
|
||||||
@@ -334,8 +334,8 @@ class qc_qt4 : public ConfObj
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
qc_qt4(Conf *c) : ConfObj(c) {}
|
qc_qt4(Conf *c) : ConfObj(c) {}
|
||||||
QString name() const { return "Qt >= 4.6"; }
|
QString name() const { return "Qt >= 4.5"; }
|
||||||
QString shortname() const { return "Qt 4.6"; }
|
QString shortname() const { return "Qt 4.5"; }
|
||||||
bool exec()
|
bool exec()
|
||||||
{
|
{
|
||||||
// NOX mode
|
// NOX mode
|
||||||
@@ -356,7 +356,7 @@ public:
|
|||||||
#else
|
#else
|
||||||
conf->addExtra("MANPREFIX = \$\$PREFIX/share");
|
conf->addExtra("MANPREFIX = \$\$PREFIX/share");
|
||||||
#endif
|
#endif
|
||||||
return(QT_VERSION >= 0x040600);
|
return(QT_VERSION >= 0x040500);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
#line 1 "qt-dbus.qcm"
|
#line 1 "qt-dbus.qcm"
|
||||||
@@ -419,11 +419,11 @@ class qc_libtorrent_rasterbar : public ConfObj
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
qc_libtorrent_rasterbar(Conf *c) : ConfObj(c) {}
|
qc_libtorrent_rasterbar(Conf *c) : ConfObj(c) {}
|
||||||
QString name() const { return "libtorrent-rasterbar >= 0.15.0"; }
|
QString name() const { return "libtorrent-rasterbar >= 0.14.4"; }
|
||||||
QString shortname() const { return "libtorrent-rasterbar"; }
|
QString shortname() const { return "libtorrent-rasterbar"; }
|
||||||
bool exec(){
|
bool exec(){
|
||||||
QStringList incs;
|
QStringList incs;
|
||||||
QString req_ver = "0.15.0";
|
QString req_ver = "0.14.4";
|
||||||
QString version, libs, other;
|
QString version, libs, other;
|
||||||
VersionMode mode = VersionMin;
|
VersionMode mode = VersionMin;
|
||||||
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, req_ver, &version, &incs, &libs, &other))
|
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, req_ver, &version, &incs, &libs, &other))
|
||||||
|
|||||||
129
install.os2
129
install.os2
@@ -11,7 +11,7 @@ QBittorrent installation
|
|||||||
|
|
||||||
3. INSTALLATION
|
3. INSTALLATION
|
||||||
|
|
||||||
4. BUGREPORTS
|
4. CONTACT
|
||||||
|
|
||||||
5. CREDITS
|
5. CREDITS
|
||||||
|
|
||||||
@@ -29,70 +29,17 @@ Welcome to QBittorrent port for OS/2 and eComStation.
|
|||||||
2. REQUIREMENTS
|
2. REQUIREMENTS
|
||||||
===============
|
===============
|
||||||
|
|
||||||
The following requirements can be installed either by rpm or by zip files.
|
* klibc 0.6.3 or later
|
||||||
|
|
||||||
RPM Installation:
|
ftp://ftp.netlabs.org/pub/gcc/libc-0_6_3-csd3.wpi
|
||||||
|
|
||||||
klibc
|
* openssl 1.0
|
||||||
-----
|
|
||||||
|
|
||||||
1. yum install libc
|
ftp://ftp.netlabs.org/pub/unixos2/ssl10.zip
|
||||||
|
|
||||||
openssl 1.0
|
* Qt4 dll
|
||||||
-----------
|
|
||||||
|
|
||||||
1. yum install openssl
|
see http://svn.netlabs.org/qt4 for more information whats needed and where to get the latest
|
||||||
|
|
||||||
pthread
|
|
||||||
-------
|
|
||||||
|
|
||||||
1. yum install pthread
|
|
||||||
|
|
||||||
GCC4Core
|
|
||||||
--------
|
|
||||||
|
|
||||||
1. yum install libgcc
|
|
||||||
2. yum install gcc-stack-protector
|
|
||||||
3. yum install gcc-stdc++-shared-library
|
|
||||||
4. yum install gcc-supc++-shared-library
|
|
||||||
|
|
||||||
Qt4 dll
|
|
||||||
-------
|
|
||||||
|
|
||||||
1. yum install libqt4
|
|
||||||
|
|
||||||
|
|
||||||
ZIP Installation:
|
|
||||||
|
|
||||||
klibc
|
|
||||||
-----
|
|
||||||
|
|
||||||
1. Download klibc 0.6.5 or better (see http://svn.netlabs.org/libc for more information)
|
|
||||||
2. Install the files to your libpath eg x:\ecs\dll
|
|
||||||
|
|
||||||
openssl 1.0
|
|
||||||
-----------
|
|
||||||
|
|
||||||
1. Download the zip file from http://rpm.netlabs.org/release/00/zip
|
|
||||||
2. Install the files to your libpath eg. x:\ecs\dll
|
|
||||||
|
|
||||||
pthread
|
|
||||||
-------
|
|
||||||
|
|
||||||
1. Download pthread 2012-03-13 or better from http://rpm.netlabs.org/release/00/zip
|
|
||||||
2. Install the files to your libpath eg. x:\ecs\dll
|
|
||||||
|
|
||||||
GCC4Core
|
|
||||||
--------
|
|
||||||
|
|
||||||
1. Download GCC4Core 1.2.1 or better from http://ftp.netlabs.org/pub/gcc
|
|
||||||
2. Install the files to your libpath eg. x:\ecs\dll
|
|
||||||
|
|
||||||
Qt4 dll
|
|
||||||
-------
|
|
||||||
|
|
||||||
1. Download Qt4 4.7.3 or better (see http://svn.netlabs.org/qt4 for more information)
|
|
||||||
2. Install the files according to the readme
|
|
||||||
|
|
||||||
|
|
||||||
3. INSTALLATION
|
3. INSTALLATION
|
||||||
@@ -100,6 +47,30 @@ Qt4 dll
|
|||||||
|
|
||||||
To install QBittorrent, do the following:
|
To install QBittorrent, do the following:
|
||||||
|
|
||||||
|
klibc
|
||||||
|
-----
|
||||||
|
|
||||||
|
1. Download klibc 0.6.3 csd3 or later.
|
||||||
|
2. Install the package by double-clicking on the WPI file.
|
||||||
|
|
||||||
|
|
||||||
|
openssl 1.0
|
||||||
|
-----------
|
||||||
|
|
||||||
|
1. Download the zip file
|
||||||
|
2. Install the files to your libpath eg. x:\ecs\dll
|
||||||
|
|
||||||
|
Qt4 dll
|
||||||
|
-------
|
||||||
|
|
||||||
|
1. Download the package
|
||||||
|
2. Install the package by double-clicking on the wpi file.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
QBittorrent
|
||||||
|
-----------
|
||||||
|
|
||||||
1. Create a directory for QBittorrent.
|
1. Create a directory for QBittorrent.
|
||||||
2. Extract the QBittorrent package to the new directory.
|
2. Extract the QBittorrent package to the new directory.
|
||||||
3. Create a WPS object for QBittorrent.exe.
|
3. Create a WPS object for QBittorrent.exe.
|
||||||
@@ -107,13 +78,18 @@ To install QBittorrent, do the following:
|
|||||||
5. Happy torrenting
|
5. Happy torrenting
|
||||||
|
|
||||||
|
|
||||||
4. BUGREPORTS
|
|
||||||
=============
|
|
||||||
|
|
||||||
Please create bugreports at http://svn.netlabs.org/qtapps
|
4. CONTACT
|
||||||
|
==========
|
||||||
|
|
||||||
|
Please send bugreports to:
|
||||||
|
|
||||||
|
ecs@aroa.ch
|
||||||
|
|
||||||
Only bug reports with a reproducable bug are accepted. :-)
|
Only bug reports with a reproducable bug are accepted. :-)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
5. CREDITS
|
5. CREDITS
|
||||||
==========
|
==========
|
||||||
|
|
||||||
@@ -146,33 +122,6 @@ development, you can do so in one of the following ways:
|
|||||||
7. HISTORY
|
7. HISTORY
|
||||||
==========
|
==========
|
||||||
|
|
||||||
2012-09-19
|
|
||||||
|
|
||||||
* updated to 3.0.4 code level of QBittorrent
|
|
||||||
* updated libtorrent to 0.16.3 level
|
|
||||||
|
|
||||||
2012-09-06
|
|
||||||
|
|
||||||
* updated to 3.0.2 code level of QBittorrent
|
|
||||||
|
|
||||||
2012-05-14
|
|
||||||
|
|
||||||
* updated to 2.9.8 code level of QBittorrent
|
|
||||||
|
|
||||||
2012-03-15
|
|
||||||
|
|
||||||
* updated to 2.9.5 code level of QBittorrent
|
|
||||||
|
|
||||||
2011-09-26
|
|
||||||
|
|
||||||
* updated to 2.8.5 code level of QBittorrent
|
|
||||||
* updated to Qt 4.7.3
|
|
||||||
|
|
||||||
2011-06-20
|
|
||||||
|
|
||||||
* updated to 2.7.3 code level of QBittorrent
|
|
||||||
* updated libtorrent to 0.15.6 level
|
|
||||||
|
|
||||||
2010-12-23
|
2010-12-23
|
||||||
|
|
||||||
* updated to 2.5.2 code level of QBittorrent
|
* updated to 2.5.2 code level of QBittorrent
|
||||||
|
|||||||
45
macxconf.pri
45
macxconf.pri
@@ -5,7 +5,6 @@ DATADIR = /usr/local/share
|
|||||||
# Use pkg-config to get all necessary libtorrent DEFINES
|
# Use pkg-config to get all necessary libtorrent DEFINES
|
||||||
CONFIG += link_pkgconfig
|
CONFIG += link_pkgconfig
|
||||||
PKGCONFIG += libtorrent-rasterbar
|
PKGCONFIG += libtorrent-rasterbar
|
||||||
DEFINES += BOOST_ASIO_DYN_LINK
|
|
||||||
|
|
||||||
# Special include/libs paths (macports)
|
# Special include/libs paths (macports)
|
||||||
INCLUDEPATH += /usr/include/openssl /usr/include /opt/local/include/boost /opt/local/include
|
INCLUDEPATH += /usr/include/openssl /usr/include /opt/local/include/boost /opt/local/include
|
||||||
@@ -16,50 +15,16 @@ LIBS += -lssl -lcrypto
|
|||||||
# Boost system lib
|
# Boost system lib
|
||||||
LIBS += -lboost_system-mt
|
LIBS += -lboost_system-mt
|
||||||
# Boost filesystem lib (Not needed for libtorrent >= 0.16.0)
|
# Boost filesystem lib (Not needed for libtorrent >= 0.16.0)
|
||||||
#LIBS += -lboost_filesystem-mt
|
LIBS += -lboost_filesystem-mt
|
||||||
# Carbon
|
# Carbon
|
||||||
LIBS += -framework Carbon -framework IOKit
|
LIBS += -framework Carbon -framework IOKit
|
||||||
|
|
||||||
document_icon.path = Contents/Resources
|
document_icon.path = Contents/Resources
|
||||||
document_icon.files = mac/qBitTorrentDocument.icns
|
document_icon.files = Icons/qBitTorrentDocument.icns
|
||||||
|
|
||||||
QMAKE_BUNDLE_DATA += document_icon
|
QMAKE_BUNDLE_DATA += document_icon
|
||||||
|
ICON = Icons/qbittorrent_mac.icns
|
||||||
qt_conf.path = Contents/Resources
|
QMAKE_INFO_PLIST = Info.plist
|
||||||
qt_conf.files = mac/qt.conf
|
|
||||||
QMAKE_BUNDLE_DATA += qt_conf
|
|
||||||
|
|
||||||
qt_translations.path = Contents/MacOS/translations
|
|
||||||
qt_translations.files = qt-translations/qt_ar.qm \
|
|
||||||
qt-translations/qt_bg.qm \
|
|
||||||
qt-translations/qt_ca.qm \
|
|
||||||
qt-translations/qt_cs.qm \
|
|
||||||
qt-translations/qt_da.qm \
|
|
||||||
qt-translations/qt_de.qm \
|
|
||||||
qt-translations/qt_es.qm \
|
|
||||||
qt-translations/qt_fi.qm \
|
|
||||||
qt-translations/qt_fr.qm \
|
|
||||||
qt-translations/qt_gl.qm \
|
|
||||||
qt-translations/qt_he.qm \
|
|
||||||
qt-translations/qt_hu.qm \
|
|
||||||
qt-translations/qt_it.qm \
|
|
||||||
qt-translations/qt_ja.qm \
|
|
||||||
qt-translations/qt_ko.qm \
|
|
||||||
qt-translations/qt_lt.qm \
|
|
||||||
qt-translations/qt_nl.qm \
|
|
||||||
qt-translations/qt_pl.qm \
|
|
||||||
qt-translations/qt_pt.qm \
|
|
||||||
qt-translations/qt_pt_BR.qm \
|
|
||||||
qt-translations/qt_ru.qm \
|
|
||||||
qt-translations/qt_sk.qm \
|
|
||||||
qt-translations/qt_sv.qm \
|
|
||||||
qt-translations/qt_tr.qm \
|
|
||||||
qt-translations/qt_uk.qm \
|
|
||||||
qt-translations/qt_zh_CN.qm \
|
|
||||||
qt-translations/qt_zh_TW.qm
|
|
||||||
QMAKE_BUNDLE_DATA += qt_translations
|
|
||||||
|
|
||||||
ICON = mac/qbittorrent_mac.icns
|
|
||||||
QMAKE_INFO_PLIST = mac/Info.plist
|
|
||||||
|
|
||||||
DEFINES += WITH_GEOIP_EMBEDDED
|
DEFINES += WITH_GEOIP_EMBEDDED
|
||||||
message("On Mac OS X, GeoIP database must be embedded.")
|
message("On Mac OS X, GeoIP database must be embedded.")
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ RC_FILE = qbittorrent_os2.rc
|
|||||||
|
|
||||||
# LIBTORRENT DEFINES
|
# LIBTORRENT DEFINES
|
||||||
DEFINES += WITH_SHIPPED_GEOIP_H
|
DEFINES += WITH_SHIPPED_GEOIP_H
|
||||||
DEFINES += BOOST_ASIO_DYN_LINK
|
|
||||||
|
|
||||||
DEFINES += WITH_GEOIP_EMBEDDED
|
DEFINES += WITH_GEOIP_EMBEDDED
|
||||||
message("On eCS(OS/2), GeoIP database must be embedded.")
|
message("On eCS(OS/2), GeoIP database must be embedded.")
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ class qc_libtorrent_rasterbar : public ConfObj
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
qc_libtorrent_rasterbar(Conf *c) : ConfObj(c) {}
|
qc_libtorrent_rasterbar(Conf *c) : ConfObj(c) {}
|
||||||
QString name() const { return "libtorrent-rasterbar >= 0.15.0"; }
|
QString name() const { return "libtorrent-rasterbar >= 0.14.4"; }
|
||||||
QString shortname() const { return "libtorrent-rasterbar"; }
|
QString shortname() const { return "libtorrent-rasterbar"; }
|
||||||
bool exec(){
|
bool exec(){
|
||||||
QStringList incs;
|
QStringList incs;
|
||||||
QString req_ver = "0.15.0";
|
QString req_ver = "0.14.4";
|
||||||
QString version, libs, other;
|
QString version, libs, other;
|
||||||
VersionMode mode = VersionMin;
|
VersionMode mode = VersionMin;
|
||||||
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, req_ver, &version, &incs, &libs, &other))
|
if(!conf->findPkgConfig("libtorrent-rasterbar", mode, req_ver, &version, &incs, &libs, &other))
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
-----BEGIN QCMOD-----
|
-----BEGIN QCMOD-----
|
||||||
name: Qt >= 4.6
|
name: Qt >= 4.5
|
||||||
arg: enable-debug, Enable debug mode
|
arg: enable-debug, Enable debug mode
|
||||||
arg: disable-gui, Disable qBittorrent Graphical user interface for headless running
|
arg: disable-gui, Disable qBittorrent Graphical user interface for headless running
|
||||||
-----END QCMOD-----
|
-----END QCMOD-----
|
||||||
@@ -9,8 +9,8 @@ class qc_qt4 : public ConfObj
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
qc_qt4(Conf *c) : ConfObj(c) {}
|
qc_qt4(Conf *c) : ConfObj(c) {}
|
||||||
QString name() const { return "Qt >= 4.6"; }
|
QString name() const { return "Qt >= 4.5"; }
|
||||||
QString shortname() const { return "Qt 4.6"; }
|
QString shortname() const { return "Qt 4.5"; }
|
||||||
bool exec()
|
bool exec()
|
||||||
{
|
{
|
||||||
// NOX mode
|
// NOX mode
|
||||||
@@ -31,6 +31,6 @@ public:
|
|||||||
#else
|
#else
|
||||||
conf->addExtra("MANPREFIX = $$PREFIX/share");
|
conf->addExtra("MANPREFIX = $$PREFIX/share");
|
||||||
#endif
|
#endif
|
||||||
return(QT_VERSION >= 0x040600);
|
return(QT_VERSION >= 0x040500);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -13,6 +13,10 @@
|
|||||||
<string>qBitTorrentDocument</string>
|
<string>qBitTorrentDocument</string>
|
||||||
<key>CFBundleTypeName</key>
|
<key>CFBundleTypeName</key>
|
||||||
<string>BitTorrent Document</string>
|
<string>BitTorrent Document</string>
|
||||||
|
<key>CFBundleTypeMIMETypes</key>
|
||||||
|
<array>
|
||||||
|
<string>application/x-bittorrent</string>
|
||||||
|
</array>
|
||||||
<key>CFBundleTypeRole</key>
|
<key>CFBundleTypeRole</key>
|
||||||
<string>Viewer</string>
|
<string>Viewer</string>
|
||||||
<key>LSHandlerRank</key>
|
<key>LSHandlerRank</key>
|
||||||
@@ -36,55 +40,21 @@
|
|||||||
<string>BitTorrent Magnet URL</string>
|
<string>BitTorrent Magnet URL</string>
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleName</key>
|
|
||||||
<string>qBittorrent</string>
|
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>qbittorrent_mac.icns</string>
|
<string>qbittorrent_mac.icns</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
<string>3.0.6</string>
|
<string>2.9.7</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>qBit</string>
|
<string>????</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>qbittorrent</string>
|
<string>qbittorrent</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>org.qbittorrent</string>
|
<string>org.qbittorrent</string>
|
||||||
<key>NSAppleScriptEnabled</key>
|
<key>NOTE</key>
|
||||||
<string>YES</string>
|
<string>This file was generated by Qt/QMake.</string>
|
||||||
<key>NSHumanReadableCopyright</key>
|
|
||||||
<string>Copyright © 2006-2012 Christophe Dumez</string>
|
|
||||||
<key>UTExportedTypeDeclarations</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>UTTypeConformsTo</key>
|
|
||||||
<array>
|
|
||||||
<string>public.data</string>
|
|
||||||
<string>public.item</string>
|
|
||||||
<string>com.bittorrent.torrent</string>
|
|
||||||
</array>
|
|
||||||
<key>UTTypeDescription</key>
|
|
||||||
<string>BitTorrent Document</string>
|
|
||||||
<key>UTTypeIconFile</key>
|
|
||||||
<string>qBitTorrentDocument</string>
|
|
||||||
<key>UTTypeIdentifier</key>
|
|
||||||
<string>org.bittorrent.torrent</string>
|
|
||||||
<key>UTTypeReferenceURL</key>
|
|
||||||
<string>http://www.bittorrent.org/beps/bep_0000.html</string>
|
|
||||||
<key>UTTypeTagSpecification</key>
|
|
||||||
<dict>
|
|
||||||
<key>com.apple.ostype</key>
|
|
||||||
<string>TORR</string>
|
|
||||||
<key>public.filename-extension</key>
|
|
||||||
<array>
|
|
||||||
<string>torrent</string>
|
|
||||||
</array>
|
|
||||||
<key>public.mime-type</key>
|
|
||||||
<string>application/x-bittorrent</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
26
src/about.ui
26
src/about.ui
File diff suppressed because one or more lines are too long
@@ -80,9 +80,8 @@ class about : public QDialog, private Ui::AboutDlg{
|
|||||||
<li><u>Georgian:</u> Beqa Arabuli (arabulibeqa@yahoo.com)</li>\
|
<li><u>Georgian:</u> Beqa Arabuli (arabulibeqa@yahoo.com)</li>\
|
||||||
<li><u>German:</u> Niels Hoffmann (zentralmaschine@users.sourceforge.net)</li>\
|
<li><u>German:</u> Niels Hoffmann (zentralmaschine@users.sourceforge.net)</li>\
|
||||||
<li><u>Greek:</u> Tsvetan Bankov (emerge_life@users.sourceforge.net)</li>\
|
<li><u>Greek:</u> Tsvetan Bankov (emerge_life@users.sourceforge.net)</li>\
|
||||||
<li><u>Hebrew:</u> David Deutsch (d.deffo@gmail.com)</li>\
|
|
||||||
<li><u>Hungarian:</u> Majoros Péter (majoros.peterj@gmail.com)</li>\
|
<li><u>Hungarian:</u> Majoros Péter (majoros.peterj@gmail.com)</li>\
|
||||||
<li><u>Italian:</u> bovirus (bovirus@live.it) and Matteo Sechi (bu17714@gmail.com)</li>\
|
<li><u>Italian:</u> Matteo Sechi (bu17714@gmail.com)</li>\
|
||||||
<li><u>Japanese:</u> Masato Hashimoto (cabezon.hashimoto@gmail.com)</li>\
|
<li><u>Japanese:</u> Masato Hashimoto (cabezon.hashimoto@gmail.com)</li>\
|
||||||
<li><u>Korean:</u> Jin Woo Sin (jin828sin@users.sourceforge.net)</li>\
|
<li><u>Korean:</u> Jin Woo Sin (jin828sin@users.sourceforge.net)</li>\
|
||||||
<li><u>Lithuanian:</u> Naglis Jonaitis (njonaitis@gmail.com)</li>\
|
<li><u>Lithuanian:</u> Naglis Jonaitis (njonaitis@gmail.com)</li>\
|
||||||
@@ -96,7 +95,7 @@ class about : public QDialog, private Ui::AboutDlg{
|
|||||||
<li><u>Spanish:</u> Francisco Luque Contreras (frannoe@ya.com)</li>\
|
<li><u>Spanish:</u> Francisco Luque Contreras (frannoe@ya.com)</li>\
|
||||||
<li><u>Swedish:</u> Daniel Nylander (po@danielnylander.se)</li>\
|
<li><u>Swedish:</u> Daniel Nylander (po@danielnylander.se)</li>\
|
||||||
<li><u>Turkish:</u> Hasan YILMAZ (iletisim@hedefturkce.com) and Erdem Bingöl (erdem84@gmail.com)</li>\
|
<li><u>Turkish:</u> Hasan YILMAZ (iletisim@hedefturkce.com) and Erdem Bingöl (erdem84@gmail.com)</li>\
|
||||||
<li><u>Ukrainian:</u> Oleh Prypin (blaxpirit@gmail.com)</li></ul>");
|
<li><u>Ukrainian:</u> Andrey Shpachenko (masterfix@users.sourceforge.net) and Oleh Prypin (blaxpirit@gmail.com)</li></ul>");
|
||||||
trans_txt += "<p>"+tr("Please contact me if you would like to translate qBittorrent into your own language.")+"</p>";
|
trans_txt += "<p>"+tr("Please contact me if you would like to translate qBittorrent into your own language.")+"</p>";
|
||||||
te_translation->setHtml(trans_txt);
|
te_translation->setHtml(trans_txt);
|
||||||
// License
|
// License
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -175,7 +175,7 @@ void DNSUpdater::processIPUpdateReply(const QString &reply)
|
|||||||
QString code = reply.split(" ").first();
|
QString code = reply.split(" ").first();
|
||||||
qDebug() << Q_FUNC_INFO << "Code:" << code;
|
qDebug() << Q_FUNC_INFO << "Code:" << code;
|
||||||
if(code == "good" || code == "nochg") {
|
if(code == "good" || code == "nochg") {
|
||||||
QBtSession::instance()->addConsoleMessage(tr("Your dynamic DNS was successfully updated."), "green");
|
QBtSession::instance()->addConsoleMessage(tr("Your dynamic DNS was successfuly updated."), "green");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(code == "911" || code == "dnserr") {
|
if(code == "911" || code == "dnserr") {
|
||||||
|
|||||||
@@ -14,14 +14,31 @@
|
|||||||
<string>Download from urls</string>
|
<string>Download from urls</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout">
|
<layout class="QVBoxLayout">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="margin">
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout">
|
<layout class="QHBoxLayout">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="margin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="downloadURL_lbl">
|
<widget class="QLabel" name="downloadURL_lbl">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
<family>Sans Serif</family>
|
||||||
|
<pointsize>12</pointsize>
|
||||||
<weight>75</weight>
|
<weight>75</weight>
|
||||||
|
<italic>false</italic>
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
|
<underline>false</underline>
|
||||||
|
<strikeout>false</strikeout>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@@ -48,7 +65,13 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
<family>Sans Serif</family>
|
||||||
|
<pointsize>9</pointsize>
|
||||||
|
<weight>50</weight>
|
||||||
<italic>true</italic>
|
<italic>true</italic>
|
||||||
|
<bold>false</bold>
|
||||||
|
<underline>false</underline>
|
||||||
|
<strikeout>false</strikeout>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@@ -58,6 +81,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout">
|
<layout class="QHBoxLayout">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="margin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
#include <QNetworkAccessManager>
|
#include <QNetworkAccessManager>
|
||||||
#include <QNetworkRequest>
|
#include <QNetworkRequest>
|
||||||
#include <QNetworkProxy>
|
#include <QNetworkProxy>
|
||||||
|
#include <QNetworkCookie>
|
||||||
#include <QNetworkCookieJar>
|
#include <QNetworkCookieJar>
|
||||||
|
|
||||||
#include "downloadthread.h"
|
#include "downloadthread.h"
|
||||||
@@ -108,21 +109,39 @@ void DownloadThread::processDlFinished(QNetworkReply* reply) {
|
|||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DownloadThread::downloadTorrentUrl(const QString &url, const QList<QNetworkCookie>& cookies)
|
#ifndef DISABLE_GUI
|
||||||
{
|
void DownloadThread::loadCookies(const QString &host_name, QString url) {
|
||||||
|
const QList<QByteArray> raw_cookies = RssSettings().getHostNameCookies(host_name);
|
||||||
|
QNetworkCookieJar *cookie_jar = m_networkManager.cookieJar();
|
||||||
|
QList<QNetworkCookie> cookies;
|
||||||
|
qDebug("Loading cookies for host name: %s", qPrintable(host_name));
|
||||||
|
foreach(const QByteArray& raw_cookie, raw_cookies) {
|
||||||
|
QList<QByteArray> cookie_parts = raw_cookie.split('=');
|
||||||
|
if(cookie_parts.size() == 2) {
|
||||||
|
qDebug("Loading cookie: %s", raw_cookie.constData());
|
||||||
|
cookies << QNetworkCookie(cookie_parts.first(), cookie_parts.last());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cookie_jar->setCookiesFromUrl(cookies, url);
|
||||||
|
m_networkManager.setCookieJar(cookie_jar);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void DownloadThread::downloadTorrentUrl(const QString &url) {
|
||||||
// Process request
|
// Process request
|
||||||
QNetworkReply *reply = downloadUrl(url, cookies);
|
QNetworkReply *reply = downloadUrl(url);
|
||||||
connect(reply, SIGNAL(downloadProgress(qint64,qint64)), this, SLOT(checkDownloadSize(qint64,qint64)));
|
connect(reply, SIGNAL(downloadProgress(qint64,qint64)), this, SLOT(checkDownloadSize(qint64,qint64)));
|
||||||
}
|
}
|
||||||
|
|
||||||
QNetworkReply* DownloadThread::downloadUrl(const QString &url, const QList<QNetworkCookie>& cookies) {
|
QNetworkReply* DownloadThread::downloadUrl(const QString &url){
|
||||||
// Update proxy settings
|
// Update proxy settings
|
||||||
applyProxySettings();
|
applyProxySettings();
|
||||||
// Set cookies
|
#ifndef DISABLE_GUI
|
||||||
if (!cookies.empty()) {
|
// Load cookies
|
||||||
qDebug("Setting %d cookies for url: %s", cookies.size(), qPrintable(url));
|
QString host_name = QUrl::fromEncoded(url.toUtf8()).host();
|
||||||
m_networkManager.cookieJar()->setCookiesFromUrl(cookies, url);
|
if(!host_name.isEmpty())
|
||||||
}
|
loadCookies(host_name, url);
|
||||||
|
#endif
|
||||||
// Process download request
|
// Process download request
|
||||||
qDebug("url is %s", qPrintable(url));
|
qDebug("url is %s", qPrintable(url));
|
||||||
const QUrl qurl = QUrl::fromEncoded(url.toUtf8());
|
const QUrl qurl = QUrl::fromEncoded(url.toUtf8());
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
#define DOWNLOADTHREAD_H
|
#define DOWNLOADTHREAD_H
|
||||||
|
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QNetworkCookie>
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QSslError>
|
#include <QSslError>
|
||||||
@@ -46,8 +45,8 @@ class DownloadThread : public QObject {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
DownloadThread(QObject* parent = 0);
|
DownloadThread(QObject* parent = 0);
|
||||||
QNetworkReply* downloadUrl(const QString &url, const QList<QNetworkCookie>& cookies = QList<QNetworkCookie>());
|
QNetworkReply* downloadUrl(const QString &url);
|
||||||
void downloadTorrentUrl(const QString &url, const QList<QNetworkCookie>& cookies = QList<QNetworkCookie>());
|
void downloadTorrentUrl(const QString &url);
|
||||||
//void setProxy(QString IP, int port, QString username, QString password);
|
//void setProxy(QString IP, int port, QString username, QString password);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
@@ -64,6 +63,9 @@ private slots:
|
|||||||
private:
|
private:
|
||||||
QString errorCodeToString(QNetworkReply::NetworkError status);
|
QString errorCodeToString(QNetworkReply::NetworkError status);
|
||||||
void applyProxySettings();
|
void applyProxySettings();
|
||||||
|
#ifndef DISABLE_GUI
|
||||||
|
void loadCookies(const QString &host_name, QString url);
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QNetworkAccessManager m_networkManager;
|
QNetworkAccessManager m_networkManager;
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ QT_BEGIN_NAMESPACE
|
|||||||
namespace Ui {
|
namespace Ui {
|
||||||
class ExecutionLog;
|
class ExecutionLog;
|
||||||
}
|
}
|
||||||
QT_END_NAMESPACE
|
|
||||||
class LogListWidget;
|
class LogListWidget;
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
class ExecutionLog : public QWidget
|
class ExecutionLog : public QWidget
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "fs_utils.h"
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
||||||
#ifndef CIFS_MAGIC_NUMBER
|
#ifndef CIFS_MAGIC_NUMBER
|
||||||
@@ -119,7 +118,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
FileSystemWatcher(QObject *parent): QFileSystemWatcher(parent) {
|
FileSystemWatcher(QObject *parent): QFileSystemWatcher(parent) {
|
||||||
m_filters << "*.torrent" << "*.magnet";
|
m_filters << "*.torrent";
|
||||||
connect(this, SIGNAL(directoryChanged(QString)), this, SLOT(scanLocalFolder(QString)));
|
connect(this, SIGNAL(directoryChanged(QString)), this, SLOT(scanLocalFolder(QString)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -227,7 +226,7 @@ protected slots:
|
|||||||
m_partialTorrents.remove(torrent_path);
|
m_partialTorrents.remove(torrent_path);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (fsutils::isValidTorrentFile(torrent_path)) {
|
if(misc::isValidTorrentFile(torrent_path)) {
|
||||||
no_longer_partial << torrent_path;
|
no_longer_partial << torrent_path;
|
||||||
m_partialTorrents.remove(torrent_path);
|
m_partialTorrents.remove(torrent_path);
|
||||||
} else {
|
} else {
|
||||||
@@ -272,13 +271,7 @@ private:
|
|||||||
const QStringList files = dir.entryList(m_filters, QDir::Files, QDir::Unsorted);
|
const QStringList files = dir.entryList(m_filters, QDir::Files, QDir::Unsorted);
|
||||||
foreach(const QString &file, files) {
|
foreach(const QString &file, files) {
|
||||||
const QString file_abspath = dir.absoluteFilePath(file);
|
const QString file_abspath = dir.absoluteFilePath(file);
|
||||||
if (file_abspath.endsWith(".magnet")) {
|
if(misc::isValidTorrentFile(file_abspath)) {
|
||||||
QFile f(file_abspath);
|
|
||||||
if (f.open(QIODevice::ReadOnly)
|
|
||||||
&& !misc::magnetUriToHash(QString::fromLocal8Bit(f.readAll())).isEmpty()) {
|
|
||||||
torrents << file_abspath;
|
|
||||||
}
|
|
||||||
} else if (fsutils::isValidTorrentFile(file_abspath)) {
|
|
||||||
torrents << file_abspath;
|
torrents << file_abspath;
|
||||||
} else {
|
} else {
|
||||||
if(!m_partialTorrents.contains(file_abspath)) {
|
if(!m_partialTorrents.contains(file_abspath)) {
|
||||||
|
|||||||
508
src/fs_utils.cpp
508
src/fs_utils.cpp
File diff suppressed because it is too large
Load Diff
@@ -1,73 +0,0 @@
|
|||||||
/*
|
|
||||||
* Bittorrent Client using Qt4 and libtorrent.
|
|
||||||
* Copyright (C) 2012 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.
|
|
||||||
*
|
|
||||||
* In addition, as a special exception, the copyright holders give permission to
|
|
||||||
* link this program with the OpenSSL project's "OpenSSL" library (or with
|
|
||||||
* modified versions of it that use the same license as the "OpenSSL" library),
|
|
||||||
* and distribute the linked executables. You must obey the GNU General Public
|
|
||||||
* License in all respects for all of the code used other than "OpenSSL". If you
|
|
||||||
* modify file(s), you may extend this exception to your version of the file(s),
|
|
||||||
* but you are not obligated to do so. If you do not wish to do so, delete this
|
|
||||||
* exception statement from your version.
|
|
||||||
*
|
|
||||||
* Contact : chris@qbittorrent.org
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef FS_UTILS_H
|
|
||||||
#define FS_UTILS_H
|
|
||||||
|
|
||||||
#include <QString>
|
|
||||||
#include <QCoreApplication>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Utility functions related to file system.
|
|
||||||
*/
|
|
||||||
class fsutils
|
|
||||||
{
|
|
||||||
Q_DECLARE_TR_FUNCTIONS(fsutils)
|
|
||||||
|
|
||||||
public:
|
|
||||||
static QString toDisplayPath(const QString& path);
|
|
||||||
static QString fileExtension(const QString& filename);
|
|
||||||
static QString fileName(const QString& file_path);
|
|
||||||
static qint64 computePathSize(const QString& path);
|
|
||||||
static bool sameFiles(const QString& path1, const QString& path2);
|
|
||||||
static QString updateLabelInSavePath(QString defaultSavePath, QString save_path, const QString& old_label, const QString& new_label);
|
|
||||||
static QString toValidFileSystemName(QString filename);
|
|
||||||
static bool isValidFileSystemName(const QString& filename);
|
|
||||||
static long long freeDiskSpaceOnPath(QString path);
|
|
||||||
static QString branchPath(const QString& file_path, QString* removed = 0);
|
|
||||||
static bool sameFileNames(const QString& first, const QString& second);
|
|
||||||
static QString expandPath(const QString& path);
|
|
||||||
static bool isValidTorrentFile(const QString& path);
|
|
||||||
static bool smartRemoveEmptyFolderTree(const QString& dir_path);
|
|
||||||
static bool forceRemove(const QString& file_path);
|
|
||||||
|
|
||||||
/* Ported from Qt4 to drop dependency on QtGui */
|
|
||||||
static QString QDesktopServicesDataLocation();
|
|
||||||
static QString QDesktopServicesCacheLocation();
|
|
||||||
static QString QDesktopServicesDownloadLocation();
|
|
||||||
/* End of Qt4 code */
|
|
||||||
static QString searchEngineLocation();
|
|
||||||
static QString BTBackupLocation();
|
|
||||||
static QString cacheLocation();
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // FS_UTILS_H
|
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QChar>
|
#include <QChar>
|
||||||
|
|
||||||
#include "fs_utils.h"
|
#include "misc.h"
|
||||||
|
|
||||||
using namespace libtorrent;
|
using namespace libtorrent;
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ QString GeoIPManager::geoipFolder(bool embedded) {
|
|||||||
#ifdef WITH_GEOIP_EMBEDDED
|
#ifdef WITH_GEOIP_EMBEDDED
|
||||||
if(embedded)
|
if(embedded)
|
||||||
return ":/geoip/";
|
return ":/geoip/";
|
||||||
return fsutils::QDesktopServicesDataLocation()+"geoip"+QDir::separator();
|
return misc::QDesktopServicesDataLocation()+"geoip"+QDir::separator();
|
||||||
#else
|
#else
|
||||||
Q_UNUSED(embedded);
|
Q_UNUSED(embedded);
|
||||||
if(QFile::exists("/usr/local/share/GeoIP/GeoIP.dat"))
|
if(QFile::exists("/usr/local/share/GeoIP/GeoIP.dat"))
|
||||||
@@ -101,7 +101,7 @@ void GeoIPManager::exportEmbeddedDb() {
|
|||||||
}
|
}
|
||||||
// Remove destination files
|
// Remove destination files
|
||||||
if(QFile::exists(geoipDBpath(false)))
|
if(QFile::exists(geoipDBpath(false)))
|
||||||
fsutils::forceRemove(geoipDBpath(false));
|
misc::safeRemove(geoipDBpath(false));
|
||||||
// Copy from executable to hard disk
|
// Copy from executable to hard disk
|
||||||
qDebug("%s -> %s", qPrintable(geoipDBpath(true)), qPrintable(geoipDBpath(false)));
|
qDebug("%s -> %s", qPrintable(geoipDBpath(true)), qPrintable(geoipDBpath(false)));
|
||||||
if(!QFile::copy(geoipDBpath(true), geoipDBpath(false))) {
|
if(!QFile::copy(geoipDBpath(true), geoipDBpath(false))) {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ IconProvider* IconProvider::m_instance = 0;
|
|||||||
|
|
||||||
IconProvider::IconProvider()
|
IconProvider::IconProvider()
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_X11)
|
#if defined(Q_WS_X11) && (QT_VERSION >= QT_VERSION_CHECK(4,6,0))
|
||||||
m_useSystemTheme = Preferences().useSystemIconTheme();
|
m_useSystemTheme = Preferences().useSystemIconTheme();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,7 @@ void IconProvider::drop()
|
|||||||
|
|
||||||
QIcon IconProvider::getIcon(const QString &iconId)
|
QIcon IconProvider::getIcon(const QString &iconId)
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_X11)
|
#if defined(Q_WS_X11) && (QT_VERSION >= QT_VERSION_CHECK(4,6,0))
|
||||||
if(m_useSystemTheme) {
|
if(m_useSystemTheme) {
|
||||||
QIcon icon = QIcon::fromTheme(iconId, QIcon(":/Icons/oxygen/"+iconId+".png"));
|
QIcon icon = QIcon::fromTheme(iconId, QIcon(":/Icons/oxygen/"+iconId+".png"));
|
||||||
icon = generateDifferentSizes(icon);
|
icon = generateDifferentSizes(icon);
|
||||||
@@ -67,7 +67,7 @@ QIcon IconProvider::getIcon(const QString &iconId)
|
|||||||
return QIcon(":/Icons/oxygen/"+iconId+".png");
|
return QIcon(":/Icons/oxygen/"+iconId+".png");
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(Q_WS_X11)
|
#if defined(Q_WS_X11) && (QT_VERSION >= QT_VERSION_CHECK(4,6,0))
|
||||||
void IconProvider::useSystemIconTheme(bool enable)
|
void IconProvider::useSystemIconTheme(bool enable)
|
||||||
{
|
{
|
||||||
m_useSystemTheme = enable;
|
m_useSystemTheme = enable;
|
||||||
@@ -102,7 +102,7 @@ QIcon IconProvider::generateDifferentSizes(const QIcon& icon)
|
|||||||
|
|
||||||
QString IconProvider::getIconPath(const QString &iconId)
|
QString IconProvider::getIconPath(const QString &iconId)
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_X11)
|
#if defined(Q_WS_X11) && (QT_VERSION >= QT_VERSION_CHECK(4,6,0))
|
||||||
if(m_useSystemTheme) {
|
if(m_useSystemTheme) {
|
||||||
QString path = QDir::temp().absoluteFilePath(iconId+".png");
|
QString path = QDir::temp().absoluteFilePath(iconId+".png");
|
||||||
if(!QFile::exists(path)) {
|
if(!QFile::exists(path)) {
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public:
|
|||||||
QIcon getIcon(const QString& iconId);
|
QIcon getIcon(const QString& iconId);
|
||||||
QString getIconPath(const QString &iconId);
|
QString getIconPath(const QString &iconId);
|
||||||
|
|
||||||
#if defined(Q_WS_X11)
|
#if defined(Q_WS_X11) && (QT_VERSION >= QT_VERSION_CHECK(4,6,0))
|
||||||
public:
|
public:
|
||||||
void useSystemIconTheme(bool enable);
|
void useSystemIconTheme(bool enable);
|
||||||
|
|
||||||
|
|||||||
676
src/icons.qrc
676
src/icons.qrc
File diff suppressed because it is too large
Load Diff
63
src/lang.qrc
63
src/lang.qrc
@@ -1,41 +1,40 @@
|
|||||||
<!DOCTYPE RCC><RCC version="1.0">
|
<!DOCTYPE RCC><RCC version="1.0">
|
||||||
<qresource>
|
<qresource>
|
||||||
<file>lang/qbittorrent_ar.qm</file>
|
|
||||||
<file>lang/qbittorrent_be.qm</file>
|
|
||||||
<file>lang/qbittorrent_bg.qm</file>
|
|
||||||
<file>lang/qbittorrent_ca.qm</file>
|
|
||||||
<file>lang/qbittorrent_cs.qm</file>
|
|
||||||
<file>lang/qbittorrent_da.qm</file>
|
|
||||||
<file>lang/qbittorrent_de.qm</file>
|
|
||||||
<file>lang/qbittorrent_el.qm</file>
|
|
||||||
<file>lang/qbittorrent_en.qm</file>
|
|
||||||
<file>lang/qbittorrent_es.qm</file>
|
|
||||||
<file>lang/qbittorrent_eu.qm</file>
|
|
||||||
<file>lang/qbittorrent_fi.qm</file>
|
|
||||||
<file>lang/qbittorrent_fr.qm</file>
|
|
||||||
<file>lang/qbittorrent_gl.qm</file>
|
|
||||||
<file>lang/qbittorrent_he.qm</file>
|
|
||||||
<file>lang/qbittorrent_hr.qm</file>
|
|
||||||
<file>lang/qbittorrent_hu.qm</file>
|
|
||||||
<file>lang/qbittorrent_hy.qm</file>
|
|
||||||
<file>lang/qbittorrent_it.qm</file>
|
|
||||||
<file>lang/qbittorrent_ja.qm</file>
|
|
||||||
<file>lang/qbittorrent_ka.qm</file>
|
|
||||||
<file>lang/qbittorrent_ko.qm</file>
|
|
||||||
<file>lang/qbittorrent_lt.qm</file>
|
|
||||||
<file>lang/qbittorrent_nb.qm</file>
|
|
||||||
<file>lang/qbittorrent_nl.qm</file>
|
<file>lang/qbittorrent_nl.qm</file>
|
||||||
<file>lang/qbittorrent_pl.qm</file>
|
<file>lang/qbittorrent_hu.qm</file>
|
||||||
<file>lang/qbittorrent_pt.qm</file>
|
|
||||||
<file>lang/qbittorrent_pt_BR.qm</file>
|
|
||||||
<file>lang/qbittorrent_ro.qm</file>
|
|
||||||
<file>lang/qbittorrent_ru.qm</file>
|
<file>lang/qbittorrent_ru.qm</file>
|
||||||
<file>lang/qbittorrent_sk.qm</file>
|
<file>lang/qbittorrent_zh_TW.qm</file>
|
||||||
<file>lang/qbittorrent_sr.qm</file>
|
|
||||||
<file>lang/qbittorrent_sv.qm</file>
|
|
||||||
<file>lang/qbittorrent_tr.qm</file>
|
<file>lang/qbittorrent_tr.qm</file>
|
||||||
|
<file>lang/qbittorrent_fi.qm</file>
|
||||||
|
<file>lang/qbittorrent_sk.qm</file>
|
||||||
|
<file>lang/qbittorrent_ja.qm</file>
|
||||||
|
<file>lang/qbittorrent_el.qm</file>
|
||||||
|
<file>lang/qbittorrent_ca.qm</file>
|
||||||
|
<file>lang/qbittorrent_pt.qm</file>
|
||||||
|
<file>lang/qbittorrent_it.qm</file>
|
||||||
|
<file>lang/qbittorrent_fr.qm</file>
|
||||||
<file>lang/qbittorrent_uk.qm</file>
|
<file>lang/qbittorrent_uk.qm</file>
|
||||||
<file>lang/qbittorrent_zh.qm</file>
|
<file>lang/qbittorrent_zh.qm</file>
|
||||||
<file>lang/qbittorrent_zh_TW.qm</file>
|
<file>lang/qbittorrent_lt.qm</file>
|
||||||
|
<file>lang/qbittorrent_ko.qm</file>
|
||||||
|
<file>lang/qbittorrent_nb.qm</file>
|
||||||
|
<file>lang/qbittorrent_sv.qm</file>
|
||||||
|
<file>lang/qbittorrent_de.qm</file>
|
||||||
|
<file>lang/qbittorrent_gl.qm</file>
|
||||||
|
<file>lang/qbittorrent_sr.qm</file>
|
||||||
|
<file>lang/qbittorrent_pt_BR.qm</file>
|
||||||
|
<file>lang/qbittorrent_da.qm</file>
|
||||||
|
<file>lang/qbittorrent_cs.qm</file>
|
||||||
|
<file>lang/qbittorrent_hy.qm</file>
|
||||||
|
<file>lang/qbittorrent_pl.qm</file>
|
||||||
|
<file>lang/qbittorrent_bg.qm</file>
|
||||||
|
<file>lang/qbittorrent_ar.qm</file>
|
||||||
|
<file>lang/qbittorrent_es.qm</file>
|
||||||
|
<file>lang/qbittorrent_en.qm</file>
|
||||||
|
<file>lang/qbittorrent_hr.qm</file>
|
||||||
|
<file>lang/qbittorrent_ro.qm</file>
|
||||||
|
<file>lang/qbittorrent_ka.qm</file>
|
||||||
|
<file>lang/qbittorrent_be.qm</file>
|
||||||
|
<file>lang/qbittorrent_eu.qm</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user