RmContact

RmContact — Contact handling functions

Functions

Types and Values

Description

Contacts represents entries within an address book.

Functions

rm_contact_copy ()

void
rm_contact_copy (RmContact *src,
                 RmContact *dst);

Copies one contact data to another

Parameters

src

source RmContact

 

dst

destination RmContact

 

rm_contact_dup ()

RmContact *
rm_contact_dup (RmContact *src);

Duplicates a RmContact

Parameters

src

source RmContact

 

Returns

new RmContact


rm_contact_name_compare ()

gint
rm_contact_name_compare (gconstpointer a,
                         gconstpointer b);

Compares two contacts based on contacts name.

Parameters

a

pointer to first RmContact

 

b

pointer to second RmContact

 

Returns

return values of strcasecmp


rm_contact_find_by_number ()

RmContact *
rm_contact_find_by_number (gchar *number);

Try to find a contact by it's number

Parameters

number

phone number

 

Returns

a RmContact if number has been found, or NULL% if not.


rm_contact_free ()

void
rm_contact_free (RmContact *contact);

Frees a RmContact.

Parameters

contact

a RmContact

 

rm_contact_set_image_from_file ()

void
rm_contact_set_image_from_file (RmContact *contact,
                                gchar *file);

Replaces current contact image with the image file.

Parameters

contact

a RmContact

 

file

image file name

 

Types and Values

RmContactAddress

typedef struct {
} RmContactAddress;

The RmContactAddress contains only private fileds and should not be directly accessed.


RmContact

typedef struct {
	GObject parent_instance;
} RmContact;

The RmContact contains only private fileds and should not be directly accessed.


RM_TYPE_CONTACT

#define RM_TYPE_CONTACT (rm_contact_get_type())