summaryrefslogtreecommitdiff
path: root/wasp/wasp.py
diff options
context:
space:
mode:
authorCarlosgg <carlosgilglez@gmail.com>2020-10-22 15:59:17 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-11-12 21:44:22 (GMT)
commit306a1ec0a4dd037a59ab869f301546f7646a8ebe (patch)
treebbeb8d16cdcc6e9a272a37d5e2cee87d7e5f7503 /wasp/wasp.py
parent294797d8263b316809214a2d1cb9534dff810bd0 (diff)
apps: Add music player app with GadgetBridge support
Signed-off-by: Carlos Gil <carlosgilglez@gmail.com> [daniel@redfelineninja.org.uk: fix regressions on simulator, disable by default (for now) on real hardware and remove a couple of whitespace changes to existing files] Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/wasp.py')
-rw-r--r--wasp/wasp.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/wasp/wasp.py b/wasp/wasp.py
index e2e728a..0b99c0d 100644
--- a/wasp/wasp.py
+++ b/wasp/wasp.py
@@ -107,6 +107,8 @@ class Manager():
self.launcher_ring = []
self.notifier = NotificationApp()
self.notifications = {}
+ self.musicstate = {}
+ self.musicinfo = {}
self.blank_after = 15
@@ -234,6 +236,12 @@ class Manager():
if id in self.notifications:
del self.notifications[id]
+ def toggle_music(self, state):
+ self.musicstate = state
+
+ def set_music_info(self, info):
+ self.musicinfo = info
+
def request_event(self, event_mask):
"""Subscribe to events.