summaryrefslogtreecommitdiffstats
path: root/module/plugins/Hook.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/Hook.py')
-rw-r--r--module/plugins/Hook.py27
1 files changed, 14 insertions, 13 deletions
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py
index 76bc19dbe..c1090aa70 100644
--- a/module/plugins/Hook.py
+++ b/module/plugins/Hook.py
@@ -136,30 +136,31 @@ class Hook(Base):
""" Used to deactivate the hook. """
pass
- def downloadPreparing(self, pyfile):
+ def periodical(self):
pass
-
- def downloadFinished(self, pyfile):
+
+ def newCaptchaTask(self, task):
+ """ new captcha task for the plugin, it MUST set the handler and timeout or will be ignored """
pass
- def packageFinished(self, pypack):
+ def captchaCorrect(self, task):
pass
- def beforeReconnecting(self, ip):
+ def captchaInvalid(self, task):
pass
-
- def afterReconnecting(self, ip):
+
+ # public events starts from here
+ def downloadPreparing(self, pyfile):
pass
- def periodical(self):
+ def downloadFinished(self, pyfile):
pass
- def newCaptchaTask(self, task):
- """ new captcha task for the plugin, it MUST set the handler and timeout or will be ignored """
+ def packageFinished(self, pypack):
pass
- def captchaCorrect(self, task):
+ def beforeReconnecting(self, ip):
pass
-
- def captchaInvalid(self, task):
+
+ def afterReconnecting(self, ip):
pass \ No newline at end of file