diff options
author | JF002 <JF002@users.noreply.github.com> | 2020-07-26 15:58:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-26 15:58:57 +0200 |
commit | 4f51d429a57342a16cd3d250a2b8387a8101c6ba (patch) | |
tree | 90a388959c721ce8afd481f3f5ed47125b5aaf59 /src/DisplayApp/Screens/Music.h | |
parent | c96a53e1a8d203e18ccda24b3754037fad12a6ca (diff) | |
parent | 29b5caf895766ccca523faed2d3f88798ee571f4 (diff) |
Merge branch 'develop' into patch-2
Diffstat (limited to 'src/DisplayApp/Screens/Music.h')
-rw-r--r-- | src/DisplayApp/Screens/Music.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/DisplayApp/Screens/Music.h b/src/DisplayApp/Screens/Music.h new file mode 100644 index 00000000..95cac0f0 --- /dev/null +++ b/src/DisplayApp/Screens/Music.h @@ -0,0 +1,49 @@ +#pragma once + +#include <cstdint> +#include <chrono> +#include <Components/Gfx/Gfx.h> +#include "Screen.h" +#include <bits/unique_ptr.h> +#include <libs/lvgl/src/lv_core/lv_style.h> +#include <libs/lvgl/src/lv_core/lv_obj.h> +#include <Components/Battery/BatteryController.h> +#include <Components/Ble/BleController.h> +#include "../../Version.h" +#include <Components/Ble/MusicService.h> +#include <string> + +namespace Pinetime { + namespace Applications { + namespace Screens { + + class Music : public Screen{ + public: + Music(DisplayApp* app, Pinetime::Controllers::MusicService &music); + ~Music() override; + + bool Refresh() override; + bool OnButtonPushed() override; + + void OnObjectEvent(lv_obj_t* obj, lv_event_t event); + + private: + lv_obj_t * btnPrev; + lv_obj_t * btnPlayPause; + lv_obj_t * btnNext; + lv_obj_t * btnVolDown; + lv_obj_t * btnVolUp; + lv_obj_t * txtArtist; + lv_obj_t * txtTrack; + lv_obj_t * txtPlayPause; + + bool running = true; + Pinetime::Controllers::MusicService &musicService; + std::string m_artist; + std::string m_album; + std::string m_track; + unsigned char m_status; + }; + } + } +} |