summaryrefslogtreecommitdiffstats
path: root/module/plugins/Hook.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-05 19:47:57 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-05 19:47:57 +0200
commit5a22e614eb4ab920980cc989f27d39c349a39920 (patch)
treeb4cfe2c0e9e10d27140d0627d8acb28ed2fc0cb3 /module/plugins/Hook.py
parentnetload free user fix and premium (diff)
downloadpyload-5a22e614eb4ab920980cc989f27d39c349a39920.tar.xz
hook config interface
Diffstat (limited to 'module/plugins/Hook.py')
-rw-r--r--module/plugins/Hook.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py
index 35be45b30..41264e559 100644
--- a/module/plugins/Hook.py
+++ b/module/plugins/Hook.py
@@ -41,10 +41,20 @@ class Hook():
self.setup()
def setup(self):
+ """ more init stuff if needed"""
pass
def isActivated(self):
- return self.config["activated"]
+ """ checks if hook is activated"""
+ return self.config.getPlugin(self.__name__, "activated")
+
+ def getConfig(self, option):
+ """ gets config values """
+ return self.plugin.getPlugin(self.__name__, option)
+
+ def setConfig(self, option, value):
+ """ sets config value """
+ self.plugin.setPlugin(self.__name__, option, value)
def coreReady(self):
pass