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

Qt-embedded-interest Archive, February 2007
Question about qcop messages


Message 1 in thread

I am sending qcop messages to various processes, either from the command line, or in simple shell scripts.

To do this, I am using qcop2 from <a  href="http://tbox.jpn.org/wiki/linuzau/wiki.cgi?qcop2";>http://tbox.jpn.org/wiki/linuzau/wiki.cgi?qcop2</a>,  which enables me to do this on my sl5500 Zaurus, using qt-embedded vers. 1.5.0.

Is there any way I can specify, with qcop, which specific process listening on a channel I wish to have receive the message?
 
One example of this is that I need to send a stop() to defunct or dead pppd processes, or to disconnect from the internet when the network applet has been compromised, and does not give me the option to disconnect  for some reason.  How can I make sure that only Network processes on a specific tty or Network type are stopped, rather than any or all Network processes?  The command I enter now is:
 
   qcop QPE/Network  'stop()'
 
Another example is that I often have opie-sh pop-ups that accidentally get backgrounded.  How would I only raise one of them, instead of all of them getting raised together at once, and chaotically seeming to fight for supremacy? The command I enter now is:
 
   qcop QPE/Application/opie-sh  'raise()'
 
I could certainly specify the exact process number (PID) of the process I wanted to raise or stop, or which tty or type of Network process I wanted to affect (i.e., LAN, DialUp, IRDA, etc.).   Is there a way to do this using qcop?

Thanks,
sdjf

To unsubscribe - send "unsubscribe" in the subject to qt-embedded-interest-request@xxxxxxxxxxxxx


Message 2 in thread

I saw that way back on Tue, 26 Nov 2002, Karsten Meier asked a question of the mailing list:
 
 "QCopEnvelope message: how to conditional  shut down app", to which no one seems to have replied.

http://lists.trolltech.com/qt-embedded-interest/2002-11/msg00114.html

However, when processes have been started by Qtopia, it has not worked for me to simply use the linux kill command to eliminate them, as Karsten was considering doing.  That is why I am using qcop. 
 
If I kill them with standard kernel commands, Qtopia still shows them as existing, and will raise them at the first opportunity, as soon as there is enough memory and any other open applications have been closed.  Qtopia turns around and raises the application when it hasn't done the shutting down itself.
 
In fact, I think that this inability of Qtopia to let us choose specific processes to send messages to, is what has messed up the Network applet for many early Qtopia users, and caused people to get rid of their early models.
 
I am working on several scripts that only work properly if there is only one application or process listening to that channel, and it would be quite helpful if they could work properly no matter how many applications or specific processes were listening, and I believe this would best be done through  Qtopia.

Am I correct in understanding that there are no specific sub-channels for DialUp, IRDA, LAN, etc., Network processes?

Thank you for any guidance,
sdjf


On February 26, I wrote here:

> I am sending qcop messages to various
> processes, either from the command
> line, or in simple shell scripts. To
> do this, I am using qcop2 from 
http://tbox.jpn.org/wiki/linuzau/wiki.cgi?qcop2,
> which enables me to do this on my
> sl5500 Zaurus, using qt-embedded
> vers. 1.5.0. Is there any way I can
> specify, with qcop, which specific
> process listening on a channel I wish
> to have receive the message?

To unsubscribe - send "unsubscribe" in the subject to qt-embedded-interest-request@xxxxxxxxxxxxx