diff options
author | Eddy Pedroni <eddy@0xf7.com> | 2021-12-22 17:06:53 +0100 |
---|---|---|
committer | Eddy Pedroni <eddy@0xf7.com> | 2021-12-22 17:10:08 +0100 |
commit | 59b13af09a5e35ea1364eb1031be4ce9410f6f03 (patch) | |
tree | ac2cd68dd28541d38fec91041c7c4175dbd6731e /solo_tool.py | |
parent | b2772136b6d1813150bf7a2e0a0a98085db6af0b (diff) |
Added MVP Qt implementation, known issues tracking, removed old files
Diffstat (limited to 'solo_tool.py')
-rw-r--r-- | solo_tool.py | 18 |
1 files changed, 17 insertions, 1 deletions
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) |