Buddy List – resiprocate

I have created the possibility of adding/removing contacts from a list. At this point the contacts are stored in a local file but we will change that later when we will get the contacts info from server.

When a contact is added to the buddy list, it’s stored in the mHandles and mIdentifiers hash and also copied to the file. When a contact is deleted, it is only removed from the file. It’s not very efficient but since we will change this way of storing the contacts later it’s not a big problem.

To initialize the buddy list and actually see it on Empathy it was necessary to set the contact list state interface to success (which took me several hours to find out).




Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s