2014-09-19 19:23:21 +02:00
|
|
|
#ifndef GAMEDETAILS_H
|
|
|
|
#define GAMEDETAILS_H
|
|
|
|
|
|
|
|
#include "globalconstants.h"
|
|
|
|
#include "gamefile.h"
|
2014-09-19 20:08:46 +02:00
|
|
|
#include "config.h"
|
2014-09-19 19:23:21 +02:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
2015-01-22 08:22:48 +01:00
|
|
|
#include <json/json.h>
|
2014-09-19 19:23:21 +02:00
|
|
|
|
|
|
|
class gameDetails
|
|
|
|
{
|
|
|
|
public:
|
2014-09-19 20:08:46 +02:00
|
|
|
gameDetails();
|
2014-09-19 19:23:21 +02:00
|
|
|
std::vector<gameFile> extras;
|
|
|
|
std::vector<gameFile> installers;
|
|
|
|
std::vector<gameFile> patches;
|
|
|
|
std::vector<gameFile> languagepacks;
|
|
|
|
std::vector<gameDetails> dlcs;
|
|
|
|
std::string gamename;
|
|
|
|
std::string title;
|
|
|
|
std::string icon;;
|
2014-10-26 10:47:13 +01:00
|
|
|
void filterWithPriorities(const Config& config);
|
2014-09-19 20:08:46 +02:00
|
|
|
void makeFilepaths(const Config& config);
|
2014-10-16 10:05:57 +02:00
|
|
|
Json::Value getDetailsAsJson();
|
2014-09-19 20:08:46 +02:00
|
|
|
virtual ~gameDetails();
|
2014-09-19 19:23:21 +02:00
|
|
|
protected:
|
2014-10-26 10:47:13 +01:00
|
|
|
void filterListWithPriorities(std::vector<gameFile>& list, const Config& config);
|
2014-09-19 19:23:21 +02:00
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GAMEDETAILS_H
|