Top |
GDataGContactLanguage * | gdata_gcontact_language_new () |
const gchar * | gdata_gcontact_language_get_code () |
void | gdata_gcontact_language_set_code () |
const gchar * | gdata_gcontact_language_get_label () |
void | gdata_gcontact_language_set_label () |
GDataGContactLanguage * gdata_gcontact_language_new (const gchar *code
,const gchar *label
);
Creates a new GDataGContactLanguage. More information is available in the gContact specification.
Exactly one of code
and label
should be provided; the other must be NULL
.
Since: 0.7.0
const gchar *
gdata_gcontact_language_get_code (GDataGContactLanguage *self
);
Gets the “code” property.
Since: 0.7.0
void gdata_gcontact_language_set_code (GDataGContactLanguage *self
,const gchar *code
);
Sets the “code” property to code
.
If code
is NULL
, the code will be unset. When the GDataGContactLanguage is used in a query, however,
exactly one of “code” and “label” must be NULL
.
Since: 0.7.0
const gchar *
gdata_gcontact_language_get_label (GDataGContactLanguage *self
);
Gets the “label” property.
Since: 0.7.0
void gdata_gcontact_language_set_label (GDataGContactLanguage *self
,const gchar *label
);
Sets the “label” property to label
.
If label
is NULL
, the label will be unset. When the GDataGContactLanguage is used in a query, however,
exactly one of “code” and “label” must be NULL
.
Since: 0.7.0
typedef struct _GDataGContactLanguage GDataGContactLanguage;
All the fields in the GDataGContactLanguage structure are private and should never be accessed directly.
Since: 0.7.0
typedef struct { } GDataGContactLanguageClass;
All the fields in the GDataGContactLanguageClass structure are private and should never be accessed directly.
Since: 0.7.0
“code”
property“code” gchar *
A code identifying the language, conforming to the IETF BCP 47 specification. It is mutually exclusive with “label”.
For more information, see the
gContact specification.Flags: Read / Write
Default value: NULL
Since: 0.7.0
“label”
property“label” gchar *
A free-form string that identifies the language. It is mutually exclusive with “code”.
For more information, see the
gContact specification.Flags: Read / Write
Default value: NULL
Since: 0.7.0