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
Vladimir Golovnev (Glassez)
7a8c05dc7c
Improve tracker entries handling
4 years ago
Vladimir Golovnev (Glassez)
e2c785b2d5
Accept "share limits" when adding torrent using WebAPI
4 years ago
Chocobo1
5161758193
Expose ToS setting from libtorrent
...
Closes #14420 .
4 years ago
Vladimir Golovnev (Glassez)
bea32cfe38
Define template for classes that represent SHA hashes
4 years ago
Vladimir Golovnev (Glassez)
8cfd803222
Drop implicit conversions between InfoHash and QString
4 years ago
Chocobo1
f00f552369
Properly stop torrent creation if aborted
...
Closes #11346 .
4 years ago
Chocobo1
e1f9083c81
Improve detection of filename extension of audio/video files
4 years ago
Michał Kopeć
614376ed64
Add an option to disable icons in menus
4 years ago
Chocobo1
4a0b36a50b
Use std::optional to return results
4 years ago
Chocobo1
fffe5e7003
Fix potential out-of-bounds access
4 years ago
Chocobo1
e46c88580a
Revise getter function for torrrent queue position
...
This addresses https://github.com/qbittorrent/qBittorrent/pull/14335#issuecomment-774667836
The WebAPI is not affected as a workaround is added.
4 years ago
Chocobo1
6a45919b25
Clean up coding style
4 years ago
Vladimir Golovnev (Glassez)
c3f02d833c
Restart "missing files" torrents after changing location
4 years ago
Vladimir Golovnev (Glassez)
e273ac3a0d
Allow "missing files" torrents to save more resume data
4 years ago
Vladimir Golovnev (Glassez)
459d02abc8
Allow change-case-only file renaming on Windows
4 years ago
dyumin
12d396ffc5
Treat errored torrents as finished
4 years ago
an0n666
24d7d599f1
Validate HTTPS Tracker Certificate by default
4 years ago
Vladimir Golovnev (Glassez)
ae29e8bbab
Drop extension from generated content folder name
...
Try to detect whether generated content folder name contains extension
and drop it to avoid possible conflicts between file/folder names.
4 years ago
Chocobo1
1479b61214
Simplify code for checking free disk space
...
`QStorageInfo::bytesAvailable()` is guaranteed to return `-1` for an
invalid path.
https://doc.qt.io/qt-5/qstorageinfo.html#bytesAvailable
4 years ago
Chocobo1
15a249eb54
Improve detection of file extension string
4 years ago
Vladimir Golovnev (Glassez)
f9e286123f
Raise minimum libtorrent version to 1.2.12
4 years ago
Chocobo1
302cb27e98
Add script for generating project tarball
4 years ago
lbilli
2d3481b9a9
On Linux use legacy 'data' directory only as a fallback
4 years ago
Chocobo1
24fa9e32b0
Set source character sets to UTF-8
...
This suppress warning C4819.
https://docs.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=msvc-160
4 years ago
Vladimir Golovnev (Glassez)
0b4fef19f6
Remove redundant suffix from TorrentHandle class
...
Originally, it was just a wrapper for libtorrent::torrent_handle class, so it mimicked its name.
It was then transformed into a more complex aggregate, but the name was retained (just by inertia).
Unlike libtorrent::torrent_handle class in whose name "handle" means the pattern used,
it does not matter for qBittorrent classes and just eats up space in the source code.
4 years ago
Vladimir Golovnev (Glassez)
531ae501ad
Use std::optional<bool> instead of custom TriStateBool
4 years ago
Vladimir Golovnev (Glassez)
d0cac421bb
Change parseBool() to return optional bool value
4 years ago
Vladimir Golovnev (Glassez)
4429a16ca8
Use std::optional instead of boost::optional
4 years ago
Chocobo1
c669401767
Generate version header when configuring project
...
The basic idea is we create a version header template at
"src/base/version.h.in" and the build systems are expected to replace
strings that are enclosed with @ symbols and generate
"src/base/version.h" for other source files to consume/include.
4 years ago
Vladimir Golovnev (Glassez)
ee5fe424e8
Use single parameter to accept torrent source
4 years ago
Vladimir Golovnev (Glassez)
552ff0489d
Use nested namespaces definition syntax
4 years ago
Chocobo1
bdf1fb6db8
Revise store/load state operations of Options Dialog
4 years ago
Chocobo1
be5af2796d
Revise SettingsStorage store/load value interface
4 years ago
Chocobo1
b1020c599f
Improve load data behavior of SettingsStorage class
...
Previously it only handle the case of failed lookup, now it discard
invalid values when deserializing the database from disk.
Also checks whether the data is convertible to the intended type.
4 years ago
Vladimir Golovnev (Glassez)
b2199202ab
Reload "missing files" torrent instead of re-checking
4 years ago
Vladimir Golovnev (Glassez)
06105072f9
Extract torrent reloading logic into separate method
4 years ago
Chocobo1
e022c371ff
Move parsing of TriStateBool to a static class function
4 years ago
Vladimir Golovnev (Glassez)
df2bbe129d
Drop notification about move storage failed
4 years ago
Vladimir Golovnev (Glassez)
f7cae610a4
Drop notification about move storage finished
4 years ago
Chocobo1
5bd6ff2285
Migrate away from deprecated `std::iterator` class
4 years ago