transmission/libtransmission
Charles Kerr 76521a1751
refactor: Values pt. 7 - remove tr_formatter_init methods (#6258)
* refactor: initialize libtransmission::Values units in Application::initUnits()

* refactor: use libtransmission::Values instead of Formatter::unitStr()

* refactor: remove Formatter::Size, Formatter:Type

* refactor: use Values::Config to init units in transmission-qt

* refactor: use Values::Config to init units in transmission-mac

* chore: remove unused tr_formatter_foo_init() functions

* chore: make Value::operator+() const

* use Values::Speed, Values::Storage in GTK client

* chore: use snake_case for Formatter methods

* refactor: use Values::Speed in GTK client details dialog

* feat: add Values::Value::is_zero()

* refactor: remove unnecessary UTF8String calls
2023-11-15 22:15:40 -06:00
..
.clang-tidy refactor: add tr_socket_address typedef (#5730) 2023-07-05 11:33:50 -05:00
CMakeLists.txt refactor: add libtransmission::Values (#6215) 2023-11-09 08:39:06 -06:00
announce-list.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
announce-list.h refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
announcer-common.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
announcer-http.cc fix: parse all http announce responses (#6223) 2023-11-08 09:54:19 -06:00
announcer-udp.cc refactor: directly check if announcers are idle instead of using a stop counter (#6237) 2023-11-12 21:43:43 -06:00
announcer.cc refactor: directly check if announcers are idle instead of using a stop counter (#6237) 2023-11-12 21:43:43 -06:00
announcer.h refactor: directly check if announcers are idle instead of using a stop counter (#6237) 2023-11-12 21:43:43 -06:00
bandwidth.cc refactor: Values pt. 2 - use Speed in tr_bandwidth (#6234) 2023-11-10 17:12:24 -06:00
bandwidth.h refactor: Values pt. 2 - use Speed in tr_bandwidth (#6234) 2023-11-10 17:12:24 -06:00
benc.h refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
bitfield.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
bitfield.h chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
block-info.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
block-info.h chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
blocklist.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
blocklist.h chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
cache.cc refactor: Values pt. 6 - remove deprecated API (#6250) 2023-11-14 17:23:51 -06:00
cache.h refactor: Values pt. 6 - remove deprecated API (#6250) 2023-11-14 17:23:51 -06:00
clients.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
clients.h chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
completion.cc refactor: optionally include 0 byte files when computing file offset (#6229) 2023-11-09 16:49:18 -06:00
completion.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
crypto-utils-ccrypto.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
crypto-utils-fallback.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
crypto-utils-mbedtls.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
crypto-utils-openssl.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
crypto-utils-wolfssl.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
crypto-utils.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
crypto-utils.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
error-types.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
error.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
error.h refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
favicon-cache.h chore: cleanup timespans in remaining headers (#6199) 2023-11-03 08:31:39 -05:00
file-capacity.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
file-piece-map.cc refactor: optionally include 0 byte files when computing file offset (#6229) 2023-11-09 16:49:18 -06:00
file-piece-map.h refactor: optionally include 0 byte files when computing file offset (#6229) 2023-11-09 16:49:18 -06:00
file-posix.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
file-win32.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
file.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
file.h refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
global-ip-cache.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
global-ip-cache.h chore: cleanup timespans in remaining headers (#6199) 2023-11-03 08:31:39 -05:00
handshake.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
handshake.h chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
history.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
inout.cc refactor: thread-safe `lru-cache` and `tr_open_files` (#6230) 2023-11-11 21:09:23 -06:00
inout.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
interned-string.h chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
libt.dox docs: fix various typos and misspellings (#2955) 2022-04-21 09:28:38 -05:00
log.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
log.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
lru-cache.h refactor: thread-safe `lru-cache` and `tr_open_files` (#6230) 2023-11-11 21:09:23 -06:00
magnet-metainfo.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
magnet-metainfo.h refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
makelog refactor: misc-use-anonymous-namespace pt. 4 (#4550) 2023-01-07 12:58:16 -06:00
makemeta.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
makemeta.h refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
mime-types.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
mime-types.js chore: update mime types (#5712) 2023-07-02 08:32:21 -05:00
net.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
net.h chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
observable.h chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
open-files.cc refactor: thread-safe `lru-cache` and `tr_open_files` (#6230) 2023-11-11 21:09:23 -06:00
open-files.h refactor: thread-safe `lru-cache` and `tr_open_files` (#6230) 2023-11-11 21:09:23 -06:00
peer-common.h refactor: Values pt. 4 - use Speed in peer_mgr, peer_msgs (#6241) 2023-11-12 14:38:27 -06:00
peer-io.cc refactor: Values pt. 2 - use Speed in tr_bandwidth (#6234) 2023-11-10 17:12:24 -06:00
peer-io.h refactor: Values pt. 2 - use Speed in tr_bandwidth (#6234) 2023-11-10 17:12:24 -06:00
peer-mgr-active-requests.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
peer-mgr-active-requests.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
peer-mgr-wishlist.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
peer-mgr-wishlist.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
peer-mgr.cc refactor: add private helper class CumulativeCount (#6260) 2023-11-15 18:53:43 -06:00
peer-mgr.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
peer-mse.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
peer-mse.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
peer-msgs.cc refactor: Values pt. 4 - use Speed in peer_mgr, peer_msgs (#6241) 2023-11-12 14:38:27 -06:00
peer-msgs.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
peer-socket.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
peer-socket.h refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
platform.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
platform.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
port-forwarding-natpmp.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
port-forwarding-natpmp.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
port-forwarding-upnp.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
port-forwarding-upnp.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
port-forwarding.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
port-forwarding.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
quark.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
quark.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
resume.cc refactor: add private helper class CumulativeCount (#6260) 2023-11-15 18:53:43 -06:00
resume.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
rpc-server.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
rpc-server.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
rpcimpl.cc refactor: make some tr_torrent fields private (#6259) 2023-11-15 16:24:33 -06:00
rpcimpl.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
session-alt-speeds.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
session-alt-speeds.h refactor: Values pt. 3 - use Speed in tr_session (#6235) 2023-11-12 12:30:37 -06:00
session-id.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
session-id.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
session-settings.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
session-settings.h refactor: Values pt. 6 - remove deprecated API (#6250) 2023-11-14 17:23:51 -06:00
session-thread.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
session-thread.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
session.cc refactor: add private helper class CumulativeCount (#6260) 2023-11-15 18:53:43 -06:00
session.h refactor: Values pt. 6 - remove deprecated API (#6250) 2023-11-14 17:23:51 -06:00
stats.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
stats.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
subprocess-posix.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
subprocess-win32.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
subprocess.h refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
timer-ev.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
timer-ev.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
timer.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
torrent-ctor.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
torrent-files.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
torrent-files.h refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
torrent-magnet.cc refactor: make some tr_torrent fields private (#6259) 2023-11-15 16:24:33 -06:00
torrent-magnet.h refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
torrent-metainfo.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
torrent-metainfo.h refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
torrent.cc refactor: add private helper class CumulativeCount (#6260) 2023-11-15 18:53:43 -06:00
torrent.h refactor: Values pt. 7 - remove tr_formatter_init methods (#6258) 2023-11-15 22:15:40 -06:00
torrents.cc refactor: make some tr_torrent fields private (#6259) 2023-11-15 16:24:33 -06:00
torrents.h refactor: thread-safe `Cache` (#6231) 2023-11-12 11:53:04 -06:00
tr-arc4.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
tr-assert.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
tr-assert.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
tr-assert.mm chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
tr-buffer.h refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
tr-dht.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
tr-dht.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
tr-getopt.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
tr-getopt.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
tr-lpd.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
tr-lpd.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
tr-macros.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
tr-popcount.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
tr-strbuf.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
tr-udp.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
tr-utp.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
tr-utp.h chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
transmission.h refactor: Values pt. 6 - remove deprecated API (#6250) 2023-11-14 17:23:51 -06:00
utils-ev.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
utils-ev.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
utils.cc refactor: Values pt. 7 - remove tr_formatter_init methods (#6258) 2023-11-15 22:15:40 -06:00
utils.h refactor: Values pt. 7 - remove tr_formatter_init methods (#6258) 2023-11-15 22:15:40 -06:00
utils.mm chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
values.h refactor: Values pt. 7 - remove tr_formatter_init methods (#6258) 2023-11-15 22:15:40 -06:00
variant-benc.cc refactor: migrate variant api (#6238) 2023-11-10 15:41:32 -06:00
variant-converters.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
variant-json.cc refactor: migrate variant api (#6238) 2023-11-10 15:41:32 -06:00
variant.cc refactor: migrate variant api (#6238) 2023-11-10 15:41:32 -06:00
variant.h refactor: migrate variant api (#6238) 2023-11-10 15:41:32 -06:00
verify.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
verify.h chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
version.h.in build: support semver versioning (#3867) 2022-10-05 16:53:10 -05:00
watchdir-base.h chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
watchdir-generic.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
watchdir-inotify.cc chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
watchdir-kqueue.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
watchdir-win32.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
watchdir.cc refactor: remove the tr_error** idiom (#6198) 2023-11-04 11:39:41 -05:00
watchdir.h chore: iwyu (#6201) 2023-11-03 12:03:26 -05:00
web-utils.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
web-utils.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
web.cc refactor: directly check if announcers are idle instead of using a stop counter (#6237) 2023-11-12 21:43:43 -06:00
web.h refactor: directly check if announcers are idle instead of using a stop counter (#6237) 2023-11-12 21:43:43 -06:00
webseed.cc refactor: Values pt. 4 - use Speed in peer_mgr, peer_msgs (#6241) 2023-11-12 14:38:27 -06:00
webseed.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00