Reorder classes

This commit is contained in:
Stein Magnus Jodal 2010-02-07 23:10:25 +01:00
parent 035e43b4f5
commit 0eaee6b70d

View File

@ -68,6 +68,23 @@ class BaseCurrentPlaylistController(object):
self.playlist = self.playlist.with_(tracks=before+shuffled+after)
class BaseLibraryController(object):
def __init__(self, backend):
self.backend = backend
def find_exact(self, type, query):
raise NotImplementedError
def lookup(self, uri):
raise NotImplementedError
def refresh(self, uri=None):
raise NotImplementedError
def search(self, type, query):
raise NotImplementedError
class BasePlaybackController(object):
PAUSED = u'paused'
PLAYING = u'playing'
@ -189,23 +206,6 @@ class BasePlaybackController(object):
raise NotImplementedError
class BaseLibraryController(object):
def __init__(self, backend):
self.backend = backend
def find_exact(self, type, query):
raise NotImplementedError
def lookup(self, uri):
raise NotImplementedError
def refresh(self, uri=None):
raise NotImplementedError
def search(self, type, query):
raise NotImplementedError
class BaseStoredPlaylistController(object):
def __init__(self, backend):
self.backend = backend