45c39d078f
More clenup
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-06-27 09:23:24 +03:00
385babb458
Simplify Upload and Download
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-06-27 08:51:17 +03:00
b142407b21
fix: ensure finished
signal is emited
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-06-25 16:13:26 -07:00
c49ee87857
fix(net): fix emit signals in download & upload task
...
Signed-off-by: seth <getchoo@tuta.io >
2023-06-25 18:56:54 -04:00
df4fd7df7f
Merge remote-tracking branch 'upstream/develop' into refactor/net-split-headers-to-proxy-class
2023-06-25 12:43:48 -07:00
c8ff812ab8
feat(net): ApiUpload ^& fix unfired finished
signals
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-06-25 12:02:46 -07:00
418677ef31
refactor: override / mask static make
functions for ApiDownload
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-06-25 11:09:25 -07:00
9c10965997
refactor: split out setting api headers for downloads
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-06-25 11:09:25 -07:00
147366bc0a
Made ByteSynkArray to use shared_ptr
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-06-15 22:59:41 +03:00
7983977156
feat: Qt 5.15 adds transfer timeouts. at least use it for downloads
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-21 01:48:34 -07:00
6b6d6a01dc
Merge branch 'develop' into fix/network_and_signals
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-12 01:13:17 -07:00
62a402d05a
refactor: move functions to utils + code-review fixes
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-06 19:10:58 -07:00
b266068644
Apply suggestions from code review
...
Co-authored-by: flow <flowlnlnln@gmail.com >
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-05 14:07:10 -07:00
733619ca74
feat: estimate remining time on downloads
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-01 10:48:00 -07:00
fe36471b8d
refactor: logging.h -> Logging.h
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-01 10:48:00 -07:00
cdccb25fe3
feat: add download size to download details alongside speed
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-01 10:48:00 -07:00
b6452215c1
feat: add details
signal to Task
...
feat: add details to mod pack downloading
feat: add logging rule sloading form `ligging.ini at data path root
feat: add `launcher.task` `launcher.task.net` and `launcher.task.net.[down|up]load` logging categories
fix: add new subtask progress to the end of the lay out not the beginning (cuts down on flickering)
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-01 10:47:50 -07:00
f1028fa66d
fix: properly map progress range
...
- doument PCRE used for URL compacting
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-01 10:47:31 -07:00
9d2f0e4dc8
feat: Propogated subtask progress
...
Oh boy this is big.
> TaskStepProgress struct is now QMetaObject compatabile and can be sent through signals
> Task now has a method to propogates sub task progress it must be signal bound by each task containing a task wishing to report progress of it's children.
> Downloads report speed
> Tasks now have UUIDS to track them
- use when reporting
- use when logging
- use when storeing them or objects related to them
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-01 10:47:20 -07:00
f997529cd4
feat: better task tracking
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-01 10:45:34 -07:00
12f0d51c0c
Fix: signal/slot macro -> func pointer & network fixes
...
- convert qt connect calls to use function pointers instead of the signal/slot macros wherever practical (UI classes were mostly left alone, target was tasks and processes)
- give signals an explicit receivers to use the static method over the instance method wherever practical
- ensure networks tasks are using the `errorOccured` signal added in Qt5.15 over the deprecated `error` signal
- ensure all networks tasks have an sslErrors signal connected
- add seemingly missing `MinecraftAccount::authSucceeded` connection for `MSAInteractive` login flow
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-04-17 18:23:18 -07:00
76f66148db
Apply flowln's suggestion
...
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2023-03-05 18:21:24 +00:00
4efbf22089
Prism-ify more license headers
...
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2023-03-02 10:19:42 +00:00
1f3d18ec12
Replace with exact match and add TODO to improve
...
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2023-03-02 09:26:00 +00:00
1feb630520
Allow custom Modrinth API token
...
Signed-off-by: TheKodeToad <TheKodeToad@proton.me >
2023-03-01 14:24:56 +00:00
29f7ea752f
refactor: make shared_qobject_ptr ctor explicit
...
This turns issues like creating two shared ptrs from a single raw ptr
from popping up at runtime, instead making them a compile error.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-25 16:57:51 -03:00
8e3356f11a
Merge pull request #1034 from Scrumplex/detect-performance-features
2022-09-05 17:45:17 +02:00
6be59b53f1
feat: add eternal cache entries
...
Those are entries that don't get stale over time, so we don't invalidate
them if they 'expire'.
Signed-off-by: flow <flowlnlnln@gmail.com >
2022-08-21 13:47:49 -03:00
f873cd5b1a
refactor: store current capabilities
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2022-08-08 21:16:37 +02:00
8f4d7ac655
Merge pull request #678 from Scrumplex/improvements-around-proprietary-services
2022-07-11 14:56:09 +02:00
3b4539de79
chore: update license headers
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2022-07-10 12:19:15 +02:00
15c5bbcf22
fix: fix slots for Qt 6
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2022-07-10 12:19:15 +02:00
962923bbce
chore: add missing license headers
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2022-07-08 16:25:03 +02:00
4103948132
feat: track capabilities of application
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2022-07-08 16:25:03 +02:00
8a1a583afe
refactor: rename references to CurseForge to Flame
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2022-07-08 16:25:03 +02:00
25ab121e42
feat: custom user-agent
2022-06-04 15:33:17 +08:00
b4707f46ad
Merge pull request #500 from flowln/net_refactor
...
Refactor a little the code in `launcher/net/` files
2022-05-21 12:06:34 +02:00
2847cefff7
Add cursefrog key override
2022-05-20 19:56:27 +02:00
0bce08d30f
chore: add polymc license headers to launcher/net files
2022-05-12 18:11:55 -03:00
57d65177c8
fix: abort and fail logic in tasks
...
Also sets up correctly the status connections
2022-05-12 18:11:55 -03:00
040ee919e5
refactor: more net cleanup
...
This runs clang-tidy on some other files in launcher/net/.
This also makes use of some JSON wrappers in HttpMetaCache, instead of
using the Qt stuff directly.
Lastly, this removes useless null checks (crashes don't occur because of
this, but because of concurrent usage / free of the QByteArray pointer),
and fix a fixme in Download.h
2022-05-12 18:11:55 -03:00
efa3fbff39
refactor: remove some superfluous signals
...
Since now we're inheriting from Task, some signals can be reused.
2022-05-12 18:11:55 -03:00
8c8eabf7ac
refactor: organize a little more the code in launcher/net/
...
This also reduces some code duplication by using some Task logic in
NetAction.
2022-05-12 18:11:49 -03:00
22f5128e39
adopt changes from #497 remapped
2022-05-08 15:22:50 +08:00
69213b1206
NOISSUE continue refactoring things to make tests pass
2021-11-21 23:21:12 +01:00
0c861db7a2
NOISSUE Some happy little refactors
2021-11-20 16:22:22 +01:00
eafeb64dec
NOISSUE qnam -> network
2021-11-17 13:20:50 +01:00
20b9f2b42a
NOISSUE Flatten gui and logic libraries into MultiMC
2021-07-25 19:50:44 +02:00