[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    Re: [Kopete-devel] Autoaway plugin
From:       Ladislav Strojil <Ladislav.Strojil () seznam ! cz>
Date:       2002-05-04 10:51:35
[Download RAW message or body]

-----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 encapsulate
> exactly this?

I have no idea. 

I am currently compiling my changes in kopete plugins to implement status 
restoration.

The idea behind is that kopeteplugin defines method storeStatus and 
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 
precise, storeStatus does nothing at all and restoreStatus sets status to 
available.

This way, AutoAway plugin works as it used to before.
But once protocol plugin redefines storeStatus and restoreStatus, it can 
return to its saved status, whatever it was and no matter what other plugins 
do.

While this might not be the best way to do this, I'll give it a try once it 
compiles and see if it works. 

Introducing KopeteStatus class looks like a good idea, the set of possible 
statuses is probably very similar with each protocol.

Cheers,
Lada

- -- 
    ~       Ladislav Strojil, MFF UK
  ' v '               
 //   \\              
/(     )\    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=
=IAmW
-----END PGP SIGNATURE-----

_______________________________________________
Kopete-devel mailing list
Kopete-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic