From kopete-devel Sat May 04 10:51:35 2002 From: Ladislav Strojil Date: Sat, 04 May 2002 10:51:35 +0000 To: kopete-devel Subject: Re: [Kopete-devel] Autoaway plugin X-MARC-Message: https://marc.info/?l=kopete-devel&m=102050964429606 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 04 May 2002 12:37, Martijn Klingens wrote: > On Saturday 04 May 2002 10:47, Daniel Stone wrote: > > 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. > > What happened to Ryan's KopeteStatus class which was meant to encapsula= te > exactly this? I have no idea.=20 I am currently compiling my changes in kopete plugins to implement status= =20 restoration. The idea behind is that kopeteplugin defines method storeStatus and=20 restoreStatus. kopeteapp then adds storeStatusAll and restoreStatusAll. AutoAway plugin then work by calling storeStatusAll and slotSetAwayAll. Upon restoration, it only calls restoreStateAll. Dummy versions of storeStatus and restoreStatus do nothing. To be more=20 precise, storeStatus does nothing at all and restoreStatus sets status to= =20 available. This way, AutoAway plugin works as it used to before. But once protocol plugin redefines storeStatus and restoreStatus, it can=20 return to its saved status, whatever it was and no matter what other plug= ins=20 do. While this might not be the best way to do this, I'll give it a try once = it=20 compiles and see if it works.=20 Introducing KopeteStatus class looks like a good idea, the set of possibl= e=20 statuses is probably very similar with each protocol. Cheers, Lada - --=20 ~ Ladislav Strojil, MFF UK ' v ' =20 // \\ =20 /( )\ Powered by Penguin. ^ ' ^ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE80704TnMZPFqq4nwRAuBfAJ4pTLgbsEouT+DeB+XlEl25FJvjswCgqChG 4SZ4jbktcVW5iOjR1P7aoRc=3D =3DIAmW -----END PGP SIGNATURE----- _______________________________________________ Kopete-devel mailing list Kopete-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/kopete-devel