![]() |
![]() |
![]() |
GData Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#include <gdata/gcontact/gdata-gcontact-external-id.h> #define GDATA_GCONTACT_EXTERNAL_ID_ACCOUNT #define GDATA_GCONTACT_EXTERNAL_ID_CUSTOMER #define GDATA_GCONTACT_EXTERNAL_ID_NETWORK #define GDATA_GCONTACT_EXTERNAL_ID_ORGANIZATION GDataGContactExternalID; GDataGContactExternalIDClass; GDataGContactExternalID * gdata_gcontact_external_id_new (const gchar *value
,const gchar *relation_type
,const gchar *label
); const gchar * gdata_gcontact_external_id_get_value (GDataGContactExternalID *self
); void gdata_gcontact_external_id_set_value (GDataGContactExternalID *self
,const gchar *value
); const gchar * gdata_gcontact_external_id_get_relation_type (GDataGContactExternalID *self
); void gdata_gcontact_external_id_set_relation_type (GDataGContactExternalID *self
,const gchar *relation_type
); const gchar * gdata_gcontact_external_id_get_label (GDataGContactExternalID *self
); void gdata_gcontact_external_id_set_label (GDataGContactExternalID *self
,const gchar *label
);
"label" gchar* : Read / Write "relation-type" gchar* : Read / Write "value" gchar* : Read / Write
GDataGContactExternalID represents an "externalId" element from the gContact specification.
#define GDATA_GCONTACT_EXTERNAL_ID_ACCOUNT "account"
The relation type URI for an account number identifier.
For more information, see the gContact specification.
Since 0.7.0
#define GDATA_GCONTACT_EXTERNAL_ID_CUSTOMER "customer"
The relation type URI for a customer identifier.
For more information, see the gContact specification.
Since 0.7.0
#define GDATA_GCONTACT_EXTERNAL_ID_NETWORK "network"
The relation type URI for a network identifier.
For more information, see the gContact specification.
Since 0.7.0
#define GDATA_GCONTACT_EXTERNAL_ID_ORGANIZATION "organization"
The relation type URI for an identifier related to an organization the contact is associated with.
For more information, see the gContact specification.
Since 0.7.0
typedef struct _GDataGContactExternalID GDataGContactExternalID;
All the fields in the GDataGContactExternalID structure are private and should never be accessed directly.
Since 0.7.0
typedef struct { } GDataGContactExternalIDClass;
All the fields in the GDataGContactExternalIDClass structure are private and should never be accessed directly.
Since 0.7.0
GDataGContactExternalID * gdata_gcontact_external_id_new (const gchar *value
,const gchar *relation_type
,const gchar *label
);
Creates a new GDataGContactExternalID. More information is available in the gContact specification.
Exactly one of relation_type
and label
should be provided; the other must be NULL
.
|
the value of the external ID |
|
the type of external ID, or NULL . [allow-none]
|
|
a free-form label for the external ID, or NULL . [allow-none]
|
Returns : |
a new GDataGContactExternalID; unref with g_object_unref()
|
Since 0.7.0
const gchar * gdata_gcontact_external_id_get_value
(GDataGContactExternalID *self
);
Gets the "value" property.
|
a GDataGContactExternalID |
Returns : |
the external ID's value |
Since 0.7.0
void gdata_gcontact_external_id_set_value (GDataGContactExternalID *self
,const gchar *value
);
Sets the "value" property to value
.
|
a GDataGContactExternalID |
|
the new value for the external ID |
Since 0.7.0
const gchar * gdata_gcontact_external_id_get_relation_type
(GDataGContactExternalID *self
);
Gets the "relation-type" property.
|
a GDataGContactExternalID |
Returns : |
the type of the relation, or NULL
|
Since 0.7.0
void gdata_gcontact_external_id_set_relation_type (GDataGContactExternalID *self
,const gchar *relation_type
);
Sets the "relation-type" property to relation_type
,
such as GDATA_GCONTACT_EXTERNAL_ID_NETWORK
or GDATA_GCONTACT_EXTERNAL_ID_ACCOUNT
.
If relation_type
is NULL
, the relation type will be unset. When the GDataGContactExternalID is used in a query, however,
exactly one of "relation-type" and "label" must be NULL
.
|
a GDataGContactExternalID |
|
the new type for the external ID, or NULL . [allow-none]
|
Since 0.7.0
const gchar * gdata_gcontact_external_id_get_label
(GDataGContactExternalID *self
);
Gets the "label" property.
|
a GDataGContactExternalID |
Returns : |
a free-form label for the external ID, or NULL
|
Since 0.7.0
void gdata_gcontact_external_id_set_label (GDataGContactExternalID *self
,const gchar *label
);
Sets the "label" property to label
.
If label
is NULL
, the label will be unset. When the GDataGContactExternalID is used in a query, however,
exactly one of "relation-type" and "label" must be NULL
.
|
a GDataGContactExternalID |
|
the new free-form label for the external ID, or NULL . [allow-none]
|
Since 0.7.0
"label"
property"label" gchar* : Read / Write
A free-form string that identifies the type of external ID. It is mutually exclusive with "relation-type".
For more information, see the gContact specification.
Default value: NULL
Since 0.7.0
"relation-type"
property"relation-type" gchar* : Read / Write
A programmatic value that identifies the type of external ID. It is mutually exclusive with "label".
Examples are GDATA_GCONTACT_EXTERNAL_ID_NETWORK
or GDATA_GCONTACT_EXTERNAL_ID_ACCOUNT
.
For more information, see the gContact specification.
Default value: NULL
Since 0.7.0
"value"
property"value" gchar* : Read / Write
The value of the external ID.
For more information, see the gContact specification.
Default value: NULL
Since 0.7.0