[Twisted-Python] IM: Design ideas
Paul Swartz
z3p at twistedmatrix.com
Tue Feb 5 23:43:44 EST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 5 Feb 2002 at 13:46, Kevin Turner wrote:
> On Mon, 2002-02-04 at 19:16, Travis B. Hartwell wrote:
> > This is what I propose, and ask if this is possible or plausible:
> > Add another layer between GTK IM and the [twisted.words/TOC/IRC]
> > supports. This layer will have no UI, but will act as an abstract
> > client for those support services. It will keep track of all
> > activity on your joined channels, any /msgs, etc. Then, a UI client
> > will connect to this layer thingamajig.
>
> What I'm thinking is that this layer could be a local, personal Words
> service. It has pretty much the interface you need, as it keeps track
> of what channels you're on, receives messages, etc. You'd set this
> words service up as a client (or perhaps a peer) to the shared server,
> and then your front-end would connect to your personal server. It
> certainly makes the clients easy enough to write =) and you can plug in
> other capabilities by having other agent-programs log in to your
> personal server too.
>
> I'm still a bit under the weather, so I don't know how lucid I'm being,
> but does this spark anything for you?
The problem with just having a local Words service is that it doesn't
deal with other protocols. Running a local service for every protocol
you want to connect to would be a pain. Another idea (perhaps closer to
what Nafai wanted) is to have an "Instance Messenger" PB service, with
methods like addAccount(), signOnAccount(), sendMessage(), joinGroup(),
etc. The PB service would call back with methods like gotMessage() and
joinedGroup(). When the UI is disconnected from the service, it logs
messages, and when a UI reconnects, it sends the log messages so the UI
is caught up.
The only issue I see with this is configuration. Perhaps all
configuration could be just only with GTK-IM? Writing complex UI-
indepdent anything is hard, and it would probably be easiest to restrict
it to GTK-IM with the Glade Account Manager.
- -p
- --
Paul Swartz
(o_ http://www.twistedmatrix.com/users/z3p.twistd/ _o)
//\ z3p at twistedmatrix.com /\\
V_/_ AIM: z3penguin _\_V->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (MingW32)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjxgtIEACgkQ/0FqBhns6q3IhACfYx8vZxWwK0xk6tzufOsS7SWa
TgsAn1SmSf9+7Gd2aCBooIiiZAwCXEdN
=Tbdv
-----END PGP SIGNATURE-----
More information about the Twisted-Python
mailing list