mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-13 05:37:42 +02:00
Removed AuthRequest and NetAction
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -36,6 +36,7 @@
|
||||
*/
|
||||
|
||||
#include "NetJob.h"
|
||||
#include "net/NetRequest.h"
|
||||
#include "tasks/ConcurrentTask.h"
|
||||
#if defined(LAUNCHER_APPLICATION)
|
||||
#include "Application.h"
|
||||
@ -48,7 +49,7 @@ NetJob::NetJob(QString job_name, shared_qobject_ptr<QNetworkAccessManager> netwo
|
||||
#endif
|
||||
}
|
||||
|
||||
auto NetJob::addNetAction(NetAction::Ptr action) -> bool
|
||||
auto NetJob::addNetAction(Net::NetRequest::Ptr action) -> bool
|
||||
{
|
||||
action->setNetwork(m_network);
|
||||
|
||||
@ -111,11 +112,11 @@ auto NetJob::abort() -> bool
|
||||
return fullyAborted;
|
||||
}
|
||||
|
||||
auto NetJob::getFailedActions() -> QList<NetAction*>
|
||||
auto NetJob::getFailedActions() -> QList<Net::NetRequest*>
|
||||
{
|
||||
QList<NetAction*> failed;
|
||||
QList<Net::NetRequest*> failed;
|
||||
for (auto index : m_failed) {
|
||||
failed.push_back(dynamic_cast<NetAction*>(index.get()));
|
||||
failed.push_back(dynamic_cast<Net::NetRequest*>(index.get()));
|
||||
}
|
||||
return failed;
|
||||
}
|
||||
@ -124,7 +125,7 @@ auto NetJob::getFailedFiles() -> QList<QString>
|
||||
{
|
||||
QList<QString> failed;
|
||||
for (auto index : m_failed) {
|
||||
failed.append(static_cast<NetAction*>(index.get())->url().toString());
|
||||
failed.append(static_cast<Net::NetRequest*>(index.get())->url().toString());
|
||||
}
|
||||
return failed;
|
||||
}
|
||||
|
Reference in New Issue
Block a user