mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
34 lines
937 B
C++
34 lines
937 B
C++
#ifndef GAMEFILE_H
|
|
#define GAMEFILE_H
|
|
|
|
#include "globalconstants.h"
|
|
|
|
#include <iostream>
|
|
#include <vector>
|
|
#include <json/json.h>
|
|
|
|
class gameFile
|
|
{
|
|
public:
|
|
gameFile();
|
|
gameFile(const int& t_updated, const std::string& t_id, const std::string& t_name, const std::string& t_path, const std::string& t_size, const unsigned int& t_language = GlobalConstants::LANGUAGE_EN, const unsigned int& t_platform = GlobalConstants::PLATFORM_WINDOWS, const int& t_silent = 0);
|
|
int updated;
|
|
std::string id;
|
|
std::string name;
|
|
std::string path;
|
|
std::string size;
|
|
unsigned int platform;
|
|
unsigned int language;
|
|
int score;
|
|
int silent;
|
|
void setFilepath(const std::string& path);
|
|
std::string getFilepath();
|
|
Json::Value getAsJson();
|
|
virtual ~gameFile();
|
|
protected:
|
|
private:
|
|
std::string filepath;
|
|
};
|
|
|
|
#endif // GAMEFILE_H
|