1
# Copyright (c) 2001-2008 Twisted Matrix Laboratories.
2
# See LICENSE for details.
4
from zope.interface import classProvides
6
from twisted.plugin import IPlugin
8
from twisted.application.service import ServiceMaker
9
from twisted.words import iwords
11
TwistedTOC = ServiceMaker(
13
"twisted.words.toctap",
14
"An AIM TOC service.",
17
NewTwistedWords = ServiceMaker(
20
"A modern words server",
23
TwistedXMPPRouter = ServiceMaker(
25
"twisted.words.xmpproutertap",
26
"An XMPP Router server",
29
class RelayChatInterface(object):
30
classProvides(IPlugin, iwords.IProtocolPlugin)
34
def getFactory(cls, realm, portal):
35
from twisted.words import service
36
return service.IRCFactory(realm, portal)
37
getFactory = classmethod(getFactory)
39
class PBChatInterface(object):
40
classProvides(IPlugin, iwords.IProtocolPlugin)
44
def getFactory(cls, realm, portal):
45
from twisted.spread import pb
46
return pb.PBServerFactory(portal, True)
47
getFactory = classmethod(getFactory)