lgogdownloader/include/gamedetails.h

50 lines
1.5 KiB
C
Raw Normal View History

/* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://www.wtfpl.net/ for more details. */
#ifndef GAMEDETAILS_H
#define GAMEDETAILS_H
#include "globalconstants.h"
#include "globals.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 product_id;
std::string title;
2015-03-19 08:50:50 +01:00
std::string icon;
std::string serials;
2016-03-06 14:45:22 +01:00
std::string changelog;
void filterWithPriorities(const gameSpecificConfig& config);
void makeFilepaths(const DirectoryConfig& config);
2015-03-19 08:50:50 +01:00
std::string getSerialsFilepath();
2016-03-06 14:45:22 +01:00
std::string getChangelogFilepath();
Json::Value getDetailsAsJson();
std::vector<gameFile> getGameFileVector();
virtual ~gameDetails();
protected:
void filterListWithPriorities(std::vector<gameFile>& list, const gameSpecificConfig& config);
private:
2015-03-19 08:50:50 +01:00
std::string serialsFilepath;
2016-03-06 14:45:22 +01:00
std::string changelogFilepath;
};
#endif // GAMEDETAILS_H