Le April 4, 2006 17:55, Matt Rogers a écrit :
> Hi,
>
> I'm working on fixing bug #121816 which has to do with the IRC memberlist
> setting not being saved per chat. I have an idea about how to fix this bug
> and i don't think it would take me very long to implement, but I have one
> question.
>
> Is there something that is static (i.e. assigned once on metacontact
> creation and never changed again) that I can use as an identifier? I don't
> think that the metacontact display name is suitable enough. I'd like to use
> the metacontact id, but i'm not sure that those get generated for every
> metacontact.
>
> Thanks
> --
> Matt
> _______________________________________________
> kopete-devel mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/kopete-devel

metaContactId() could be ok, but it can change in just one case, KABC 
association.

if metacontact doesn't have a KABC
        it is in the form "Protocol:accoundId:contactId"
else 
        it use the id from KABC. 

And you can set KABC association after the metacontact has been created.

But thinking of it, this is plain wrong, metaContactId() should always return 
"Protocol:accoundId:contactId" and add extra method for KABC id.

-- 
Michaël Larouche
KDE developer working on Kopete, Kamefu, Solid...on dial-up :P
--------------------------------------
Blog: http://mlarouche.blogspot.com/
MSN/Email: [EMAIL PROTECTED]
IRC: irc.freenode.org/DarkShock on #kopete,#solid,#kamefu,#plasma
Jabber: [EMAIL PROTECTED]

Attachment: pgpWhiL7ja8h5.pgp
Description: PGP signature

_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to