| GData Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#include <gdata/gd/gdata-gd-organization.h>
GDataGDOrganization;
GDataGDOrganizationClass;
GDataGDOrganization * gdata_gd_organization_new (const gchar *name,
const gchar *title,
const gchar *relation_type,
const gchar *label,
gboolean is_primary);
gint gdata_gd_organization_compare (const GDataGDOrganization *a,
const GDataGDOrganization *b);
const gchar * gdata_gd_organization_get_name (GDataGDOrganization *self);
void gdata_gd_organization_set_name (GDataGDOrganization *self,
const gchar *name);
const gchar * gdata_gd_organization_get_title (GDataGDOrganization *self);
void gdata_gd_organization_set_title (GDataGDOrganization *self,
const gchar *title);
const gchar * gdata_gd_organization_get_relation_type
(GDataGDOrganization *self);
void gdata_gd_organization_set_relation_type
(GDataGDOrganization *self,
const gchar *relation_type);
const gchar * gdata_gd_organization_get_label (GDataGDOrganization *self);
void gdata_gd_organization_set_label (GDataGDOrganization *self,
const gchar *label);
gboolean gdata_gd_organization_is_primary (GDataGDOrganization *self);
void gdata_gd_organization_set_is_primary
(GDataGDOrganization *self,
gboolean is_primary);
"is-primary" gboolean : Read / Write "label" gchar* : Read / Write "name" gchar* : Read / Write "relation-type" gchar* : Read / Write "title" gchar* : Read / Write
typedef struct _GDataGDOrganization GDataGDOrganization;
All the fields in the GDataGDOrganization structure are private and should never be accessed directly.
typedef struct {
} GDataGDOrganizationClass;
All the fields in the GDataGDOrganizationClass structure are private and should never be accessed directly.
Since 0.4.0
GDataGDOrganization * gdata_gd_organization_new (const gchar *name, const gchar *title, const gchar *relation_type, const gchar *label, gboolean is_primary);
Creates a new GDataGDOrganization. More information is available in the GData specification.
|
the name of the organization, or NULL
|
|
the owner's title within the organization, or NULL
|
|
the relationship between the organization and its owner, or NULL
|
|
a human-readable label for the organization, or NULL
|
|
TRUE if this organization is its owner's primary organization, FALSE otherwise
|
Returns : |
a new GDataGDOrganization, or NULL; unref with g_object_unref()
|
Since 0.2.0
gint gdata_gd_organization_compare (const GDataGDOrganization *a, const GDataGDOrganization *b);
Compares the two organizations in a strcmp() fashion. NULL values are handled gracefully, with
0 returned if both a and b are NULL, -1 if a is NULL and 1 if b is NULL.
The comparison of non-NULL values is done on the basis of the name property of the GDataGDOrganizations.
|
a GDataGDOrganization, or NULL
|
|
another GDataGDOrganization, or NULL
|
Returns : |
0 if a equals b, -1 or 1 as appropriate otherwise
|
Since 0.4.0
const gchar * gdata_gd_organization_get_name (GDataGDOrganization *self);
Gets the "name" property.
|
a GDataGDOrganization |
Returns : |
the organization's name, or NULL
|
Since 0.4.0
void gdata_gd_organization_set_name (GDataGDOrganization *self, const gchar *name);
Sets the "name" property to name.
Set name to NULL to unset the property in the organization.
|
a GDataGDOrganization |
|
the new name for the organization |
Since 0.4.0
const gchar * gdata_gd_organization_get_title (GDataGDOrganization *self);
Gets the "title" property.
|
a GDataGDOrganization |
Returns : |
the organization's title, or NULL
|
Since 0.4.0
void gdata_gd_organization_set_title (GDataGDOrganization *self, const gchar *title);
Sets the "title" property to title.
Set title to NULL to unset the property in the organization.
|
a GDataGDOrganization |
|
the new title for the organization, or NULL
|
Since 0.4.0
const gchar * gdata_gd_organization_get_relation_type
(GDataGDOrganization *self);
Gets the "relation-type" property.
|
a GDataGDOrganization |
Returns : |
the organization's relation type, or NULL
|
Since 0.4.0
void gdata_gd_organization_set_relation_type
(GDataGDOrganization *self,
const gchar *relation_type);
Sets the "relation-type" property to relation_type.
Set relation_type to NULL to unset the property in the organization.
|
a GDataGDOrganization |
|
the new relation type for the organization, or NULL
|
Since 0.4.0
const gchar * gdata_gd_organization_get_label (GDataGDOrganization *self);
Gets the "label" property.
|
a GDataGDOrganization |
Returns : |
the organization's label, or NULL
|
Since 0.4.0
void gdata_gd_organization_set_label (GDataGDOrganization *self, const gchar *label);
Sets the "label" property to label.
Set label to NULL to unset the property in the organization.
|
a GDataGDOrganization |
|
the new label for the organization, or NULL
|
Since 0.4.0
gboolean gdata_gd_organization_is_primary (GDataGDOrganization *self);
Gets the "is-primary" property.
|
a GDataGDOrganization |
Returns : |
TRUE if this is the primary organization, FALSE otherwise
|
Since 0.4.0
void gdata_gd_organization_set_is_primary
(GDataGDOrganization *self,
gboolean is_primary);
Sets the "is-primary" property to is_primary.
|
a GDataGDOrganization |
|
TRUE if this is the primary organization, FALSE otherwise
|
Since 0.4.0
"is-primary" property"is-primary" gboolean : Read / Write
Indicates which organization out of a group is primary.
For more information, see the GData specification.
Default value: FALSE
Since 0.4.0
"label" property"label" gchar* : Read / Write
A simple string value used to name this organization. It allows UIs to display a label such as "Work", "Volunteer", "Professional Society", etc.
For more information, see the GData specification.
Default value: NULL
Since 0.4.0
"name" property"name" gchar* : Read / Write
The name of the organization.
For more information, see the GData specification.
Default value: NULL
Since 0.4.0
"relation-type" property"relation-type" gchar* : Read / Write
A programmatic value that identifies the type of organization.
For more information, see the GData specification.
Default value: NULL
Since 0.4.0
"title" property"title" gchar* : Read / Write
The title of a person within the organization.
For more information, see the GData specification.
Default value: NULL
Since 0.4.0