Bug 117962

Summary: retrieve d-bus online status
Product: [Unmaintained] kopete Reporter: Florian Loitsch <florian>
Component: DBusAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: New DCOP functions for retrieving status

Description Florian Loitsch 2005-12-08 22:36:25 UTC
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.
Comment 1 Bram Schoenmakers 2006-10-13 22:45:44 UTC
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 :)
Comment 2 Bram Schoenmakers 2006-12-19 16:27:20 UTC
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.
Comment 3 Christoph Cullmann 2024-09-18 18:27:43 UTC
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.