DataBookCursorCompareContactFunc


Description:

[ CCode ( has_target = false ) ]
[ Version ( since = "3.12" ) ]
public delegate int DataBookCursorCompareContactFunc (DataBookCursor cursor, Contact contact, out bool matches_sexp)

Method type for compare_contact

Cursor implementations must implement this in order to compare a contact with the current cursor state.

This is called when the addressbook backends notify active cursors that the addressbook has been modified with contact_added and contact_removed.

Parameters:

cursor

an DataBookCursor

contact

the Contact to compare with cursor

matches_sexp

return location to set whether contact matched cursor's search expression

Returns:

A value that is less than, equal to, or greater than zero if contact is found, respectively, to be less than, to match, or be greater than the current value of cursor.


Namespace: E