[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: dcop problems from inside kded module
From: Willi Richert <mennosimons () gmx ! net>
Date: 2003-08-18 13:49:56
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm writing a module for kded (laptop stuff) and want to send dcop messages,
which does not work correctly. What do I take for kapp?
If I initialise it with:
client = kapp->dcopClient();
QCString realAppId = client->registerAs(kapp->name());
and later on send Messages with:
QByteArray data;
QDataStream arg(data, IO_WriteOnly);
QString vol("Volume");
arg << vol << m_volume;
client->send("kded", "kmilod", "displayProgress(QString, int)", data);
it simply does not show any effect. In a standalone application the same
works fine. How then do I send dcop messages from inside a dcop module?
Also the KGlobalAccel shortcuts are grabbed when my kded module is active,
but
ga = new KGlobalAccel(this, "globalAccel");
ga->insert("generic_volumeUp", QString::null, QString::null,
Qt::Key_VolumeUp, 0, this,
SLOT(volumeUp(), false);
e.g. volumeU() is never invoked. If I e.g. connect the key "P" to volumeUp()
that way, that key isn't printed anywhere (so that I think KGlobalAccel got
it), but the connected slot isn't invoked either.
Rather helpless,
willi richert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQE/QNmE5AqWxs2vgvoRAgstAJ0dHZQdTxH1Ef700/+7mlwms8anzACfSYY2
A6K+pkNsCqtWZtiRonfh/rE=
=IKzX
-----END PGP SIGNATURE-----
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic