![]() |
![]() |
![]() |
GData Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#include <gdata/gd/gdata-gd-phone-number.h> #define GDATA_GD_PHONE_NUMBER_ASSISTANT #define GDATA_GD_PHONE_NUMBER_CALLBACK #define GDATA_GD_PHONE_NUMBER_CAR #define GDATA_GD_PHONE_NUMBER_COMPANY_MAIN #define GDATA_GD_PHONE_NUMBER_FAX #define GDATA_GD_PHONE_NUMBER_HOME #define GDATA_GD_PHONE_NUMBER_HOME_FAX #define GDATA_GD_PHONE_NUMBER_ISDN #define GDATA_GD_PHONE_NUMBER_MAIN #define GDATA_GD_PHONE_NUMBER_MOBILE #define GDATA_GD_PHONE_NUMBER_OTHER #define GDATA_GD_PHONE_NUMBER_OTHER_FAX #define GDATA_GD_PHONE_NUMBER_PAGER #define GDATA_GD_PHONE_NUMBER_RADIO #define GDATA_GD_PHONE_NUMBER_TELEX #define GDATA_GD_PHONE_NUMBER_TTY_TDD #define GDATA_GD_PHONE_NUMBER_WORK #define GDATA_GD_PHONE_NUMBER_WORK_FAX #define GDATA_GD_PHONE_NUMBER_WORK_MOBILE #define GDATA_GD_PHONE_NUMBER_WORK_PAGER GDataGDPhoneNumber; GDataGDPhoneNumberClass; GDataGDPhoneNumber * gdata_gd_phone_number_new (const gchar *number
,const gchar *relation_type
,const gchar *label
,const gchar *uri
,gboolean is_primary
); const gchar * gdata_gd_phone_number_get_number (GDataGDPhoneNumber *self
); void gdata_gd_phone_number_set_number (GDataGDPhoneNumber *self
,const gchar *number
); const gchar * gdata_gd_phone_number_get_uri (GDataGDPhoneNumber *self
); void gdata_gd_phone_number_set_uri (GDataGDPhoneNumber *self
,const gchar *uri
); const gchar * gdata_gd_phone_number_get_relation_type (GDataGDPhoneNumber *self
); void gdata_gd_phone_number_set_relation_type (GDataGDPhoneNumber *self
,const gchar *relation_type
); const gchar * gdata_gd_phone_number_get_label (GDataGDPhoneNumber *self
); void gdata_gd_phone_number_set_label (GDataGDPhoneNumber *self
,const gchar *label
); gboolean gdata_gd_phone_number_is_primary (GDataGDPhoneNumber *self
); void gdata_gd_phone_number_set_is_primary (GDataGDPhoneNumber *self
,gboolean is_primary
);
"is-primary" gboolean : Read / Write "label" gchar* : Read / Write "number" gchar* : Read / Write "relation-type" gchar* : Read / Write "uri" gchar* : Read / Write
#define GDATA_GD_PHONE_NUMBER_ASSISTANT "http://schemas.google.com/g/2005#assistant"
The relation type URI for the phone number of an assistant.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_CALLBACK "http://schemas.google.com/g/2005#callback"
The relation type URI for the phone number of a callback service.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_CAR "http://schemas.google.com/g/2005#car"
The relation type URI for the phone number of a car phone.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_COMPANY_MAIN "http://schemas.google.com/g/2005#company_main"
The relation type URI for the main phone number of a company.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_FAX "http://schemas.google.com/g/2005#fax"
The relation type URI for the phone number of a fax machine.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_HOME "http://schemas.google.com/g/2005#home"
The relation type URI for a home phone number.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_HOME_FAX "http://schemas.google.com/g/2005#home_fax"
The relation type URI for the phone number of a home fax machine.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_ISDN "http://schemas.google.com/g/2005#isdn"
The relation type URI for the phone number of an ISDN phone.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_MAIN "http://schemas.google.com/g/2005#main"
The relation type URI for the main phone number of a person.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_MOBILE "http://schemas.google.com/g/2005#mobile"
The relation type URI for the phone number of a mobile phone.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_OTHER "http://schemas.google.com/g/2005#other"
The relation type URI for a miscellaneous phone number.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_OTHER_FAX "http://schemas.google.com/g/2005#other_fax"
The relation type URI for a miscellaneous fax machine's phone number.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_PAGER "http://schemas.google.com/g/2005#pager"
The relation type URI for the phone number of a pager.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_RADIO "http://schemas.google.com/g/2005#radio"
The relation type URI for the phone number of a radio phone.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_TELEX "http://schemas.google.com/g/2005#telex"
The relation type URI for the phone number of a telex machine.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_TTY_TDD "http://schemas.google.com/g/2005#tty_tdd"
The relation type URI for the phone number of a TTY TTD.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_WORK "http://schemas.google.com/g/2005#work"
The relation type URI for the phone number of a work place.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_WORK_FAX "http://schemas.google.com/g/2005#work_fax"
The relation type URI for the phone number of a work fax machine.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_WORK_MOBILE "http://schemas.google.com/g/2005#work_mobile"
The relation type URI for the phone number of a work mobile phone.
Since 0.7.0
#define GDATA_GD_PHONE_NUMBER_WORK_PAGER "http://schemas.google.com/g/2005#work_pager"
The relation type URI for the phone number of a work pager.
Since 0.7.0
typedef struct _GDataGDPhoneNumber GDataGDPhoneNumber;
All the fields in the GDataGDPhoneNumber structure are private and should never be accessed directly.
Since 0.2.0
typedef struct { } GDataGDPhoneNumberClass;
All the fields in the GDataGDPhoneNumberClass structure are private and should never be accessed directly.
Since 0.4.0
GDataGDPhoneNumber * gdata_gd_phone_number_new (const gchar *number
,const gchar *relation_type
,const gchar *label
,const gchar *uri
,gboolean is_primary
);
Creates a new GDataGDPhoneNumber. More information is available in the GData specification.
|
the phone number, in human-readable format |
|
the relationship between the phone number and its owner, or NULL . [allow-none]
|
|
a human-readable label for the phone number, or NULL . [allow-none]
|
|
a "tel URI" to represent the number formally (see
RFC 3966), or NULL . [allow-none]
|
|
TRUE if this phone number is its owner's primary number, FALSE otherwise |
Returns : |
a new GDataGDPhoneNumber, or NULL ; unref with g_object_unref()
|
Since 0.2.0
const gchar * gdata_gd_phone_number_get_number (GDataGDPhoneNumber *self
);
Gets the "number" property.
|
a GDataGDPhoneNumber |
Returns : |
the phone number itself |
Since 0.4.0
void gdata_gd_phone_number_set_number (GDataGDPhoneNumber *self
,const gchar *number
);
Sets the "number" property to number
.
|
a GDataGDPhoneNumber |
|
the new phone number |
Since 0.4.0
const gchar * gdata_gd_phone_number_get_uri (GDataGDPhoneNumber *self
);
Gets the "uri" property.
|
a GDataGDPhoneNumber |
Returns : |
the phone number's URI, or NULL
|
Since 0.4.0
void gdata_gd_phone_number_set_uri (GDataGDPhoneNumber *self
,const gchar *uri
);
Sets the "uri" property to uri
.
Set uri
to NULL
to unset the property in the phone number.
|
a GDataGDPhoneNumber |
|
the new URI for the phone number, or NULL . [allow-none]
|
Since 0.4.0
const gchar * gdata_gd_phone_number_get_relation_type
(GDataGDPhoneNumber *self
);
Gets the "relation-type" property.
|
a GDataGDPhoneNumber |
Returns : |
the phone number's relation type, or NULL
|
Since 0.4.0
void gdata_gd_phone_number_set_relation_type (GDataGDPhoneNumber *self
,const gchar *relation_type
);
Sets the "relation-type" property to relation_type
.
Set relation_type
to NULL
to unset the property in the phone number.
|
a GDataGDPhoneNumber |
|
the new relation type for the phone number, or NULL . [allow-none]
|
Since 0.4.0
const gchar * gdata_gd_phone_number_get_label (GDataGDPhoneNumber *self
);
Gets the "label" property.
|
a GDataGDPhoneNumber |
Returns : |
the phone number's label, or NULL
|
Since 0.4.0
void gdata_gd_phone_number_set_label (GDataGDPhoneNumber *self
,const gchar *label
);
Sets the "label" property to label
.
Set label
to NULL
to unset the property in the phone number.
|
a GDataGDPhoneNumber |
|
the new label for the phone number, or NULL . [allow-none]
|
Since 0.4.0
gboolean gdata_gd_phone_number_is_primary (GDataGDPhoneNumber *self
);
Gets the "is-primary" property.
|
a GDataGDPhoneNumber |
Returns : |
TRUE if this is the primary phone number, FALSE otherwise |
Since 0.4.0
void gdata_gd_phone_number_set_is_primary (GDataGDPhoneNumber *self
,gboolean is_primary
);
Sets the "is-primary" property to is_primary
.
|
a GDataGDPhoneNumber |
|
TRUE if this is the primary phone number, FALSE otherwise |
Since 0.4.0
"is-primary"
property"is-primary" gboolean : Read / Write
Indicates which phone number 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 phone number. It allows UIs to display a label such as "Mobile", "Home", "Work", etc.
For more information, see the GData specification.
Default value: NULL
Since 0.4.0
"number"
property"number" gchar* : Read / Write
Human-readable phone number; may be in any telephone number format.
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 phone number. For example: GDATA_GD_PHONE_NUMBER_WORK
or GDATA_GD_PHONE_NUMBER_PAGER
.
For more information, see the GData specification.
Default value: NULL
Since 0.4.0
"uri"
property"uri" gchar* : Read / Write
An optional "tel URI" used to represent the number in a formal way. Useful for programmatic access, such as a VoIP/PSTN bridge.
For more information, see the GData specification.
Default value: NULL
Since 0.4.0