Bug 117962 - retrieve d-bus online status
Summary: retrieve d-bus online status
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kopete
Classification: Unmaintained
Component: DBus (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-08 22:36 UTC by Florian Loitsch
Modified: 2024-09-18 18:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
New DCOP functions for retrieving status (2.38 KB, patch)
2006-12-19 16:27 UTC, Bram Schoenmakers
Details

Note You need to log in before you can comment on or make changes to this bug.
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.