On Wed, Apr 12, 2006 at 05:03:22PM +0200, Joachim Staib wrote: > Sorry, I'd have really liked to participate but I had to go to my > university.
Are there any other days/times that work better for you? > addCallback(func1, "message-sent"); > addCallback(func1, "message-received"); > addCallback(func1, "event-deleted"); > or something. the callback function could then be called by something like > eventObject* func1(serviceName, obj); Hmm, I think separating the functions would be better. If in fact they do have common code, it would best to have those callbacks use the common code on their own. Having one function handle different events is having some unnecessary checking being done on the plugin side. It has to look at the string, then compare it with some possible ones and then call separate functions from there or make one large function become kind of messy. If we make the plugins use one function for each callback, it should keep things simplified I believe. > I have no experience with python, but I don't think that it's really > neccessary to create a kind of prototype. No API is perfect and it will > be changed anyway in some points, so it doesn't really matter if it is > changed in the C++-Code or in python code then (or am I wrong?) Well, for a large system creating a prototype has benefits. But, perhaps this isn't that large enough to merit a prototype. At least some pseudocode could help things if we don't do a prototype. The main benefit of a prototype is to create a quick mock up that can simulate the system and find some problems that can be fixed in the prototype. It is (theoretically) easier to modify a prototype than the actual system. > ... Jon, are there more concrete plans already about the new API then > you wrote? I have some documents that I'm working on, but haven't finished them. I hope to get them done soon so I can post them for review. Jon -- ________________________________________________________ Jon Keating ICQ: 16325723 [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] http://www.licq.org GPG: 2290A71F http://www.thejon.org HOME: Minamiashigara, Japan
pgphVbepPxkWB.pgp
Description: PGP signature