Add getIconPath to basePlayer

This commit is contained in:
Etoh 2013-10-15 00:49:48 +01:00
parent b0944c8aa3
commit e01580f67c

View File

@ -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