summaryrefslogtreecommitdiffstats
path: root/dcop/HOWTO
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2025-01-13 23:01:29 +0900
committerMichele Calgaro <[email protected]>2025-02-03 21:32:19 +0900
commit0b81a0c481a3a64d5449171a534bc8c91ae73181 (patch)
tree95cd236e86e934f492b4a4a1bd44bcf434a91ab2 /dcop/HOWTO
parent180ceca8bb26bbe97f60c99e5d172eb8ccd66e6d (diff)
downloadtdelibs-0b81a0c481a3a64d5449171a534bc8c91ae73181.tar.gz
tdelibs-0b81a0c481a3a64d5449171a534bc8c91ae73181.zip
Rename TDEApplication::kApplication() to TDEApplication::tdeApplication() and kapp to tdeApp.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'dcop/HOWTO')
-rw-r--r--dcop/HOWTO12
1 files changed, 6 insertions, 6 deletions
diff --git a/dcop/HOWTO b/dcop/HOWTO
index 86324529f..16e60317d 100644
--- a/dcop/HOWTO
+++ b/dcop/HOWTO
@@ -98,7 +98,7 @@ case:
* returns the appId that is actually registered, which _may_ be
* different from what you passed
*/
-appId = client->registerAs(kApp->name());
+appId = client->registerAs(tdeApp->name());
If you never retrieve the DCOPClient pointer from TDEApplication, the
object will not be created and thus there will be no memory overhead.
@@ -111,8 +111,8 @@ call DCOPClient::registerAs() with the new name.
TDEUniqueApplication automatically registers itself to DCOP. If you
are using TDEUniqueApplication you should not attach or register
yourself, this is already done. The appId is by definition
-equal to kapp->name(). You can retrieve the registered DCOP client
-by calling kapp->dcopClient().
+equal to tdeApp->name(). You can retrieve the registered DCOP client
+by calling tdeApp->dcopClient().
Sending Data to a Remote Application:
-------------------------------------
@@ -247,7 +247,7 @@ bool BarObject::process(const QCString &fun, const QByteArray &data,
TQString result = self->doIt(i);
DCOPClientTransaction *myTransaction;
- myTransaction = kapp->dcopClient()->beginTransaction();
+ myTransaction = tdeApp->dcopClient()->beginTransaction();
// start processing...
// Calls slotProcessingDone when finished.
@@ -266,7 +266,7 @@ slotProcessingDone(DCOPClientTransaction *myTransaction, const TQString &result)
QByteArray replyData;
QDataStream reply(replyData, IO_WriteOnly);
reply << result;
- kapp->dcopClient()->endTransaction( myTransaction, replyType, replyData );
+ tdeApp->dcopClient()->endTransaction( myTransaction, replyType, replyData );
}
DCOP Signals
@@ -315,7 +315,7 @@ that an application that was started via TDELauncher terminates.
QByteArray params;
QDataStream stream(params, IO_WriteOnly);
stream << pid;
- kapp->dcopClient()->emitDCOPSignal("clientDied(pid_t)", params);
+ tdeApp->dcopClient()->emitDCOPSignal("clientDied(pid_t)", params);
The task manager of the TDE panel connects to this signal. It uses an
anonymous connection (it doesn't require that the signal is being emitted