aboutsummaryrefslogtreecommitdiffstats
path: root/src/sls.h
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2017-08-22 18:15:02 +0200
committerStefan Pöschel <github@basicmaster.de>2017-08-22 18:19:12 +0200
commitdab43a8fb43c904cc316f327d8117beb102e04de (patch)
tree99005de6bc38574be3d530d2086a828035a397a9 /src/sls.h
parente6d419d20391361f167d2291dcdfa328131d97ed (diff)
downloadODR-PadEnc-dab43a8fb43c904cc316f327d8117beb102e04de.tar.gz
ODR-PadEnc-dab43a8fb43c904cc316f327d8117beb102e04de.tar.bz2
ODR-PadEnc-dab43a8fb43c904cc316f327d8117beb102e04de.zip
SLS: move slides dir scan to new slide store
Diffstat (limited to 'src/sls.h')
-rw-r--r--src/sls.h17
1 files changed, 17 insertions, 0 deletions
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 <dirent.h>
#include <sys/stat.h>
#include <deque>
#include <fstream>
#include <iostream>
+#include <list>
#include <algorithm>
@@ -183,6 +185,21 @@ class History {
};
+// --- SlideStore -----------------------------------------------------------------
+class SlideStore {
+private:
+ std::list<slide_metadata_t> 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: