-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathPluginBase.py
64 lines (49 loc) · 1.29 KB
/
PluginBase.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- coding: utf-8 -*-
# by betonme @2012
# Internal
class PluginBase(object):
def __init__(self):
pass
################################################
# Base classmethod functions
@classmethod
def getClass(cls):
# Return the Class
return cls.__name__
################################################
# Base functions
def getPluginName(self):
# Return the Class Name
return self.__class__.__name__
################################################
# To be implemented by subclass
def getText(self):
# Short text to be displayed in GUI
pass
def getType(self):
from Plugins.Extensions.InfoBarTunerState.InfoBarTunerState import INFO
# Pixmap number to be displayed as icon
return INFO
def getPixmapNum(self):
from Plugins.Extensions.InfoBarTunerState.InfoBarTunerState import INFO
# Pixmap number to be displayed as icon
return INFO
def getOnChanged(self):
# Return a list of config elements to check for changes in config list
pass
def getOptions(self):
# Return a list of (text, config element ) tuples
pass
def appendEvent(self):
pass
def removeEvent(self):
pass
def onInit(self):
pass
def onEvent(self):
pass
def onShow(self, tunerstates):
pass
def update(self, id, tunerstate):
# Return true if entry is still valid
return True