Top |
This allows representation of the birth date and associated calendar event ID of a contact.
void folks_birthday_details_change_birthday (FolksBirthdayDetails *self
,GDateTime *birthday
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
Change the contact's birthday.
It's preferred to call this rather than setting "birthday" directly, as this method gives error notification and will only return once the birthday has been written to the relevant backing store (or the operation's failed).
FolksPropertyError will be returned in error
if setting the birthday failed
See also: folks_birthday_details_change_birthday_finish()
self |
the FolksBirthdayDetails instance |
|
birthday |
. the new birthday (or . |
[in][allow-none] |
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[closure] |
Since 0.6.2
void folks_birthday_details_change_birthday_finish (FolksBirthdayDetails *self
,GAsyncResult *_res_
,GError **error
);
Change the contact's birthday.
It's preferred to call this rather than setting "birthday" directly, as this method gives error notification and will only return once the birthday has been written to the relevant backing store (or the operation's failed).
FolksPropertyError will be returned in error
if setting the birthday failed
See also: folks_birthday_details_change_birthday()
self |
the FolksBirthdayDetails instance |
|
_res_ |
||
error |
location to store the error occuring, or |
[error-domains FolksPropertyError] |
Since 0.6.2
void folks_birthday_details_change_calendar_event_id (FolksBirthdayDetails *self
,const gchar *event_id
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
Change the contact's birthday event ID.
It's preferred to call this rather than setting "calendar-event-id" directly, as this method gives error notification and will only return once the event has been written to the relevant backing store (or the operation's failed).
FolksPropertyError will be returned in error
if setting the birthday event ID failed
See also: folks_birthday_details_change_calendar_event_id_finish()
self |
the FolksBirthdayDetails instance |
|
event_id |
. the new birthday event ID (or . |
[in][allow-none] |
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[closure] |
Since 0.6.2
void folks_birthday_details_change_calendar_event_id_finish (FolksBirthdayDetails *self
,GAsyncResult *_res_
,GError **error
);
Change the contact's birthday event ID.
It's preferred to call this rather than setting "calendar-event-id" directly, as this method gives error notification and will only return once the event has been written to the relevant backing store (or the operation's failed).
FolksPropertyError will be returned in error
if setting the birthday event ID failed
See also: folks_birthday_details_change_calendar_event_id()
self |
the FolksBirthdayDetails instance |
|
_res_ |
||
error |
location to store the error occuring, or |
[error-domains FolksPropertyError] |
Since 0.6.2
GDateTime *
folks_birthday_details_get_birthday (FolksBirthdayDetails *self
);
Get and return the current value of the "birthday" property.
The birthday of the FolksPersona and FolksIndividual. This is assumed to be in UTC.
If this is null
, the contact's birthday isn't known.
Since 0.4.0
void folks_birthday_details_set_birthday (FolksBirthdayDetails *self
,GDateTime *value
);
Set the value of the "birthday" property to value
.
The birthday of the FolksPersona and FolksIndividual. This is assumed to be in UTC.
If this is null
, the contact's birthday isn't known.
self |
the FolksBirthdayDetails instance to modify |
|
value |
the new value of the "birthday" property |
Since 0.4.0
const gchar *
folks_birthday_details_get_calendar_event_id
(FolksBirthdayDetails *self
);
Get and return the current value of the "calendar-event-id" property.
The event ID of the birthday event from the source calendar.
If this is null
, the birthday event is unknown. The semantics of the event ID are left unspecified by folks.
Since 0.4.0
void folks_birthday_details_set_calendar_event_id (FolksBirthdayDetails *self
,const gchar *value
);
Set the value of the "calendar-event-id" property to value
.
The event ID of the birthday event from the source calendar.
If this is null
, the birthday event is unknown. The semantics of the event ID are left unspecified by folks.
self |
the FolksBirthdayDetails instance to modify |
|
value |
the new value of the "calendar-event-id" property |
Since 0.4.0
typedef struct _FolksBirthdayDetails FolksBirthdayDetails;
Birthday details for a contact.
This allows representation of the birth date and associated calendar event ID of a contact.
Since 0.4.0
struct FolksBirthdayDetailsIface { GTypeInterface parent_iface; void (*change_birthday) (FolksBirthdayDetails* self, GDateTime* birthday, GAsyncReadyCallback _callback_, gpointer _user_data_); void (*change_birthday_finish) (FolksBirthdayDetails* self, GAsyncResult* _res_, GError** error); void (*change_calendar_event_id) (FolksBirthdayDetails* self, const gchar* event_id, GAsyncReadyCallback _callback_, gpointer _user_data_); void (*change_calendar_event_id_finish) (FolksBirthdayDetails* self, GAsyncResult* _res_, GError** error); GDateTime* (*get_birthday) (FolksBirthdayDetails* self); void (*set_birthday) (FolksBirthdayDetails* self, GDateTime* value); const gchar* (*get_calendar_event_id) (FolksBirthdayDetails* self); void (*set_calendar_event_id) (FolksBirthdayDetails* self, const gchar* value); };
Interface for creating FolksBirthdayDetails implementations.
GTypeInterface |
the parent interface structure |
|
virtual method called by |
||
asynchronous finish function for |
||
virtual method called by |
||
asynchronous finish function for |
||
getter method for the abstract property "birthday" |
||
setter method for the abstract property "birthday" |
||
getter method for the abstract property "calendar-event-id" |
||
setter method for the abstract property "calendar-event-id" |
“birthday”
property“birthday” GDateTime *
The birthday of the FolksPersona and FolksIndividual. This is assumed to be in UTC.
If this is null
, the contact's birthday isn't known.
Flags: Read / Write
Since 0.4.0
“calendar-event-id”
property“calendar-event-id” gchar *
The event ID of the birthday event from the source calendar.
If this is null
, the birthday event is unknown. The semantics of the event ID are left unspecified by folks.
Flags: Read / Write
Default value: NULL
Since 0.4.0