RContact

RContact —

Synopsis




#define     R_CONTACT_TYPE
#define     R_CONTACT                       (obj)
#define     R_CONTACT_CLASS                 (klass)
#define     IS_R_CONTACT                    (obj)
#define     IS_R_CONTACT_CLASS              (klass)
#define     R_CONTACT_GET_CLASS             (klass)
            RContactPrivate;
            RContact;
GType       r_contact_get_type              (void);
RContact*   r_contact_new                   (void);
void        r_contact_free                  (RContact *contact);
RContact*   r_contact_copy                  (RContact *contact);
void        r_contact_set_birthday          (RContact *contact,
                                             gint day,
                                             gint month,
                                             gint year);
gchar*      r_contact_get_birth_day         (RContact *contact);
gchar*      r_contact_get_birth_month       (RContact *contact);
gchar*      r_contact_get_birth_year        (RContact *contact);
gchar*      r_contact_get_birthdate         (RContact *contact);

Object Hierarchy


  GObject
   +----RContact

Properties


  "first-name"           gchararray            : Read / Write
  "last-name"            gchararray            : Read / Write
  "middle-name"          gchararray            : Read / Write
  "nick-name"            gchararray            : Read / Write
  "photo"                gchararray            : Read / Write
  "prefix"               gchararray            : Read / Write
  "profession"           gchararray            : Read / Write
  "title"                gchararray            : Read / Write

Description

Details

R_CONTACT_TYPE

#define R_CONTACT_TYPE             (r_contact_get_type())


R_CONTACT()

#define     R_CONTACT(obj)

obj :

R_CONTACT_CLASS()

#define     R_CONTACT_CLASS(klass)

klass :

IS_R_CONTACT()

#define     IS_R_CONTACT(obj)

obj :

IS_R_CONTACT_CLASS()

#define     IS_R_CONTACT_CLASS(klass)

klass :

R_CONTACT_GET_CLASS()

#define     R_CONTACT_GET_CLASS(klass)

klass :

RContactPrivate

typedef struct _RContactPrivate RContactPrivate;


RContact

typedef struct _RContact RContact;


r_contact_get_type ()

GType       r_contact_get_type              (void);

Returns :

r_contact_new ()

RContact*   r_contact_new                   (void);

create a new RContact

Returns : a RContact*

r_contact_free ()

void        r_contact_free                  (RContact *contact);

free memory owned by RContact

contact : a RContact

r_contact_copy ()

RContact*   r_contact_copy                  (RContact *contact);

make a copy of given object

contact : a RContact
Returns : a new RContact object

r_contact_set_birthday ()

void        r_contact_set_birthday          (RContact *contact,
                                             gint day,
                                             gint month,
                                             gint year);

set contact's birthday

contact : a RContact
day : contact's birth day
month : contact's birth month
year : contact's birth year

r_contact_get_birth_day ()

gchar*      r_contact_get_birth_day         (RContact *contact);

get contact's day of birth. Caller must free the returned value

contact : a RContact
Returns : a gchar*

r_contact_get_birth_month ()

gchar*      r_contact_get_birth_month       (RContact *contact);

contact :
Returns :

r_contact_get_birth_year ()

gchar*      r_contact_get_birth_year        (RContact *contact);

get contact's year of birth. Caller must free the returned value

contact : a RContact
Returns : a gchar*

r_contact_get_birthdate ()

gchar*      r_contact_get_birthdate         (RContact *contact);

get contact's birthday, or "unknown" if birthday wasn't setted. Caller must free the returned value

contact : a RContact
Returns : a gchar*

Property Details

The "first-name" property

  "first-name"           gchararray            : Read / Write

contact's fist name

Default value: NULL


The "last-name" property

  "last-name"            gchararray            : Read / Write

contact's last name

Default value: NULL


The "middle-name" property

  "middle-name"          gchararray            : Read / Write

contact's middle name

Default value: NULL


The "nick-name" property

  "nick-name"            gchararray            : Read / Write

contact's nick name

Default value: NULL


The "photo" property

  "photo"                gchararray            : Read / Write

contact's photo

Default value: NULL


The "prefix" property

  "prefix"               gchararray            : Read / Write

contact's prefix

Default value: NULL


The "profession" property

  "profession"           gchararray            : Read / Write

contact's profession

Default value: NULL


The "title" property

  "title"                gchararray            : Read / Write

contact's title

Default value: NULL