51 const std::string&
name,
53 const std::time_t& time,
54 const std::filesystem::path& source_l,
55 const std::string& source_r,
56 const std::time_t& time_r,
58 const std::time_t& suppress_time);
63 Mod(
const Json::Value& json);
65 Json::Value toJson()
const;
bool operator<(const Mod &other) const
Compares mods by their id.
Definition mod.cpp:50
std::string remote_source
URL from where the mod was downloaded.
Definition mod.h:29
bool operator==(const Mod &other) const
Compares to another mod by id.
Definition mod.cpp:45
int id
The mod's id.
Definition mod.h:19
std::time_t install_time
The mod's installation time.
Definition mod.h:25
std::string version
The mod's version.
Definition mod.h:23
std::string name
The mod's name.
Definition mod.h:21
std::filesystem::path local_source
Path to the local archive or directory used to install this mod.
Definition mod.h:27
unsigned long size_on_disk
Total size of the installed mod on disk.
Definition mod.h:33
std::time_t remote_update_time
Timestamp for when the mod was updated at the remote source.
Definition mod.h:31
std::time_t suppress_update_time
Timestamp for when the user requested to suppress current update notifications.
Definition mod.h:35
Mod(int id, const std::string &name, const std::string &version, const std::time_t &time, const std::filesystem::path &source_l, const std::string &source_r, const std::time_t &time_r, unsigned long size, const std::time_t &suppress_time)
Constructor. Simply initializes members.
Definition mod.cpp:3