You are not logged in.

1

Thursday, October 28th 2004, 11:04pm

dcop class

Hello,

I can't find even a single piece of code that will demonstrate dcop usage.

Here they explain it, but I want to see some full example if possible
http://developer.kde.org/documentation/l…p.html#sec2.2.2

Anyone knows where I can find some?


p.s.
All I need is calling some routine of another application through dcop interface.
In bash I would do it like that:
dcop kicker kicker restart

This post has been edited 2 times, last edit by "alexrait1" (Oct 28th 2004, 11:06pm)


e8johan

Professional

  • "e8johan" is male

Posts: 1,195

Location: Sweden

  • Send private message

2

Friday, October 29th 2004, 6:55am

RE: dcop class

Look at KDE. Since the source is open, you can download and look at some of the apps there. I know that a proper article/tutorial would be better, but the source is an option.

Posts: 2,162

Location: Graz, Austria

Occupation: Student

  • Send private message

3

Sunday, November 7th 2004, 8:48pm

It is basically like this:

- create KApplication instance
- get its DCOP client
- use the client's call method

Note that the function string also includes the type information about the parameters, for example "foo(QString, int)"

Cheers,
_
Qt/KDE Developer
Debian User