GData.GDPhoneNumber¶
- Subclasses:
None
Methods¶
- Inherited:
GData.Parsable (5), GObject.Object (37), GData.Comparable (1)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
GData.Parsable (9), GObject.Object (7), GData.Comparable (1)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Indicates which phone number out of a group is primary. |
||
r/w |
A simple string value used to name this phone number. |
||
r/w |
Human-readable phone number; may be in any telephone number format. |
||
r/w |
A programmatic value that identifies the type of phone number. |
||
r/w |
An optional “tel URI” used to represent the number in a formal way. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GData.GDPhoneNumber(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.GDPhoneNumberstructure are private and should never be accessed directly.New in version 0.2.0.
- classmethod new(number, relation_type, label, uri, is_primary)¶
- Parameters:
number (
str) – the phone number, in human-readable formatrelation_type (
strorNone) – the relationship between the phone number and its owner, orNonelabel (
strorNone) – a human-readable label for the phone number, orNonea “tel URI” to represent the number formally (see
is_primary (
bool) –Trueif this phone number is its owner’s primary number,Falseotherwise
- Returns:
a new
GData.GDPhoneNumber, orNone; unref withGObject.Object.unref()- Return type:
Creates a new
GData.GDPhoneNumber. More information is available in the GData specification.New in version 0.2.0.
- get_label()¶
-
Gets the
GData.GDPhoneNumber:labelproperty.New in version 0.4.0.
- get_number()¶
- Returns:
the phone number itself
- Return type:
Gets the
GData.GDPhoneNumber:numberproperty.New in version 0.4.0.
- get_relation_type()¶
-
Gets the
GData.GDPhoneNumber:relation-typeproperty.New in version 0.4.0.
- get_uri()¶
-
Gets the
GData.GDPhoneNumber:uriproperty.New in version 0.4.0.
- is_primary()¶
-
Gets the
GData.GDPhoneNumber:is-primaryproperty.New in version 0.4.0.
- set_is_primary(is_primary)¶
-
Sets the
GData.GDPhoneNumber:is-primaryproperty to is_primary.New in version 0.4.0.
- set_label(label)¶
-
Sets the
GData.GDPhoneNumber:labelproperty to label.Set label to
Noneto unset the property in the phone number.New in version 0.4.0.
- set_number(number)¶
- Parameters:
number (
str) – the new phone number
Sets the
GData.GDPhoneNumber:numberproperty to number.New in version 0.4.0.
- set_relation_type(relation_type)¶
-
Sets the
GData.GDPhoneNumber:relation-typeproperty to relation_type.Set relation_type to
Noneto unset the property in the phone number.New in version 0.4.0.
Property Details¶
- GData.GDPhoneNumber.props.is_primary¶
-
Indicates which phone number out of a group is primary.
For more information, see the
New in version 0.4.0.
- GData.GDPhoneNumber.props.label¶
-
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
New in version 0.4.0.
- GData.GDPhoneNumber.props.number¶
-
Human-readable phone number; may be in any telephone number format.
For more information, see the
New in version 0.4.0.
- GData.GDPhoneNumber.props.relation_type¶
-
A programmatic value that identifies the type of phone number. For example:
GData.GD_PHONE_NUMBER_WORKorGData.GD_PHONE_NUMBER_PAGER.For more information, see the
New in version 0.4.0.