Package common :: Module contacts :: Class Contacts
[hide private]
[frames] | no frames]

Class Contacts

source code

This is a breakout of the contact related behavior of the old Contacts class (which is not called LegacyContactsAPI)
Instance Methods [hide private]
 
__init__(self) source code
 
add_contact(self, contact) source code
 
remove_contact(self, contact) source code
 
remove_jid(self, jid)
Remove all contacts for a given jid
source code
 
get_contacts(self, jid)
Return the list of contact instances for this jid
source code
 
get_contact(self, jid, resource=None)
Return the contact instance for the given resource if it's given else the first contact is no resource is given or None if there is not
source code
 
iter_contacts(self) source code
 
get_jid_list(self) source code
 
get_contacts_jid_list(self) source code
 
get_contact_from_full_jid(self, fjid)
Get Contact object for specific resource of given jid
source code
 
get_first_contact_from_jid(self, jid) source code
 
get_contacts_from_group(self, group)
Return all contacts in the given group
source code
 
change_contact_jid(self, old_jid, new_jid) source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

add_contact(self, contact)

source code 

remove_contact(self, contact)

source code 

remove_jid(self, jid)

source code 
Remove all contacts for a given jid

get_contacts(self, jid)

source code 
Return the list of contact instances for this jid

get_contact(self, jid, resource=None)

source code 
Return the contact instance for the given resource if it's given else the first contact is no resource is given or None if there is not

iter_contacts(self)

source code 

get_jid_list(self)

source code 

get_contacts_jid_list(self)

source code 

get_contact_from_full_jid(self, fjid)

source code 
Get Contact object for specific resource of given jid

get_first_contact_from_jid(self, jid)

source code 

get_contacts_from_group(self, group)

source code 
Return all contacts in the given group

change_contact_jid(self, old_jid, new_jid)

source code