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).