chore:renamed variables to camelCase
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@@ -18,9 +18,9 @@ class ResourceUpdateDialog final : public ReviewMessageBox {
|
||||
public:
|
||||
explicit ResourceUpdateDialog(QWidget* parent,
|
||||
BaseInstance* instance,
|
||||
std::shared_ptr<ResourceFolderModel> resource_model,
|
||||
QList<Resource*>& search_for,
|
||||
bool include_deps,
|
||||
std::shared_ptr<ResourceFolderModel> resourceModel,
|
||||
QList<Resource*>& searchFor,
|
||||
bool includeDeps,
|
||||
QList<ModPlatform::ModLoaderType> loadersList = {});
|
||||
|
||||
void checkCandidates();
|
||||
@@ -28,9 +28,9 @@ class ResourceUpdateDialog final : public ReviewMessageBox {
|
||||
void appendResource(const CheckUpdateTask::Update& info, QStringList requiredBy = {});
|
||||
|
||||
const QList<ResourceDownloadTask::Ptr> getTasks();
|
||||
auto indexDir() const -> QDir { return m_resource_model->indexDir(); }
|
||||
auto indexDir() const -> QDir { return m_resourceModel->indexDir(); }
|
||||
|
||||
auto noUpdates() const -> bool { return m_no_updates; };
|
||||
auto noUpdates() const -> bool { return m_noUpdates; };
|
||||
auto aborted() const -> bool { return m_aborted; };
|
||||
|
||||
private:
|
||||
@@ -40,29 +40,29 @@ class ResourceUpdateDialog final : public ReviewMessageBox {
|
||||
void onMetadataEnsured(Resource* resource);
|
||||
void onMetadataFailed(Resource* resource,
|
||||
bool try_others = false,
|
||||
ModPlatform::ResourceProvider first_choice = ModPlatform::ResourceProvider::MODRINTH);
|
||||
ModPlatform::ResourceProvider firstChoice = ModPlatform::ResourceProvider::MODRINTH);
|
||||
|
||||
private:
|
||||
QWidget* m_parent;
|
||||
|
||||
shared_qobject_ptr<ModrinthCheckUpdate> m_modrinth_check_task;
|
||||
shared_qobject_ptr<FlameCheckUpdate> m_flame_check_task;
|
||||
shared_qobject_ptr<ModrinthCheckUpdate> m_modrinthCheckTask;
|
||||
shared_qobject_ptr<FlameCheckUpdate> m_flameCheckTask;
|
||||
|
||||
const std::shared_ptr<ResourceFolderModel> m_resource_model;
|
||||
const std::shared_ptr<ResourceFolderModel> m_resourceModel;
|
||||
|
||||
QList<Resource*>& m_candidates;
|
||||
QList<Resource*> m_modrinth_to_update;
|
||||
QList<Resource*> m_flame_to_update;
|
||||
QList<Resource*> m_modrinthToUpdate;
|
||||
QList<Resource*> m_flameToUpdate;
|
||||
|
||||
ConcurrentTask::Ptr m_second_try_metadata;
|
||||
QList<std::tuple<Resource*, QString>> m_failed_metadata;
|
||||
QList<std::tuple<Resource*, QString, QUrl>> m_failed_check_update;
|
||||
ConcurrentTask::Ptr m_secondTryMetadata;
|
||||
QList<std::tuple<Resource*, QString>> m_failedMetadata;
|
||||
QList<std::tuple<Resource*, QString, QUrl>> m_failedCheckUpdate;
|
||||
|
||||
QHash<QString, ResourceDownloadTask::Ptr> m_tasks;
|
||||
BaseInstance* m_instance;
|
||||
|
||||
bool m_no_updates = false;
|
||||
bool m_noUpdates = false;
|
||||
bool m_aborted = false;
|
||||
bool m_include_deps = false;
|
||||
bool m_includeDeps = false;
|
||||
QList<ModPlatform::ModLoaderType> m_loadersList;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user