Version: (using KDE KDE 3.5.0) Installed from: Ubuntu Packages OS: Linux currently it's not possible to retrieve the current online status via dcop. (at least I didn't find it). I use KBluetooth which automatically sets the accounts to 'away' once my cell-phone is out of range. In the latest KDE-version (3.5) however this reconnects kopete (if all accounts are disconnected). Apparently it works, if I use "setAutoAway" (although I'm not sure why). The correct solution would nevertheless check the current state, and use setAway only, if I'm connected.
As a workaround, you can use the Webstatus plugin to determine your status. Let the plugin generate a XML file somewhere on your local harddrive. Then let your script grep through the XML, looking for ONLINE or AWAY keywords. Unfortunately, the plugin operates with a certain timeout, I believe something within 10 seconds. So it's not 100% reliable, say 60%. But of course, I'd rather see it the DCOP/DBUS way :)
Created attachment 18979 [details] New DCOP functions for retrieving status This patch adds four new DCOP calls: o allAccountsConnected o allAccountsDisconnected o allConnectedAccountsAway o allConnectedAccountsOnline The patch is made with Kopete pre-3.5.6 (revision 614534) It does not completely close this bug, but for me it is sufficient. Hopefully it's helpful for you as well.
Dear user, unfortunately Kopete is no longer maintained. Please migrate to another solution, e.g. for Jabber a possibility is Kaidan, for Matrix a candidate is NeoChat.