[prev in list] [next in list] [prev in thread] [next in thread]
List: kopete-devel
Subject: Re: [Kopete-devel] How to move a Contact into another MetaContact
From: Olivier Goffart <ogoffart () tiscalinet ! be>
Date: 2002-08-30 17:09:53
[Download RAW message or body]
Hi
>Hmm, I'm not to fond of publishing internal data structures. Better add a
>KopeteMetaContact::moveContact( KopeteMetaContact *newMC ), so all data can
>be kept internal to the MC and it's possible to switch data structures later
>when needed.
I believe that to move the contact, best is:
KopeteContact::moveToMetaContact(KopeteMetaContact *m)
{
m_metaContact->removeContact(this);
m->addContact(this);
//groups things (removing all old metacontact's groups
// and adding all new metacontact's groups)
m_metaContact=m;
}
Like this, access to m_metaContact easier.
_______________________________________________
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