Kacper Michajłow
ccb59fbad3
Suppress C4267 conversion warnings ( #13307 )
...
- warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
Caused by mismatch between size_type of std and Qt containers. It is safe to cast to int as all of those containers hold low number of objects.
4 years ago
Vladimir Golovnev (Glassez)
6c66d02aff
Declare AbstractFileStorage destructor virtual
4 years ago
Vladimir Golovnev (Glassez)
97c7f3bc67
Raise minimum Qt version to 5.14
4 years ago
LoneDev
d335f263f3
Fix comment typo in algorithm.h ( #15030 )
4 years ago
Vladimir Golovnev (Glassez)
b6a35e9477
Don't log any error when "queue" file doesn't exist
4 years ago
Vladimir Golovnev (Glassez)
6aa8251b98
Provide correct error description in "upload mode"
4 years ago
zhuangzi926
2e8e2b04a1
Announce to all trackers if IP changed ( #15001 )
...
Closes #14545 .
4 years ago
Chocobo1
c64e433a69
Remove unused parameter
4 years ago
Chocobo1
e21f46d824
Avoid data duplication
4 years ago
Chocobo1
ef79546508
Add `connection_speed` to advanced settings
...
Now we follow libtorrent current default value 30.
Closes #6973 .
Also bump WebAPI version.
4 years ago
Vladimir Golovnev (Glassez)
2993fdb169
Improve "Watched folders" feature
...
Make "file system watcher" an application core component
and separate it from its presentation model.
4 years ago
Vladimir Golovnev (Glassez)
9565b695ef
Unify custom exceptions
4 years ago
Vladimir Golovnev (Glassez)
89cedd411e
Allow add torrents with relative save path
...
The relative save path will be resoloved against the default one.
4 years ago
An0n
ea3b897d5d
Bump file pool size ( #14966 )
4 years ago
sledgehammer999
2c47cfbe25
Add new languages
...
* Mongolian
* Persian
* Thai
4 years ago
Chocobo1
a82ca6adb2
Fix potential data race
...
This case could be considered benign however it could still be an
undefined behavior to the compiler, so remove it.
Ref:
https://hacks.mozilla.org/2021/04/eliminating-data-races-in-firefox-a-technical-report/
4 years ago
Chocobo1
05e3e46f5a
Throw the exact (same) exception
4 years ago
Vladimir Golovnev (Glassez)
383eaf44ac
Implement DBResumeDataStorage class
4 years ago
Chocobo1
bdf2f6c3e1
Initialize struct members by default
...
This is to suppress the following compilation warnings:
base/bittorrent/magneturi.cpp: In constructor ‘BitTorrent::MagnetUri::MagnetUri(const QString&)’:
base/bittorrent/magneturi.cpp:87:60: warning: missing initializer for member ‘BitTorrent::TrackerEntry::message’ [-Wmissing-field-initializers]
87 | m_trackers.append({QString::fromStdString(tracker)});
4 years ago
Chocobo1
fdc186c92f
Revise tag related implementations
...
Fix #12690 .
4 years ago
Vladimir Golovnev (Glassez)
75e0990eb3
Provide tracker peers count via TrackerEntry
...
Don't expose additional accessor in Torrent interface.
4 years ago
Vladimir Golovnev (Glassez)
62a6c725d6
Don't overwrite tracker message
...
Use one of the tracker endpoint messages.
4 years ago
Vladimir Golovnev (Glassez)
d4554c2e5c
Correctly handle "no enough disk space" error
...
If torrent failed to write, it stops downloading and goes to
"upload mode" instead of errored state so it just keeps seeding.
Now qBittorrent indicates this state as "errored" and allows
the user to manually bring the torrent out of this state.
4 years ago
Chocobo1
cb8d6a0939
Reorder peer flags
...
Now we group related flags nearby.
4 years ago
Chocobo1
e38128119c
Capitalize "peer flags" descriptions
...
And use a helper function to build the descriptions.
4 years ago
zhuangzi926
c9e2da5f53
Update dyndns register url
4 years ago
Chocobo1
53b7956968
Clean up code
...
and remove unused parameters/variables.
4 years ago
Chocobo1
a64bb1a990
Simplify natural sort classes interface
...
Now the comparison function/class should be constructed before usage.
This change also make it easier to plug in into various containers which
will require a compare function type (such as std::set).
4 years ago
Vladimir Golovnev (Glassez)
4a68df084e
Enclose strings in QLatin1String
4 years ago
Vladimir Golovnev (Glassez)
f8e7602d96
Correctly forward declare file_prio_alert
4 years ago
Vladimir Golovnev (Glassez)
1344b31535
Improve ResumeDataStorage
4 years ago
Chocobo1
8a087a876e
Clean up code
4 years ago
Vladimir Golovnev (Glassez)
cd6959b712
Save "resume data" once file priority is changed
4 years ago
Vladimir Golovnev (Glassez)
a93391e247
Drop QNetworkConfigurationManager usage
4 years ago
Vladimir Golovnev (Glassez)
a230228441
Don't compare bool with int
...
In Qt6 QHash::remove() returns bool to indicate operation status.
4 years ago
Vladimir Golovnev (Glassez)
09da6828b8
Use complete types in container declarations
...
Qt 6 disallows to use incomplete types in container declarations
in some cases, e.g. in parameters of signals/slots.
4 years ago
Vladimir Golovnev (Glassez)
35dedd3d83
Implement BencodeResumeDataStorage class
...
Implement ResumeDataStorage class as base for all "resume data" storages.
Implement BencodeResumeDataStorage class and put all existing logic of
"resume data" loading/saving there.
4 years ago
Vladimir Golovnev (Glassez)
1a9e97ee3b
Don't cause QHash relayout while using reference to its node
4 years ago
treysis
0189606445
Fix bad IPv6 address format for outgoingInterfaces
...
Fixes https://github.com/qbittorrent/qBittorrent/issues/12892#issuecomment-792292336
4 years ago
Vladimir Golovnev (Glassez)
764aabc459
Wrap "resume data" in LoadTorrentParams
4 years ago
Vladimir Golovnev (Glassez)
61d2ff359b
Use QRegularExpression instead of deprecated QRegExp
...
Now it follows closely the definition of wildcard for glob patterns.
The backslash (\) character is not an escape char in this context.
In order to match one of the special characters, place it in square
brackets (for example, [?]).
4 years ago
Vladimir Golovnev (Glassez)
5d889e4a8f
Drop deprecated code
4 years ago
Vladimir Golovnev (Glassez)
b65a714d17
Save resume data when torrent has done checking
4 years ago
Vladimir Golovnev (Glassez)
560239c918
Improve "save resume data" handling
4 years ago
Vladimir Golovnev (Glassez)
349cc54c69
Don't use deprecated QTextCodec
4 years ago
Vladimir Golovnev (Glassez)
a078633a32
Don't use deprecated features
4 years ago
Vladimir Golovnev (Glassez)
f022458383
Raise minimum supported Qt version to 5.12
4 years ago
Vladimir Golovnev (Glassez)
0c9ecd1d76
Properly show tracker status for "paused" torrents
4 years ago
Vladimir Golovnev (Glassez)
561b597031
Improve "info hash" handling
...
Define "torrent ID" concept, which is either a SHA1 hash for torrents of version 1,
or a SHA256 hash (truncated to SHA1 hash length) for torrents of version 2.
Add support for native libtorrent2 info hashes.
4 years ago
Vladimir Golovnev (Glassez)
6d6908e625
Initialize torrent status from add torrent params
4 years ago