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