aboutsummaryrefslogtreecommitdiffstats
path: root/src/sls.h
diff options
context:
space:
mode:
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: