8806 Commits

Author SHA1 Message Date
iTrooz
fd1cb1b58b
DCO Remediation Commit for iTrooz <hey@itrooz.fr>
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: fac521a312d1f6055b29d12da8b8773adaa24afb
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 43a54cafef95a3b4c2181f4d3d1e2d3876b8e7f9
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: ee35ac5afdb2a6409b7ad52fde38c411d112f064
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 99ac11bc408b5102a7c9d6d0c003e854d5e7fdef
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 8fa1dff17dc4d7953fbf7f0961a33e751183b06b
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 2f70115be5555c7c9ad46765f61e6b1cc965e8b4
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: ea2a2349f8ebd353ac4ba4296f9514c3f8419c58
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 87c9066a2b218aef5296ab8ad4dddfa483dcd9cb
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: fe28a051d533bd34681c6306deab5b93b13dc5e9
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 0a379a05ff03b2c55fcc4342c84f90fff64bb9a9
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 6a7678a6e9548501b84ed3a2d81a9cabe6955703
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: cba7e2dc362238cbfa9bcc680d164c828cd39836
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 8cf0c2029ccccf40cbf21fd122bea233732911bc
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 0d830e56e9c888b860e03ee4a9e44239d67a4d4a
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: b35cffb3477b997a4dc779696aeb0acb79880d51
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 1f094b98039b4f8c79bc402246babd4f821116db
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 2d06e0a11194a3a4c379ddd518b857c4c2b98f54
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: c3543b104b5f13778677e2244ab93faf6850cb99
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 8b7040d416b46d8011b97b71505778026c2c5ece
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: b8035ca0783ba42efbc7c11cf329c6f4372abbc5
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 9d5727e36b22d2a2eeb17f6faf0bf5b2c01421fd
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 7cf24586c2a9ff8e5dd33a390f83b7f098266881
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 7d04f0ee758cb3c0c9c4273de67424269d63507c
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 60fb922ba2ed56703e5d64626f015e57d5cb0de5
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: a79a66c177194f1761f353e00bc53f1dc653eea3
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 1fb0fe0171fa2db09b296a62d636bab1ea026009
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 5cfb5a6f0db81e850ed3299759ffc131d049f289
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 9ce5eaaa0c8e8ca74dce42e2d287e865905efdf4
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 0c6f78dee2c16820624e2f55e12d903392baad75
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 7c8d2c9b55526db21a9656a65adbe4b2cfabd892
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 24b9815763ce1f81b30c4d422ee0d2dc5660dede
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 7d2da194184180846362af7c5d8e3726db190b88
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: ca6d66970ea52ae95c064babf42f74a1d953717b
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 520d6b0b42eae5b7fb5757cc07d96b53d2f6e7e8
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 4fad298d675102df39fadd0837bc36450068a7dc
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 087ab70143c69de8e8b9c5006393137f42b41f1c
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 7c61fec8e0e753de1b7215e45b0a4272551ffac4
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: fef8ee2d1b4f866437b30ec4ea8fd5cae2426e9c
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 3a9c03098267fd64a27b9bfe62dddccbdffc6cf0
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: f05548f3a36c0badcedec86d6fc5dd7a973bd36e
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 66f36195d8d2d4c362e94dc56239feb42e31fd36
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: ca52d00b8040e27860f931bdf5a6e7ce92c08413
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 26f50f9b818e68fc21c8ae06fc313bfc2e0da6e9
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 873232ebe3b3e41a97f908018dd5ff7fd14be10e
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 8b90a9f2b3e3d58b9725eda081cf209781c13aa6
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: dbb88ca7df6594f65cba5c5e5bd821a0c2605c00
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 6f9be258dc87752c3d8d80cac44570575ecba7b0
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: d124e2e0cba25e914bb885a4efd785294790227c
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: cfb0c97262f2f6467f1f35460938a9160cb2484e
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 5eb417ff2be159330558999082ecb64e3ee8f003
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 3fb6764ea48e942a655aafbbce9fc4a226839eff
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: ae7d3379e4ed2d8aee51026f37b7344026f97de7
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 09782745c6f1e1ad0edfd4222f432d679d10c17b
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: b0778e7a1fcf62493638aa9caafcb17a8860a3a1
I, iTrooz <hey@itrooz.fr>, hereby add my Signed-off-by to this commit: 01db826ec92bd41164514518d25b1941b58e5180

Signed-off-by: iTrooz <hey@itrooz.fr>
2024-11-29 01:01:32 +01:00
iTrooz
01db826ec9
Reset online players UI component when refreshing 2024-11-29 00:58:08 +01:00
iTrooz
b0778e7a1f
chore 2024-11-29 00:44:31 +01:00
iTrooz
09782745c6
make writePacketToSocket() clear data automatically 2024-11-29 00:44:25 +01:00
iTrooz
ae7d3379e4
abort current query task if present when refreshing 2024-11-29 00:39:43 +01:00
iTrooz
3fb6764ea4
fix typo 2024-11-29 00:13:43 +01:00
iTrooz
5eb417ff2b
Always autodelete signal connections with this captured when the objet is deleted, just to be sure 2024-11-28 23:54:51 +01:00
iTrooz
cfb0c97262
use Json::requireInteger() 2024-11-28 18:09:38 +01:00
iTrooz
d124e2e0cb
cleanup 2024-11-28 17:50:55 +01:00
iTrooz
6f9be258dc
add documentation about task abortion 2024-11-28 17:49:35 +01:00
iTrooz
dbb88ca7df
move ServerPingTask in its own file 2024-11-28 17:46:42 +01:00
iTrooz
8b90a9f2b3
remove infinite loop from readVarInt() 2024-11-28 17:32:49 +01:00
iTrooz
873232ebe3
remove infinite loop in writeVarInt() 2024-11-28 17:29:35 +01:00
iTrooz
26f50f9b81
connect job to deletion task before starting it
This ensures the signal is not fired before we have connected it
2024-11-26 18:50:37 +01:00
iTrooz
ca52d00b80
replace std::string by QString in emitFail() 2024-11-26 18:47:13 +01:00
iTrooz
66f36195d8
simplify code 2024-11-26 18:44:21 +01:00
iTrooz
f05548f3a3
remove implicit captures 2024-11-26 18:43:14 +01:00
iTrooz
3a9c030982
Do not timeout after just 3000ms
Keep the network default timeout
2024-11-26 18:24:46 +01:00
iTrooz
fef8ee2d1b
Disconnect task finished signal when ServersModel is destroyed 2024-11-26 18:16:15 +01:00
iTrooz
7c61fec8e0
Make task output online players rather than updating Server itself
This doesn't really change anything
2024-11-26 18:03:35 +01:00
iTrooz
087ab70143
refresh UI when we got the players online 2024-11-26 14:33:02 +01:00
iTrooz
4fad298d67
put more McClient methods to private 2024-11-26 13:22:02 +01:00
iTrooz
520d6b0b42
run socket code in thread 2024-11-26 13:22:00 +01:00
iTrooz
ca6d66970e
add documentation for Task and ConcurrentTask 2024-11-25 23:49:03 +01:00
iTrooz
7d2da19418
make McResolver have the same signal name conventions as Task 2024-11-25 01:09:47 +01:00
iTrooz
24b9815763
cleanup 2024-11-25 00:16:46 +01:00
iTrooz
7c8d2c9b55
always delete McResolver object, even when it fails 2024-11-25 00:16:25 +01:00
iTrooz
0c6f78dee2
communicate when ServerPingTask succeeds/fails 2024-11-25 00:10:17 +01:00
iTrooz
9ce5eaaa0c
fix job being deleted before tasks are finished 2024-11-24 23:54:19 +01:00
iTrooz
5cfb5a6f0d
do not capture things implicitely in lambdas 2024-11-24 16:37:42 +01:00
iTrooz
1fb0fe0171
ping servers when opening Servers page 2024-11-19 20:48:17 +01:00
iTrooz
a79a66c177
remove debug print 2024-11-19 20:43:04 +01:00
iTrooz
60fb922ba2
remove QObject parent argument from ServerPingTask constructor 2024-11-19 20:43:04 +01:00
iTrooz
7d04f0ee75
remove useless code when reading response 2024-11-17 20:06:08 +01:00
iTrooz
7cf24586c2
.hpp -> .h 2024-11-17 19:58:30 +01:00
iTrooz
9d5727e36b
MCResolver -> McResolver 2024-11-17 19:51:15 +01:00
iTrooz
b8035ca078
refactor header and code into 2 files 2024-11-17 19:50:52 +01:00
iTrooz
8b7040d416
use Qt5-compatible writeString() impl 2024-11-17 19:37:15 +01:00
iTrooz
c3543b104b
fix qDebug() call with string << append 2024-11-17 19:26:21 +01:00
iTrooz
2d06e0a111
Fix after rebase 2024-11-17 19:21:09 +01:00
iTrooz
1f094b9803
avoid translating back to stf string without reason 2024-11-17 19:10:15 +01:00
iTrooz
b35cffb347
fix warning about unused jsonLength 2024-11-17 19:10:15 +01:00
iTrooz
0d830e56e9
replace std::runtime_exception with PrismLauncher Exception + add try/catch 2024-11-17 19:10:15 +01:00
iTrooz
8cf0c2029c
No need to close the socket, it is done automatically
https://doc.qt.io/qt-6/qtcpsocket.html#dtor.QTcpSocket
2024-11-17 19:10:15 +01:00
iTrooz
cba7e2dc36
use std::optional<> to signify when there is no value 2024-11-17 19:10:15 +01:00
iTrooz
6a7678a6e9
Actually show online players when clicking on the button 2024-11-17 19:10:15 +01:00
iTrooz
0a379a05ff
replace my printf calls with qDebug 2024-11-17 19:10:15 +01:00
iTrooz
fe28a051d5
make MCResolver a dynamic object so it doesnt get deleted before the callback
See https://discord.com/channels/1031648380885147709/1031823065937629267/1307471566166167696
2024-11-17 19:10:15 +01:00
iTrooz
87c9066a2b
run the code in tasks 2024-11-17 19:10:15 +01:00
iTrooz
ea2a2349f8
make splitAddress() const 2024-11-17 19:10:15 +01:00