Bug 96721

Summary: DBus interface for isConnected()
Product: [Unmaintained] kopete Reporter: Andreas Pietzowski <andreas>
Component: DBusAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: michael.larouche
Priority: NOR    
Version First Reported In: 0.9.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Andreas Pietzowski 2005-01-10 19:58:51 UTC
Version:           0.9.2 (using KDE 3.3.2 Level "a" , unofficial build of SUSE )
Compiler:          gcc version 3.3.3 (SuSE Linux)
OS:                Linux (i686) release 2.6.4-52-default

Hi,

sometimes my ICQ disconnects due to DSL disconnection after 24 hours (IP-change) or other (maybe unknown) protocol issues. kopete doesn't offer a functionality to reconnect after a disconnection from the server. It would be easy to write a shell script which asks kopete every minute if it is still connected maybe via isConnected( and if not I can use the DCOP connectAll() method again to reconnect to the ICQ system.

What do you think?

Thanks and nice application anyway
Pietz
Comment 1 Grzegorz Jaskiewicz 2005-01-10 21:08:16 UTC
> sometimes my ICQ disconnects due to DSL disconnection after 24 hours (IP-change) or other (maybe unknown) protocol issues. kopete doesn't offer a functionality to reconnect after a disconnection from the server. It would be easy to write a shell script which asks kopete every minute if it is still connected maybe via isConnected( and if not I can use the DCOP connectAll() method again to reconnect to the ICQ system.
It does. Current ICQ implementeation doesn't use it for some reason.
There is new ICQ implementation waiting to be merged to HEAD, around 
20ish. That should contain reconnect feature.

Comment 2 Andreas Pietzowski 2005-01-10 21:21:23 UTC
Hi,

> It does. Current ICQ implementeation doesn't use it for some
> reason. There is new ICQ implementation waiting to be merged to
> HEAD, around 20ish. That should contain reconnect feature.

OK, sounds cool but anyway I think that the method isConnected() is 
still useful when you want to script kopete by yourself with the 
shell.

Just an idea - maybe someone needs it ;)
Pietz

Comment 3 Tassilo Horn 2005-12-07 14:40:33 UTC
The accounts() method returns something like:

IRCProtocol||Freenode_2
ICQProtocol||140319753
JabberProtocol||tassilo@amessage.info

Perhaps you could modify it so that it returns:

IRCProtocol||Freenode_2||online
ICQProtocol||140319753||offline
JabberProtocol||tassilo@amessage.info||online

Regards,
Tassilo
Comment 4 John Herdy 2005-12-07 14:44:33 UTC
I second this request, but not in relation with ICQ, I want to be able to check on remote machines what the status is of an account and execute a script based on the result, thanks!
Comment 5 Will Stephenson 2007-11-14 14:21:42 UTC
Not in our dbus interface yet either.
Comment 6 Andreas Pietzowski 2010-05-08 15:03:28 UTC
Since auto reconnect seems to work properly we can close this issue.