dcop services

Waldo Bastian bastian at kde.org
Sun Oct 19 13:13:34 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 19 October 2003 02:19 am, Ian Reinhart Geiser wrote:
> Ideally, but everytime I look into this, it seems that the changes to the
> dcop server are kind of invasive.  What I had envisioned, was every time an
> application made a dcop call that went through the server the server would
> make note of the caller and would use that to increment the refcount for
> the dcop connection.  When the caller unregisters from the server, then the
> refcount goes down.    Where I got stuck was how to have the client ask the
> dcop server "hey is there anything still registerd that has talked to me?".

kded implements this as service for kdedmodules.

See kdedmodule.h 

For each client that the kdedmodule services the kdedmodule can store an 
object. When the client disconnects from dcop, the object gets automatically 
deleted.

If there are no objects left the kdedmodule will get an "idle()" signal after 
a configurable timeout period. The kdedmodule can then chose to delete 
itself.

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ SUSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/kn/uN4pvrENfboIRArF9AJ4mfMwuDOJyRohprBXsLsGuOkqFfQCfRJpe
yxRkMXo4ZZhnw8Q7xvenwu0=
=4od2
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list