root/branches/gajim_0.5.1/common/plugin.py

Revision 359, 1.0 kB (checked in by asterix, 4 years ago)

update my email adress
update copyright
add missing headers

  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
Line 
1##      common/plugin.py
2##
3## Gajim Team:
4##      - Yann Le Boulanger <asterix@lagaule.org>
5##      - Vincent Hanquez <tab@snarc.org>
6##
7##      Copyright (C) 2003-2005 Gajim Team
8##
9## This program is free software; you can redistribute it and/or modify
10## it under the terms of the GNU General Public License as published
11## by the Free Software Foundation; version 2 only.
12##
13## This program is distributed in the hope that it will be useful,
14## but WITHOUT ANY WARRANTY; without even the implied warranty of
15## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16## GNU General Public License for more details.
17##
18
19import common.thread
20
21""" Plugin definitions """
22
23class GajimPlugin:
24        def __init__(self, name, queueIn, queueOut):
25                """ queueIn is a queue to interact from the hub to the plugin """
26                self.name = name
27                self.queueIn = queueIn
28                self.queueOut= queueOut
29        # END __init__
30
31        def load(self):
32                thr = common.thread.GajimThread(self.name, self.queueIn, self.queueOut)
33#               thr.setDaemon(1)
34                thr.start()
35        # END load
36# END GajimPlugin
Note: See TracBrowser for help on using the browser.