From: Andreas V. <li...@br...> - 2010-12-05 22:00:11
|
Am Fri, 3 Dec 2010 16:23:08 -0700 schrieb Theodore A. Roth: > I've been trying to figure out how to register a timeout callback with > the dispatcher so that my callback function will be invoked > periodically by the dispatcher main loop. The > BusDispatcher::add_timeout() method seems to take an internal timeout > object as an argument which leads me to believe that I can't use that. > > I'm still in the learning dbus-c++ phase and my app is a rather simple > server based on the echo demo, but I've stripped it down to only a > Hello method and a single signal. My goal is to invoked the signal in > the timeout. > > None of the examples in the source repo show how to do what I what, > and google hasn't been too helpful. If someone has a link to an > example of this, I would be most appreciative. Hello Ted, yes, BusDispatcher::add_timeout() is for another reason. To be honest I never needed such an feature. Are you sure the C backend of DBus provides such a feature? Could you name a function? I would solve this by writing an interface to a DBus service that provides you with configurable callbacks. :-) regards Andreas |