diff options
Diffstat (limited to 'module/plugins/internal/Hook.py')
-rw-r--r-- | module/plugins/internal/Hook.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/module/plugins/internal/Hook.py b/module/plugins/internal/Hook.py index 5efd08bae..5f2639dce 100644 --- a/module/plugins/internal/Hook.py +++ b/module/plugins/internal/Hook.py @@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>. - + @author: mkaay @interface-version: 0.2 """ @@ -39,7 +39,7 @@ class Hook(Base): Base class for hook plugins. """ __name__ = "Hook" - __version__ = "0.2" + __version__ = "0.02" __type__ = "hook" __threaded__ = [] __config__ = [ ("name", "type", "desc" , "default") ] @@ -108,7 +108,7 @@ class Hook(Base): def __repr__(self): return "<Hook %s>" % self.__name__ - + def setup(self): """ more init stuff if needed """ pass @@ -116,37 +116,37 @@ class Hook(Base): def unload(self): """ called when hook was deactivated """ pass - + def isActivated(self): """ checks if hook is activated""" return self.config.getPlugin(self.__name__, "activated") - - #event methods - overwrite these if needed + + #event methods - overwrite these if needed def coreReady(self): pass def coreExiting(self): pass - + def downloadPreparing(self, pyfile): pass - + def downloadFinished(self, pyfile): pass - + def downloadFailed(self, pyfile): pass - + def packageFinished(self, pypack): pass def beforeReconnecting(self, ip): pass - + def afterReconnecting(self, ip): pass - + def periodical(self): pass |