lgogdownloader/include/gamedetails.h

38 lines
1016 B
C
Raw Normal View History

#ifndef GAMEDETAILS_H
#define GAMEDETAILS_H
#include "globalconstants.h"
#include "gamefile.h"
#include "config.h"
#include "util.h"
#include <iostream>
#include <vector>
2015-01-22 08:22:48 +01:00
#include <json/json.h>
class gameDetails
{
public:
gameDetails();
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;
2015-03-19 08:50:50 +01:00
std::string icon;
std::string serials;
void filterWithPriorities(const gameSpecificConfig& config);
void makeFilepaths(const gameSpecificDirectoryConfig& config);
2015-03-19 08:50:50 +01:00
std::string getSerialsFilepath();
Json::Value getDetailsAsJson();
virtual ~gameDetails();
protected:
void filterListWithPriorities(std::vector<gameFile>& list, const gameSpecificConfig& config);
private:
2015-03-19 08:50:50 +01:00
std::string serialsFilepath;
};
#endif // GAMEDETAILS_H