From 59b13af09a5e35ea1364eb1031be4ce9410f6f03 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Wed, 22 Dec 2021 17:06:53 +0100 Subject: Added MVP Qt implementation, known issues tracking, removed old files --- solo_tool.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'solo_tool.py') diff --git a/solo_tool.py b/solo_tool.py index 538d558..565943c 100644 --- a/solo_tool.py +++ b/solo_tool.py @@ -30,11 +30,23 @@ class SoloTool: def setSong(self, index): self._playlist.setCurrentSong(index) + # XXX untested + def getSongs(self): + return self._playlist.getSongs() + def addAbLimit(self, aLimit, bLimit): self._abController.addLimits(aLimit, bLimit) def setAbLimit(self, index): - self._abController.setCurrentLimits(0) + self._abController.setCurrentLimits(index) + + # XXX untested + def getAbLimits(self): + currentSong = self._playlist.getCurrentSong() + if currentSong is not None: + return self._abController.getLimits(currentSong) + else: + return list() def setAbLimitEnable(self, enable): self._abController.setEnable(enable) @@ -62,6 +74,10 @@ class SoloTool: def setPlaybackPosition(self, position): self._player.setPlaybackPosition(position) + # XXX untested + def getPlaybackPosition(self): + return self._player.getPlaybackPosition() + def setPlaybackVolume(self, volume): self._player.setPlaybackVolume(volume) -- cgit v1.2.3