From e01580f67cb606038c5b0242d9e94e82aa192be9 Mon Sep 17 00:00:00 2001 From: Etoh Date: Tue, 15 Oct 2013 00:49:48 +0100 Subject: [PATCH] Add getIconPath to basePlayer --- syncplay/players/basePlayer.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/syncplay/players/basePlayer.py b/syncplay/players/basePlayer.py index 90ff681..6fffa3d 100644 --- a/syncplay/players/basePlayer.py +++ b/syncplay/players/basePlayer.py @@ -67,6 +67,14 @@ class BasePlayer(object): def isValidPlayerPath(path): raise NotImplementedError() + ''' + @type path: string + @return: string + ''' + @staticmethod + def getIconPath(path): + raise NotImplementedError() + ''' @type path: string @return: string @@ -85,7 +93,11 @@ class DummyPlayer(BasePlayer): @staticmethod def isValidPlayerPath(path): return False - + + @staticmethod + def getIconPath(path): + return None + @staticmethod def getExpandedPath(path): return path