From dab43a8fb43c904cc316f327d8117beb102e04de Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Tue, 22 Aug 2017 18:15:02 +0200 Subject: SLS: move slides dir scan to new slide store --- src/sls.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/sls.h') diff --git a/src/sls.h b/src/sls.h index 0b5fae2..3519522 100644 --- a/src/sls.h +++ b/src/sls.h @@ -41,10 +41,12 @@ # endif #endif +#include #include #include #include #include +#include #include @@ -183,6 +185,21 @@ class History { }; +// --- SlideStore ----------------------------------------------------------------- +class SlideStore { +private: + std::list slides; + History history; + + static int FilterSlides(const struct dirent* file); +public: + bool InitFromDir(const std::string& dir); + + bool Empty() {return slides.empty();} + slide_metadata_t GetSlide(); +}; + + // --- MOTHeader ----------------------------------------------------------------- class MOTHeader { private: -- cgit v1.2.3