This makes it so that we don't need a reference to the parent page in the model. It will be useful once we change the page from a widget-based one to a QML page. It also makes tasks be created in the dialog instead of the page, so that the dialog can also have the necessary information to mark versions as selected / deselected easily. It also makes the task pointers into smart pointers. Signed-off-by: flow <flowlnlnln@gmail.com>
		
			
				
	
	
		
			24 lines
		
	
	
		
			751 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			751 B
		
	
	
	
		
			C++
		
	
	
	
	
	
//
 | 
						|
// Created by timoreo on 16/01/2022.
 | 
						|
//
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include "modplatform/ModIndex.h"
 | 
						|
 | 
						|
#include "BaseInstance.h"
 | 
						|
#include <QNetworkAccessManager>
 | 
						|
 | 
						|
namespace FlameMod {
 | 
						|
 | 
						|
void loadIndexedPack(ModPlatform::IndexedPack& m, QJsonObject& obj);
 | 
						|
void loadURLs(ModPlatform::IndexedPack& m, QJsonObject& obj);
 | 
						|
void loadBody(ModPlatform::IndexedPack& m, QJsonObject& obj);
 | 
						|
void loadIndexedPackVersions(ModPlatform::IndexedPack& pack,
 | 
						|
                             QJsonArray& arr,
 | 
						|
                             const shared_qobject_ptr<QNetworkAccessManager>& network,
 | 
						|
                             const BaseInstance* inst);
 | 
						|
auto loadIndexedPackVersion(QJsonObject& obj, bool load_changelog = false) -> ModPlatform::IndexedVersion;
 | 
						|
 | 
						|
}  // namespace FlameMod
 |