Qt-embedded-interest Archive, November 2002
QCopEnvelope message: how to conditional shut down app
Message 1 in thread
- Subject: QCopEnvelope message: how to conditional shut down app
- From: "Karsten Meier" <karsten.meier@xxxxxxxxxxxxx>
- Date: Tue, 26 Nov 2002 10:54:48 +0100
- Thread-index: AcKVMdtkhhNBlFGuTSyJbF9VJhS6uQ==
- Thread-topic: QCopEnvelope message: how to conditional shut down app
- To: <qt-embedded-interest@xxxxxxxxxxxxx>
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 ]