Top |
#define | FOLKS_TYPE_ROLE |
gboolean | folks_role_is_empty () |
gchar * | folks_role_to_string () |
FolksRole * | folks_role_new () |
const gchar * | folks_role_get_organisation_name () |
void | folks_role_set_organisation_name () |
const gchar * | folks_role_get_title () |
void | folks_role_set_title () |
const gchar * | folks_role_get_role () |
void | folks_role_set_role () |
const gchar * | folks_role_get_uid () |
void | folks_role_set_uid () |
gboolean | folks_role_equal () |
guint | folks_role_hash () |
#define | FOLKS_TYPE_ROLE_FIELD_DETAILS |
FolksRoleFieldDetails * | folks_role_field_details_new () |
void | folks_role_details_change_roles () |
void | folks_role_details_change_roles_finish () |
GeeSet * | folks_role_details_get_roles () |
void | folks_role_details_set_roles () |
struct | FolksRole |
struct | FolksRoleClass |
struct | FolksRoleFieldDetails |
struct | FolksRoleFieldDetailsClass |
FolksRoleDetails | |
struct | FolksRoleDetailsIface |
GInterface ╰── FolksRoleDetails GObject ├── FolksAbstractFieldDetails │ ╰── FolksRoleFieldDetails ╰── FolksRole
This represents the role a FolksPersona or FolksIndividual has in a single given organisation, such as a company.
gboolean
folks_role_is_empty (FolksRole *self
);
Whether none of the components is set.
Since 0.6.7
gchar *
folks_role_to_string (FolksRole *self
);
Formatted version of this role.
Since 0.4.0
FolksRole * folks_role_new (const gchar *title
,const gchar *organisation_name
,const gchar *uid
);
Default constructor.
title |
. title of the position . |
[in][allow-none] |
organisation_name |
. organisation where the role is hold . |
[in][allow-none] |
uid |
. a Unique ID associated to this Role . |
[in][allow-none] |
Since 0.4.0
const gchar *
folks_role_get_organisation_name (FolksRole *self
);
Get and return the current value of the "organisation-name" property.
The name of the organisation in which the role is held.
void folks_role_set_organisation_name (FolksRole *self
,const gchar *value
);
Set the value of the "organisation-name" property to value
.
The name of the organisation in which the role is held.
self |
the FolksRole instance to modify |
|
value |
the new value of the "organisation-name" property |
const gchar *
folks_role_get_title (FolksRole *self
);
Get and return the current value of the "title" property.
The title of the position held.
For example: “Director, Ministry of Silly Walks”
void folks_role_set_title (FolksRole *self
,const gchar *value
);
Set the value of the "title" property to value
.
The title of the position held.
For example: “Director, Ministry of Silly Walks”
const gchar *
folks_role_get_role (FolksRole *self
);
Get and return the current value of the "role" property.
The role of the position.
For example: “Programmer”
Since 0.6.0
void folks_role_set_role (FolksRole *self
,const gchar *value
);
Set the value of the "role" property to value
.
The role of the position.
For example: “Programmer”
Since 0.6.0
const gchar *
folks_role_get_uid (FolksRole *self
);
folks_role_get_uid
has been deprecated since version 0.6.5 and should not be used in newly-written code.
Replaced by “id”.
Get and return the current value of the "uid" property.
The UID that distinguishes this role.
void folks_role_set_uid (FolksRole *self
,const gchar *value
);
folks_role_set_uid
has been deprecated since version 0.6.5 and should not be used in newly-written code.
Replaced by “id”.
Set the value of the "uid" property to value
.
The UID that distinguishes this role.
gboolean folks_role_equal (FolksRole *a
,FolksRole *b
);
Compare if two roles are equal. Roles are equal if their titles and organisation names are equal.
guint
folks_role_hash (FolksRole *r
);
Hash function for the class. Suitable for use as a hash table key.
#define FOLKS_TYPE_ROLE_FIELD_DETAILS (folks_role_field_details_get_type ())
The type for FolksRoleFieldDetails.
FolksRoleFieldDetails * folks_role_field_details_new (FolksRole *value
,GeeMultiMap *parameters
);
Create a new RoleFieldDetails.
value |
. the non-empty FolksRole of the field . |
[in] |
parameters |
. initial parameters. See "parameters". A . |
[in][allow-none] |
Since 0.6.0
void folks_role_details_change_roles (FolksRoleDetails *self
,GeeSet *roles
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
Change the contact's roles.
It's preferred to call this rather than setting "roles" directly, as this method gives error notification and will only return once the roles have been written to the relevant backing store (or the operation's failed).
FolksPropertyError will be returned in error
if setting the roles failed
See also: folks_role_details_change_roles_finish()
self |
the FolksRoleDetails instance |
|
roles |
. the set of roles . |
[in] |
_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_role_details_change_roles_finish (FolksRoleDetails *self
,GAsyncResult *_res_
,GError **error
);
Change the contact's roles.
It's preferred to call this rather than setting "roles" directly, as this method gives error notification and will only return once the roles have been written to the relevant backing store (or the operation's failed).
FolksPropertyError will be returned in error
if setting the roles failed
See also: folks_role_details_change_roles()
self |
the FolksRoleDetails instance |
|
_res_ |
||
error |
location to store the error occuring, or |
[error-domains FolksPropertyError] |
Since 0.6.2
GeeSet *
folks_role_details_get_roles (FolksRoleDetails *self
);
Get and return the current value of the "roles" property.
The roles of the contact.
Since 0.6.0
void folks_role_details_set_roles (FolksRoleDetails *self
,GeeSet *value
);
Set the value of the "roles" property to value
.
The roles of the contact.
Since 0.6.0
struct FolksRole;
Role a contact has in an organisation.
This represents the role a FolksPersona or FolksIndividual has in a single given organisation, such as a company.
Since 0.4.0
struct FolksRoleClass { GObjectClass parent_class; };
The class structure for FOLKS_TYPE_ROLE
. All the fields in this structure are private and should never be accessed directly.
struct FolksRoleFieldDetails;
Object representing details of a contact in an organisation which can have some parameters associated with it.
See FolksAbstractFieldDetails.
Since 0.6.0
struct FolksRoleFieldDetailsClass { FolksAbstractFieldDetailsClass parent_class; };
The class structure for FOLKS_TYPE_ROLE_FIELD_DETAILS
. All the fields in this structure are private and should never be accessed directly.
typedef struct _FolksRoleDetails FolksRoleDetails;
This interfaces represents the list of roles a FolksPersona and FolksIndividual might have.
Since 0.4.0
struct FolksRoleDetailsIface { GTypeInterface parent_iface; void (*change_roles) (FolksRoleDetails* self, GeeSet* roles, GAsyncReadyCallback _callback_, gpointer _user_data_); void (*change_roles_finish) (FolksRoleDetails* self, GAsyncResult* _res_, GError** error); GeeSet* (*get_roles) (FolksRoleDetails* self); void (*set_roles) (FolksRoleDetails* self, GeeSet* value); };
Interface for creating FolksRoleDetails implementations.
GTypeInterface |
the parent interface structure |
|
virtual method called by |
||
asynchronous finish function for |
||
getter method for the abstract property "roles" |
||
setter method for the abstract property "roles" |
“organisation-name”
property“organisation-name” gchar *
The name of the organisation in which the role is held.
Flags: Read / Write
Default value: NULL
“role”
property“role” gchar *
The role of the position.
For example: “Programmer”
Flags: Read / Write
Default value: NULL
Since 0.6.0
“title”
property“title” gchar *
The title of the position held.
For example: “Director, Ministry of Silly Walks”
Flags: Read / Write
Default value: NULL
“uid”
property“uid” gchar *
The UID that distinguishes this role.
FolksRole:uid
has been deprecated since version 0.6.5 and should not be used in newly-written code.
Replaced by “id”.
Flags: Read / Write
Default value: NULL