From 58481b46a2c64fda4f506e15ee94dd97f527d552 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 6 Aug 2019 03:12:16 +0200 Subject: Save and show progress in manga and return to last page" --- include/Path.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/Path.hpp (limited to 'include/Path.hpp') 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 + +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 -- cgit v1.2.3