In data venerdì 31 luglio 2009 15:46:10, Gustavo Boiko ha scritto: > > The interval is already the ID. Actually, since the idle time is > > always the > > same, setting 2 intervals in the very same moment will end up in > > having a > > single 500ms interval, since both would fire at the very same time. > > Yes, I know they will fire at the same time. But my concern is if one > of the timers added ask for removing the interval, will the other > still fire? > A refcount would probably do the job, but since there is a similar API > for other timeout event, I thought it would be a good thing to keep it > consistent.
You're right on a second thought, so I think it's sensible to implement such a thing. so setIdleTimeout should return an int, carrying the token, but what about the signal? should it emit the interval or the token number? By the way, I'm about to leave for some holidays, so I'd probably have to implement this when I'll come back in september. But if you are willing to do so (and it would be better, since I didn't know about this kind of API) you could try and commit the change (please ping toma if you do so) or if you don't have time simply drop me a mail with the API changes needed :) > > Cheers > > Boiko -- ------------------- Dario Freddi KDE Developer GPG Key Signature: 511A9A3B _______________________________________________ kopete-devel mailing list kopete-devel@kde.org https://mail.kde.org/mailman/listinfo/kopete-devel