From kopete-devel Sat May 04 08:47:40 2002 From: Daniel Stone Date: Sat, 04 May 2002 08:47:40 +0000 To: kopete-devel Subject: Re: [Kopete-devel] Autoaway plugin X-MARC-Message: https://marc.info/?l=kopete-devel&m=102050208526104 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--vtzGhvizbBRQ85DL" --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 04, 2002 at 10:21:30AM +0200, Ladislav Strojil wrote: > I have a suggestion about the AutoAway plugin. >=20 > The problem (at least for me) is that it restores status to available, no= =20 > matter what it was before setting "away" status. >=20 > The problem is that is I set my status to "Occupied" and then leave the= =20 > computer untouched for few minutes before moving the mouse, it changes to= =20 > "Available" instead of "Occupied". >=20 > I tried to patch the plugin to remember last status before going away, bu= t=20 > this can probably be done as each of communication plugins can have diffe= rent=20 > status set at that moment. >=20 > So it seems to me that the only way to implement this is to add new metho= ds=20 > for plugins: setAutoAway() and restoreAutoAway(), that would store old=20 > status. >=20 > AA plugin could then call these instead of the unconditional ones. This is indeed the only way to handle this. Since each plugin stores its own status - int, QString, whatever, and in an incompatible way, and sets its presences differently, this would have to be implemented on a per-plugin basis. Cheers! d --=20 Daniel Stone http://raging.dropbear.id.= au KDE Developer http://www.kde.org Kopete: Multi-protocol IM client http://www.kdedevelopers.net/kopete/ --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzToCwACgkQcPClnTztfv30YQCff8hvj06qMmhGqxJQO8VOCkzh tHEAnizzmmKWAB3/Q0INO6H8npF3N4lY =S0Yg -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL-- _______________________________________________ Kopete-devel mailing list Kopete-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/kopete-devel