Vladimir Golovnev (Glassez)
88f2a66aac
Fix params handling for some legacy API methods
...
Closes #8880 .
7 years ago
Vladimir Golovnev (Glassez)
0fda49c060
Improve legacy API params handling
7 years ago
Vladimir Golovnev (Glassez)
001bd38557
Fix pauseAll/resumeAll legacy API methods
...
Closes #8766 .
7 years ago
thalieht
3e4099fe5b
Replace the zeroing of pointers with nullptr
7 years ago
Chocobo1
fdf3ebbb6c
Remove usage of deprecated functions
...
Also use proper type for storing date/time data
7 years ago
Chocobo1
0457fd260e
Avoid temporary QString allocations
...
This fixes clazy warning: Use multi-arg instead [-Wclazy-qstring-arg]
7 years ago
Vladimir Golovnev (Glassez)
1aca3b0adc
Parse URL query string at application level
7 years ago
Vladimir Golovnev (Glassez)
34456a7459
Fix Legacy Web API to be fully available
7 years ago
Vladimir Golovnev (Glassez)
27d8dbf13b
Redesign Web API
...
Normalize Web API method names.
Allow to use alternative Web UI.
Switch Web API version to standard form (i.e. "2.0").
Improve Web UI translation code.
Retranslate changed files.
Add Web API for RSS subsystem.
7 years ago
sledgehammer999
4e96a1065e
Bump API_VERSION to 16.
7 years ago
sledgehammer999
ffa6f7ea34
Bump API_VERSION to 16.
7 years ago
Chocobo1
ce362f0e5e
WebAPI refactor: utilize parseBool() function
...
Coding style cleanup
Rename variable
Return const reference
Add const
7 years ago
Chocobo1
f350977cb4
WebUI: add optional parameters for /command/download & /command/upload
...
Specifically:
torrent name: string
download limit, upload limit: number in bytes, default: -1 (unlimited)
sequential download, first last piece prio: boolean true/false, default: false
7 years ago
thalieht
525fdd6c2b
Coding style, use nullptr and other minor things
7 years ago
Chocobo1
c5ddbcfb5b
WebAPI: fix addPaused wrong default behavior
...
Add helper function
Sort include header
7 years ago
Chocobo1
72b0ba36ae
Refactor
...
Merge statements
Use case-insensitive contains()
Add const
Use value(), this avoids inserting empty values.
Use range based for loop
7 years ago
Chocobo1
b107c0671d
WebAPI: fix root_folder default behavior
...
Bug was introduced in
6b33db3ae3
7 years ago
thalieht
6b33db3ae3
Create root folder option when adding a torrent in WebUI
7 years ago
Thomas Piccirello
4846b0ec28
Use single quotes for char.
...
Use case insensitive compare.
Swap conditionals
7 years ago
Thomas Piccirello
771033a449
Add auto torrent management to webui context menu (addresses #6815 )
7 years ago
Vladimir Golovnev (qlassez)
cff6a64e9f
Use qUtf8Printable() for logging strings
...
qDebug(), qInfo(), qWarning(), qCritical(), qFatal() expect %s arguments
to be UTF-8 encoded, while qPrintable() converts to local 8-bit encoding.
Therefore qUtf8Printable() should be used for logging strings instead of
qPrintable().
7 years ago
Thomas Piccirello
798c230634
Add option to rename torrent from WebUI
...
Addresses #6815 .
7 years ago
Tom Piccirello
07a85a1018
Set torrent location from webui context menu (addresses #6815 ) ( #7062 )
...
* Add option to set torrent location from webui context menu (addresses #6815 )
* Update debug messages
* Use logger
* Remove redundant curly braces
* Remove message
* Use log message from transferlistwidget
* Use QDir
* Remove unused import
* Check if newLocation is an empty string
7 years ago
sledgehammer999
802cd89ec9
Bump API_VERSION and API_VERSION_MIN to 15.
7 years ago
Thomas Piccirello
cd5a55d711
Skip username/password check for active sessions ( closes #6860 )
8 years ago
Chocobo1
087856d3d8
[WebUI]: Implement CSRF defense
...
Bump API version
8 years ago
Chocobo1
3933790bda
Add new webUI API. Closes #6457 .
...
Now getting piece information for a specific torrent is possible via:
* Returns an array of states (integers) of pieces in order. Defined as:
"0=not downloaded", "1=downloading", "2=downloaded".
GET /query/getPieceStates/<torrent_hash>
* Returns an array of hashes (strings) of pieces in order:
GET /query/getPieceHashes/<torrent_hash>
8 years ago
Thomas Piccirello
7cf1d844b0
Return status indicating if at least one torrent was successfully added
8 years ago
Eugene Shalygin
c4e16aa820
cmake: set warning and error options
...
The set is far from perfect, but guards against common errors with GCC.
8 years ago
Vladimir Golovnev (Glassez)
989a70fe60
Redesign RSS subsystem
8 years ago
sledgehammer999
e40444d1ad
Bump API_VERSION and API_VERSION_MIN to 13.
8 years ago
opengg
b271fa9f00
[WebUI] Add `skip_checking` and `paused` to `/command/download` and `/command/upload`
8 years ago
Chocobo1
cb1646be32
Prepend QBT_ for preprocessor variables
8 years ago
sledgehammer999
5c730f984d
Bump API_VERSION to 12.
8 years ago
sledgehammer999
0caf03130c
Bump API_VERSION and API_VERSION_MIN to 11.
8 years ago
Vladimir Golovnev (Glassez)
b2cb473b63
Don't use Preferences in BitTorrent::Session
9 years ago
sledgehammer999
57a4b9f8b6
Fix API_VERSION and API_VERSION_MIN numbers.
9 years ago
Gabriele
01b73bf704
WebUI: Add command to get the logs
...
Add /query/getLog and /query/getPeerLog to respectively retrieve
the main log and the peer log.
GET /query/getLog
Params:
- normal (bool): include normal messages (default true)
- info (bool): include info messages (default true)
- warning (bool): include warning messages (default true)
- critical (bool): include critical messages (default true)
- last_known_id (int): exclude messages with id <= 'last_known_id'
GET /query/getPeerLog
Params:
- last_known_id (int): exclude messages with id <= 'last_known_id'
9 years ago
sledgehammer999
4c79a1d766
Bump API_VERSION to 11.
9 years ago
sledgehammer999
93d8cadaaf
Bump API_VERSION and API_VERSION_MIN.
9 years ago
buinsky
24584503d9
WebUI: Implement removing unused categories
9 years ago
buinsky
50f2437ac3
WebUI: Implement removing categories
9 years ago
buinsky
a4dca52617
WebUI: Implement adding categories
9 years ago
Vladimir Golovnev (Glassez)
dd34663224
Implement Advanced Saving Management subsystem
...
Closes #4696
9 years ago
Vladimir Golovnev (Glassez)
c57aaf0216
Create MagnetUri object from BC link or HASH string
9 years ago
sledgehammer999
ab813df992
Bump WebUI API_VERSION and API_VERSION_MIN.
9 years ago
Gabriele
9e91cd70ee
WebUI: Allow to remove the label assigned to a torrent
...
Empty strings are not valid label names, but they are used to remove
torrent labels, so allow them.
9 years ago
sledgehammer999
3e0f8a1e4e
Bump WebUI API_VERSION.
9 years ago
buinsky
00c765be1b
Implement sync/torrent_peers request
9 years ago
Vladimir Golovnev (Glassez)
9db93e5d8f
Rename Core to Base ( Closes #3733 ).
9 years ago