From 64ea63f2efadddf9bf185f7ce24bf3c56538b287 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Thu, 22 Dec 2022 19:01:49 +0100 Subject: Add controller --- controller.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 controller.h (limited to 'controller.h') diff --git a/controller.h b/controller.h new file mode 100644 index 0000000..de8d86b --- /dev/null +++ b/controller.h @@ -0,0 +1,30 @@ +#ifndef CONTROLLER_H +#define CONTROLLER_H + +class MP3Controller { +public: + virtual void nextFile() = 0; + virtual void previousFile() = 0; + virtual void nextSection() = 0; + virtual void previousSection() = 0; +}; + +class Controller { + String root = "/"; + MP3Controller *mp3Controller; +public: + Controller(MP3Controller*); + + void next(); + void nextS(); + void previous(); + void previousS(); + + void setRoot(String); + String getRoot(); + + String getAPSSID() { return "ESP8266"; } + String getAPPassword() { return "test1234"; } +}; + +#endif -- cgit v1.2.3