uicc.contactmanager
Interface ContactEventListener


public interface ContactEventListener

Listener interface to react to contact manager events.


Field Summary
static int EVENT_CONTACT_ADDED
          This event indicates that a new contact has been added to the contact list.
static int EVENT_CONTACT_MODIFIED
          This event indicates that a contact has been modified.
static int EVENT_CONTACT_REMOVED
          This event indicates that a contact has been removed from the contact list.
static int EVENT_FIELD_DESCRIPTOR_ADDED
          This event indicates that a new field descriptor has been added.
static int EVENT_FIELD_DESCRIPTOR_MODIFIED
          This event indicates that a field descriptor has been modified.
static int EVENT_FIELD_DESCRIPTOR_REMOVED
          This event indicates that a field descriptor has been removed.
static int EVENT_GROUP_ADDED
          This event indicates that a new group has been added to the groups list.
static int EVENT_GROUP_CONTACT_ADDED
          This event indicates that a new contact has been added to a group.
static int EVENT_GROUP_CONTACT_REMOVED
          This event indicates that a contact has been removed from a group.
static int EVENT_GROUP_REMOVED
          This event indicates that a group has been removed from the groups list.
 
Method Summary
 void contactModified(int event, int contactIdentifier)
          contactModified is called when a contact is added/removed/updated in the contact list.
 void fieldDescriptorModified(int event, int fieldDescriptorIdentifier)
          fieldDescriptorModified is called when a field descriptor is added/removed/updated from the field descriptor list.
 void groupModified(int event, int groupIdentifier, int contactIdentifier)
          groupModified is called when a group is added/removed/updated in the groups list or when a contact is added/removed from any group in the groups list.
 

Field Detail

EVENT_CONTACT_ADDED

static final int EVENT_CONTACT_ADDED
This event indicates that a new contact has been added to the contact list.

See Also:
Constant Field Values

EVENT_CONTACT_MODIFIED

static final int EVENT_CONTACT_MODIFIED
This event indicates that a contact has been modified.

See Also:
Constant Field Values

EVENT_CONTACT_REMOVED

static final int EVENT_CONTACT_REMOVED
This event indicates that a contact has been removed from the contact list.

See Also:
Constant Field Values

EVENT_GROUP_ADDED

static final int EVENT_GROUP_ADDED
This event indicates that a new group has been added to the groups list.

See Also:
Constant Field Values

EVENT_GROUP_REMOVED

static final int EVENT_GROUP_REMOVED
This event indicates that a group has been removed from the groups list.

See Also:
Constant Field Values

EVENT_GROUP_CONTACT_ADDED

static final int EVENT_GROUP_CONTACT_ADDED
This event indicates that a new contact has been added to a group.

See Also:
Constant Field Values

EVENT_GROUP_CONTACT_REMOVED

static final int EVENT_GROUP_CONTACT_REMOVED
This event indicates that a contact has been removed from a group.

See Also:
Constant Field Values

EVENT_FIELD_DESCRIPTOR_ADDED

static final int EVENT_FIELD_DESCRIPTOR_ADDED
This event indicates that a new field descriptor has been added.

See Also:
Constant Field Values

EVENT_FIELD_DESCRIPTOR_MODIFIED

static final int EVENT_FIELD_DESCRIPTOR_MODIFIED
This event indicates that a field descriptor has been modified.

See Also:
Constant Field Values

EVENT_FIELD_DESCRIPTOR_REMOVED

static final int EVENT_FIELD_DESCRIPTOR_REMOVED
This event indicates that a field descriptor has been removed.

See Also:
Constant Field Values
Method Detail

contactModified

void contactModified(int event,
                     int contactIdentifier)
contactModified is called when a contact is added/removed/updated in the contact list.

Parameters:
event - represents the type of event that occurs:
EVENT_CONTACT_ADDED,EVENT_CONTACT_MODIFIED,EVENT_CONTACT_REMOVED
contactIdentifier - represent the id of the contact modified

groupModified

void groupModified(int event,
                   int groupIdentifier,
                   int contactIdentifier)
groupModified is called when a group is added/removed/updated in the groups list or when a contact is added/removed from any group in the groups list.

Parameters:
event - represents the type of event that occurs:
EVENT_GROUP_ADDED, EVENT_GROUP_REMOVED, EVENT_GROUP_CONTACT_ADDED, EVENT_GROUP_CONTACT_REMOVED
groupIdentifier - represents the id of the group that is added,removed or modified
contactIdentifier - represents the id of the contact that is added or removed from the group

fieldDescriptorModified

void fieldDescriptorModified(int event,
                             int fieldDescriptorIdentifier)
fieldDescriptorModified is called when a field descriptor is added/removed/updated from the field descriptor list.

Parameters:
event - represents the type of event that occurs:
EVENT_FIELD_DESCRIPTOR_ADDED, EVENT_FIELD_DESCRIPTOR_MODIFIED, EVENT_FIELD_DESCRIPTOR_REMOVED
fieldDescriptorIdentifier - represents the id of the modified field descriptor