folks Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Properties |
FolksRoleFolksRole — This interface represents the role a FolksPersona and FolksIndividual have in a given Organisation. |
#define FOLKS_TYPE_ROLE gboolean folks_role_is_empty (FolksRole *self
); gchar * folks_role_to_string (FolksRole *self
); FolksRole * folks_role_new (const gchar *title
,const gchar *organisation_name
,const gchar *uid
); const gchar * folks_role_get_organisation_name (FolksRole *self
); void folks_role_set_organisation_name (FolksRole *self
,const gchar *value
); const gchar * folks_role_get_title (FolksRole *self
); void folks_role_set_title (FolksRole *self
,const gchar *value
); const gchar * folks_role_get_role (FolksRole *self
); void folks_role_set_role (FolksRole *self
,const gchar *value
); const gchar * folks_role_get_uid (FolksRole *self
); void folks_role_set_uid (FolksRole *self
,const gchar *value
); gboolean folks_role_equal (FolksRole *a
,FolksRole *b
); guint folks_role_hash (FolksRole *r
); struct FolksRole; #define FOLKS_TYPE_ROLE_FIELD_DETAILS FolksRoleFieldDetails * folks_role_field_details_new (FolksRole *value
,GeeMultiMap *parameters
); struct FolksRoleFieldDetails; void folks_role_details_change_roles (FolksRoleDetails *self
,GeeSet *roles
,GAsyncReadyCallback _callback_
,gpointer _user_data_
); void folks_role_details_change_roles_finish (FolksRoleDetails *self
,GAsyncResult *_res_
,GError **error
); GeeSet * folks_role_details_get_roles (FolksRoleDetails *self
); void folks_role_details_set_roles (FolksRoleDetails *self
,GeeSet *value
); FolksRoleDetails;
GObject +----FolksRole
GObject +----FolksAbstractFieldDetails +----FolksRoleFieldDetails
GInterface +----FolksRoleDetails
"organisation-name" gchar* : Read / Write "role" gchar* : Read / Write "title" gchar* : Read / Write "uid" gchar* : Read / Write "id" gchar* : Read / Write "roles" GeeSet* : Read / Write
gboolean folks_role_is_empty (FolksRole *self
);
Whether none of the components is set.
|
the FolksRole instance |
Returns : |
`true` if all the components are the empty string, `false` otherwise. |
Since 0.6.7
gchar * folks_role_to_string (FolksRole *self
);
Formatted version of this role.
|
the FolksRole instance |
Since 0.4.0
FolksRole * folks_role_new (const gchar *title
,const gchar *organisation_name
,const gchar *uid
);
Default constructor.
|
title of the position. [in][allow-none] |
|
organisation where the role is hold. [in][allow-none] |
|
a Unique ID associated to this Role. [in][allow-none] |
Returns : |
a new Role |
Since 0.4.0
const gchar * folks_role_get_organisation_name (FolksRole *self
);
|
the FolksRole instance to query |
Returns : |
the value of the "organisation-name" property |
void folks_role_set_organisation_name (FolksRole *self
,const gchar *value
);
|
the FolksRole instance to modify |
|
the new value of the "organisation-name" property |
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.
|
a role to compare. [in] |
|
another role to compare. [in] |
Returns : |
`true` if the roles are equal, `false` otherwise |
guint folks_role_hash (FolksRole *r
);
Hash function for the class. Suitable for use as a hash table key.
|
a role to hash. [in] |
Returns : |
hash value for the role instance |
struct FolksRole;
This interface represents the role a FolksPersona and FolksIndividual have in a given Organisation.
Since 0.4.0
#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.
|
the non-empty FolksRole of the field. [in] |
|
initial parameters. See "parameters". A `null` value is equivalent to an empty map of parameters. [in][allow-none] |
Returns : |
a new RoleFieldDetails |
Since 0.6.0
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
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).
See also: folks_role_details_change_roles_finish()
|
the FolksRoleDetails instance |
|
the set of roles. [in] |
|
callback to call when the request is satisfied. [scope async] |
|
the data to pass to _callback_ function. [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).
See also: folks_role_details_change_roles()
|
the FolksRoleDetails instance |
|
a GAsyncResult |
|
location to store the error occuring, or NULL to ignore. [error-domains FolksPropertyError]
|
Since 0.6.2
GeeSet * folks_role_details_get_roles (FolksRoleDetails *self
);
|
the FolksRoleDetails instance to query |
Returns : |
the value of the "roles" property |
void folks_role_details_set_roles (FolksRoleDetails *self
,GeeSet *value
);
|
the FolksRoleDetails instance to modify |
|
the new value of the "roles" property |
typedef struct _FolksRoleDetails FolksRoleDetails;
This interfaces represents the list of roles a FolksPersona and FolksIndividual might have.
Since 0.4.0
"organisation-name"
property "organisation-name" gchar* : Read / Write
The name of the organisation in which the role is held.
Default value: NULL
"role"
property "role" gchar* : Read / Write
The role of the position.
For example: “Programmer”
Default value: NULL
Since 0.6.0
"title"
property "title" gchar* : Read / Write
The title of the position held.
For example: “Director, Ministry of Silly Walks”
Default value: NULL
"uid"
property "uid" gchar* : Read / Write
The UID that distinguishes this role.
Default value: NULL