ocarina/src/core/ocarina.py

29 lines
460 B
Python
Raw Normal View History

2010-01-25 00:32:44 -05:00
# Basic plugin class
2009-12-22 00:29:19 -05:00
__author__="bjschuma"
2010-01-25 00:32:44 -05:00
__date__ ="$Jan 25, 2010 12:18:21 AM$"
2009-12-22 00:29:19 -05:00
from bt.message import write
2010-01-25 00:32:44 -05:00
from bt import plugin
2009-12-22 00:29:19 -05:00
import settings
2010-01-25 00:32:44 -05:00
settings.set("appname","ocarina2")
2009-12-22 00:29:19 -05:00
from ct import db
from ct import gstreamer
2010-01-25 00:32:44 -05:00
class Plugin(plugin.Plugin):
def __init__(self):
plugin.Plugin.__init__(self)
self.help = "A simple music player written in python"
2009-12-27 20:32:41 -05:00
2009-12-22 00:29:19 -05:00
2010-01-25 00:32:44 -05:00
def open(self):
db.init()
gstreamer.init()
def close(self):
gstreamer.close()