Trolltech Home | Qt-embedded-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-embedded-interest Archive, November 2002
QCopEnvelope message: how to conditional shut down app


Message 1 in thread

Hello, 

I have started to use the QCop messages.
I have used it to start another application:
QCopEnvelope("QPE/Application/datebook", "raise()");
This works fine.

Now I want to shutdown another application, but only if it is running
already:
QCopEnvelope("QPE/Application/datebook", "quit()");
This does not work for me (qtopia 1.51 ), neither on the linux emulator
nor on the zaurus.

Also, the documention says, that all messages to QPE/Application will
start the application if it is not already running. But to start an
application
just to quit it would make no sense.
Is there a way to do this from qtopia? 
Or should I use the old standard unix way: traversing through all
processes and try
to find the right one, and then send a kill signal.

Regards

Karsten Meier

--
 [ signature omitted ]