summaryrefslogtreecommitdiffstats
path: root/controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'controller.h')
-rw-r--r--controller.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/controller.h b/controller.h
new file mode 100644
index 0000000..de8d86b
--- /dev/null
+++ b/controller.h
@@ -0,0 +1,30 @@
1#ifndef CONTROLLER_H
2#define CONTROLLER_H
3
4class MP3Controller {
5public:
6 virtual void nextFile() = 0;
7 virtual void previousFile() = 0;
8 virtual void nextSection() = 0;
9 virtual void previousSection() = 0;
10};
11
12class Controller {
13 String root = "/";
14 MP3Controller *mp3Controller;
15public:
16 Controller(MP3Controller*);
17
18 void next();
19 void nextS();
20 void previous();
21 void previousS();
22
23 void setRoot(String);
24 String getRoot();
25
26 String getAPSSID() { return "ESP8266"; }
27 String getAPPassword() { return "test1234"; }
28};
29
30#endif