You are not logged in.

boyadg

Beginner

  • "boyadg" started this thread

Posts: 11

Location: Barcelona

  • Send private message

1

Sunday, May 16th 2004, 2:44pm

dcop output message

I have a function in my app called setUrl, and this function is accessible through dcop:

dcop myapp remote_control setUrl http://www.site.com

Sometimes it isn't possible to set the URL and I would like my app to be able to output a (warning) message on the terminal where the dcop command was issued.

All the functions I tried (cout, qWarning, etc) output the text on the terminal the app is running on, and not on the terminal where the dcop command was typed. I can't seem to find anything in the DCOP reference.

Is there any such function?

Thanx in advance.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Sunday, May 16th 2004, 7:36pm

The dcop commandline utility is of course a different process, have it's standard streams.

If you want to have a feedback from the DCOP call, it has to pass it as its return value.

I think bool or int, if you can hav severaly failure codes), might work best.

Cheers,
_
Qt/KDE Developer
Debian User