Chocobo1
5cf39a2970
Reuse code path
...
`buf.f_type` should be compatible across platforms.
https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/statfs.2.html
3 years ago
Chocobo1
1c9321d5a1
Add remote filesystem magic numbers
3 years ago
Chocobo1
fa8786e230
Flush manually when saving a file
...
This is to work around https://bugreports.qt.io/browse/QTBUG-75077
3 years ago
Chocobo1
21f72baae2
Use QSaveFile wherever applicable
...
expected.hpp was fetched from:
b803e3c07b/include/nonstd/expected.hpp
3 years ago
gxcreator
307f5e6e56
Initialize member fields
3 years ago
Vladimir Golovnev (Glassez)
399d3ad85a
Replace QStringRef with QStringView
4 years ago
Vladimir Golovnev (Glassez)
97c7f3bc67
Raise minimum Qt version to 5.14
4 years ago
Vladimir Golovnev (Glassez)
9565b695ef
Unify custom exceptions
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)
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)
f022458383
Raise minimum supported Qt version to 5.12
4 years ago
Vladimir Golovnev (Glassez)
e2c785b2d5
Accept "share limits" when adding torrent using WebAPI
4 years ago
Chocobo1
e1f9083c81
Improve detection of filename extension of audio/video files
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
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)
d0cac421bb
Change parseBool() to return optional bool value
4 years ago
Vladimir Golovnev (Glassez)
552ff0489d
Use nested namespaces definition syntax
4 years ago
Chocobo1
e022c371ff
Move parsing of TriStateBool to a static class function
4 years ago
Chocobo1
5bd6ff2285
Migrate away from deprecated `std::iterator` class
4 years ago
Chocobo1
d70b893852
Bump project requirement to C++17
4 years ago
Vladimir Golovnev (Glassez)
79048812e9
Fix folder name extraction functions
...
It should return empty string if there is no parent folder.
4 years ago
Vladimir Golovnev (Glassez)
1d5dc283fe
Allow to add root folder to torrent content
4 years ago
Vladimir Golovnev (Glassez)
d4a51979bb
Extract enum serialization/parsing functions
4 years ago
FranciscoPombal
6152b83405
Use #pragma once instead of include guards
4 years ago
Chocobo1
4d1d5d6b20
Revise Utils::Version comparison operators
4 years ago
Chocobo1
498da509db
Use Qt provided forward declaration header
4 years ago
Vladimir Golovnev (Glassez)
c41df9ffbd
Improve coding style
4 years ago
Chocobo1
307ca61c86
Code clean up
4 years ago
ngosang
71be4f03be
Update minimum Python version to 3.5.0
4 years ago
Vladimir Golovnev (Glassez)
f35dbdfb8b
Fix crash on exit when compiled using MinGW
4 years ago
Chocobo1
40e432b127
Bump requirement to libtorrent 1.2
...
Closes #12258 .
5 years ago
Vladimir Golovnev (Glassez)
f4efa530dc
Create header for common BitTorrent declarations
5 years ago
Vladimir Golovnev (Glassez)
1132b84548
Split TorrentHandle interface and implementation
5 years ago
Chocobo1
2fa6a7f6f5
Avoid inefficient behavior
...
Since the class needs to be copy-constructible, there may be many
copies of an instance. So instead of writing to the device on every
destructor call, only flush buffer on the last destructor call.
5 years ago
Chocobo1
9f281c2d25
Avoid holding entire file in memory
...
Previously we need a file buffer that is as large as the file size and
this could be a problem when user has less free memory available or
having very large data. Now with the help of `FileOutputIterator`,
we can have a much smaller, fixed size immediate file buffer and also
the code looks nice with `lt::bencode()`.
5 years ago
József Sallai
f9564564f8
Detect python3 executable on Windows
5 years ago
Chocobo1
6c307774f1
Get library version strings at runtime
...
We mostly use boost in header-only mode, so it is a non-trivial job to
get the version string at runtime.
5 years ago
Chocobo1
2157e500ef
Use helper functions to construct smart pointers
5 years ago
Chocobo1
baa13c044a
Drop python2 support
...
Closes #11811 .
5 years ago
sledgehammer999
64e5d41a2c
Don't unnecessarily delete OS files in folders
5 years ago
sledgehammer999
8200ef6bd5
Rework the listening IP/interface selection code
...
Closes #11561
5 years ago
Chocobo1
f31ee6a225
Fix integer narrowing on x86
...
The f_type is an alias to `int` on 32-bit system and the switch cases
uses `unsigned int`.
Closes #11427 .
5 years ago
Chocobo1
7276a79cef
Call Windows API directly
...
We already bumped the OS requirement to Windows 7 and those functions
can be called directly without the need to load them first.
5 years ago
Chocobo1
0d5b0b9542
Replace deprecated macro
...
Q_OS_MAC is deprecated and the replacement is Q_OS_MACOS.
5 years ago
Chocobo1
9dc3b18178
Fix filename validation on non-Windows OS
...
Closes #11191 .
5 years ago
Chocobo1
b5b678c58f
Replace QString::split() by faster alternatives
5 years ago
Chocobo1
e90a2c00a5
Replace QList by QVector
5 years ago
Chocobo1
0b1b3c1f84
Use numeric_limits instead of constants from C
...
In C++, using numeric_limits is more idiomatic compared to using constants.
6 years ago