summaryrefslogtreecommitdiff
path: root/src/plugin.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-06 23:46:00 +0100
committermathieui <mathieui@mathieui.net>2011-11-06 23:46:00 +0100
commit961cf5df8548ec0985f2755d21af933d8c023ee4 (patch)
tree5e80b19af671320f777a65812c7404bbcad2fe07 /src/plugin.py
parent840acd3bd4dcee91ca34c5b4e4c89ce5e78a56b4 (diff)
downloadpoezio-961cf5df8548ec0985f2755d21af933d8c023ee4.tar.gz
poezio-961cf5df8548ec0985f2755d21af933d8c023ee4.tar.bz2
poezio-961cf5df8548ec0985f2755d21af933d8c023ee4.tar.xz
poezio-961cf5df8548ec0985f2755d21af933d8c023ee4.zip
New type of events to be used with the plugins
Diffstat (limited to 'src/plugin.py')
-rw-r--r--src/plugin.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugin.py b/src/plugin.py
index a8eb5934..0b4f3f3a 100644
--- a/src/plugin.py
+++ b/src/plugin.py
@@ -84,3 +84,9 @@ class BasePlugin(object, metaclass=SafetyMetaclass):
def del_event_handler(self, event_name, handler):
return self.plugin_manager.del_event_handler(self.__module__, event_name, handler)
+
+ def add_poezio_event_handler(self, event_name, handler, first=True, last=False, position=None):
+ return self.plugin_manager.add_poezio_event_handler(self.__module__, event_name, handler, first, last, position)
+
+ def del_poezio_event_handler(self, event_name, handler):
+ return self.plugin_manager.del_poezio_event_handler(self.__module__, event_name, handler)