]> kaliko git repositories - mpd-sima.git/blob - sima/lib/plugin.py
Initial import
[mpd-sima.git] / sima / lib / plugin.py
1 # -*- coding: utf-8 -*-
2
3 class Plugin():
4     def __init__(self, daemon):
5         self.__daemon = daemon
6         #self.history = daemon.player.history
7
8     @property
9     def name(self):
10         return self.__class__.__name__.lower()
11
12     def callback_playlist(self):
13         """
14         Called on playlist changes
15
16         Not returning data
17         """
18         pass
19
20     def callback_next_song(self):
21         """Not returning data,
22         Could be use to scrobble
23         """
24         pass
25
26     def callback_need_song(self):
27         """Returns a list of Track objects to add
28         """
29         pass
30
31     def callback_player_stop(self):
32         """Not returning data,
33         Could be use to ensure player never stops
34         """
35         pass
36
37     def shutdown(self):
38         pass
39
40
41 # VIM MODLINE
42 # vim: ai ts=4 sw=4 sts=4 expandtab