You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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