aboutsummaryrefslogtreecommitdiffstats
path: root/solo_tool.py
diff options
context:
space:
mode:
Diffstat (limited to 'solo_tool.py')
-rw-r--r--solo_tool.py18
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)