/* 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 "gamefile.h" #include "config.h" #include "util.h" #include #include #include class gameDetails { public: gameDetails(); std::vector extras; std::vector installers; std::vector patches; std::vector languagepacks; std::vector dlcs; std::string gamename; std::string title; std::string icon; std::string serials; std::string changelog; void filterWithPriorities(const gameSpecificConfig& config); void makeFilepaths(const gameSpecificDirectoryConfig& config); std::string getSerialsFilepath(); std::string getChangelogFilepath(); Json::Value getDetailsAsJson(); std::vector getGameFileVector(); virtual ~gameDetails(); protected: void filterListWithPriorities(std::vector& list, const gameSpecificConfig& config); private: std::string serialsFilepath; std::string changelogFilepath; }; #endif // GAMEDETAILS_H