diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2021-11-17 22:34:57 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2021-11-17 22:34:57 +0100 |
| commit | 6232d13f5321b87ddf12a1aa36b4545da45f173d (patch) | |
| tree | 23f3316470a14136debd9d02f9e920ca2b06f4cc /src/video.hh | |
Travel3: Simple image and video display site
Reads the images and videos from filesystem and builds a site in
memroy.
Diffstat (limited to 'src/video.hh')
| -rw-r--r-- | src/video.hh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/video.hh b/src/video.hh new file mode 100644 index 0000000..26a5c50 --- /dev/null +++ b/src/video.hh @@ -0,0 +1,31 @@ +#ifndef VIDEO_HH +#define VIDEO_HH + +#include "date.hh" +#include "location.hh" + +#include <filesystem> +#include <memory> + +class Timezone; + +class Video { +public: + virtual ~Video() = default; + + static std::unique_ptr<Video> load(std::filesystem::path const& path, + Timezone const* timezone); + + virtual uint64_t width() const = 0; + virtual uint64_t height() const = 0; + virtual double length() const = 0; + virtual Location location() const = 0; + virtual Date date() const = 0; + +protected: + Video() = default; + Video(Video const&) = delete; + Video& operator=(Video const&) = delete; +}; + +#endif // VIDEO_HH |
