diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-06 03:12:16 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-08-06 03:12:40 +0200 |
commit | 58481b46a2c64fda4f506e15ee94dd97f527d552 (patch) | |
tree | 337809ed5aadece3cc6a3746aa78a24b390472ca /include/Path.hpp | |
parent | 7ce2139650012d4c571c7e7600924853ab7032bb (diff) |
Save and show progress in manga and return to last page"
Diffstat (limited to 'include/Path.hpp')
-rw-r--r-- | include/Path.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/Path.hpp b/include/Path.hpp new file mode 100644 index 0000000..351fd5d --- /dev/null +++ b/include/Path.hpp @@ -0,0 +1,26 @@ +#pragma once + +#include <string> + +namespace QuickMedia { + class Path { + public: + Path() = default; + ~Path() = default; + Path(const Path &other) = default; + Path& operator=(const Path &other) = default; + Path(const char *path) : data(path) {} + Path(const std::string &path) : data(path) {} + Path(Path &&other) { + data = std::move(other.data); + } + + Path& join(const Path &other) { + data += "/"; + data += other.data; + return *this; + } + + std::string data; + }; +}
\ No newline at end of file |