![]() |
Atlas Game Manager
A game manager for f95 and dlsite written in c++
|
Representation of a game version. More...
#include <Version.hpp>
Public Member Functions | |
| const VersionData * | operator-> () const |
| void | addPlaytime (const std::uint32_t playtime) |
| Adds playtime to this and it's parent record. | |
| template<class Rep, class Period> | |
| void | addPlaytime (const std::chrono::duration< Rep, Period > time_diff) |
| void | setLastPlayed (const std::uint64_t last_played) |
| Sets the last played timestamp for this and it's parent record. | |
| void | playGame () |
| Executes the game for this record. | |
| void | setVersionName (const QString str) |
| void | setRelativeExecPath (const std::filesystem::path &path) |
| QString | getVersionName () const |
| bool | isInPlace () const |
| If true then the game is not located in config::paths::games::get() | |
| std::uint32_t | getPlaytime () const |
| std::uint64_t | getLastPlayed () const |
| std::filesystem::path | getPath () const |
| std::filesystem::path | getRelativeExecPath () const |
| std::filesystem::path | getExecPath () const |
| std::uint64_t | getFolderSize () const |
| RecordID | getParentID () const |
| std::uint64_t | getImportTime () const |
| Version ()=delete | |
| bool | operator== (const Version &other) const |
| Version (const RecordID, const QString &name) | |
| ~Version () | |
| Version (const Version &other) noexcept | |
| Version (Version &&other) noexcept | |
| Game | parent () const |
| Version & | operator= (const Version &other) noexcept |
| Required to make std::vector happy. | |
Private Attributes | |
| RecordID | m_parent_id |
| QString | m_version |
| std::shared_ptr< VersionData > | data_ptr |
Representation of a game version.
|
delete |
| atlas::records::Version::Version | ( | const RecordID | id, |
| const QString & | name ) |
| atlas::records::Version::~Version | ( | ) |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
| void atlas::records::Version::addPlaytime | ( | const std::uint32_t | playtime | ) |
Adds playtime to this and it's parent record.
| std::filesystem::path atlas::records::Version::getExecPath | ( | ) | const |
| std::uint64_t atlas::records::Version::getFolderSize | ( | ) | const |
| std::uint64_t atlas::records::Version::getImportTime | ( | ) | const |
| std::uint64_t atlas::records::Version::getLastPlayed | ( | ) | const |
| RecordID atlas::records::Version::getParentID | ( | ) | const |
| std::filesystem::path atlas::records::Version::getPath | ( | ) | const |
| std::uint32_t atlas::records::Version::getPlaytime | ( | ) | const |
| std::filesystem::path atlas::records::Version::getRelativeExecPath | ( | ) | const |
| QString atlas::records::Version::getVersionName | ( | ) | const |
| bool atlas::records::Version::isInPlace | ( | ) | const |
If true then the game is not located in config::paths::games::get()
|
inline |
Required to make std::vector happy.
|
inline |
| Game atlas::records::Version::parent | ( | ) | const |
| void atlas::records::Version::playGame | ( | ) |
Executes the game for this record.
| void atlas::records::Version::setLastPlayed | ( | const std::uint64_t | last_played | ) |
Sets the last played timestamp for this and it's parent record.
| void atlas::records::Version::setRelativeExecPath | ( | const std::filesystem::path & | path | ) |
| void atlas::records::Version::setVersionName | ( | const QString | str | ) |
|
private |
|
private |
|
private |