dcop problems from inside kded module

Willi Richert mennosimons at gmx.net
Mon Aug 18 14:49:56 BST 2003


-----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-----

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<




More information about the kde-core-devel mailing list