SendingQCop

From OESF

(Difference between revisions)
Jump to: navigation, search
(New page: About sending QCop messages)
Current revision (04:56, 24 September 2008) (edit) (undo)
 

(One intermediate revision not shown.)

Line 1:

Line 1:

-
About sending QCop messages
+
QCop is a system for interacting between applications.
 +
 
 +
You can test channels from the GUI using [http://www2.gol.com/users/ikezawa/zaurus/qcoptest.html qcoptest].
 +
 
 +
There are two methods: 1. From the command line, 2. From your application.
 +
 
 +
From the command line you enter qcop channel signal value, e.g.
 +
 
 +
<pre>
 +
qcop QPE/System 'setBacklight(int)' 0
 +
</pre>
 +
 
 +
From an application you use a QCopEnvelope object:
 +
 
 +
<pre>
 +
QCopEnvelope e(channelname, messagename);
 +
e << parameter1 << parameter2 << etc;
 +
</pre>

Current revision

QCop is a system for interacting between applications.

You can test channels from the GUI using qcoptest.

There are two methods: 1. From the command line, 2. From your application.

From the command line you enter qcop channel signal value, e.g.

qcop QPE/System 'setBacklight(int)' 0

From an application you use a QCopEnvelope object:

     QCopEnvelope e(channelname, messagename);
     e << parameter1 << parameter2 << etc;
Personal tools