diff options
| author | tim <tim@eclectronics.org> | 2017-05-19 01:00:43 +0100 |
|---|---|---|
| committer | tim <tim@eclectronics.org> | 2017-05-19 01:00:43 +0100 |
| commit | c31d38915cb6643013223a4ed9b4021b3499d71d (patch) | |
| tree | 2fe7db9622aa0ad9190be784e4bf2a82cd008975 /menuApp/src/dirscanner.h | |
| parent | 576f125a22e01ad947cff173089efb9c68fb002c (diff) | |
making dir scanner
Diffstat (limited to 'menuApp/src/dirscanner.h')
| -rw-r--r-- | menuApp/src/dirscanner.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/menuApp/src/dirscanner.h b/menuApp/src/dirscanner.h index e69de29..1e70ed8 100644 --- a/menuApp/src/dirscanner.h +++ b/menuApp/src/dirscanner.h @@ -0,0 +1,52 @@ +#pragma once + +#include "ofMain.h" + +class timeSlot { + public: + timeSlot(std::string _p,int _s,int _e){ + path=_p; + start=_s; + end=_e; + } + string path; + int start; + int end; +}; + +class playItem { + public: + playItem(std::string _n){ + filename=_n; + } + string filename; + ofImage image; + ofVideoPlayer video; + void play(); + void draw(); + bool isFinished(); + float startTime; +}; + +class dirScanner { + //todo: compare each item in vector for reload + public: + dirScanner(std::string _d=""){ + rootdir=_d; + } + int getSlotForTime(int time); + string rootdir; + void scan(); + vector<timeSlot> slots; +}; + +class dirPlayer { + public: + dirPlayer(std::string _d){ + playdir=_d; + } + vector<playItem> items; + string playdir; + void load(); + void draw(); +};
\ No newline at end of file |
