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.GDPhoneNumber
structure 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 (
str
orNone
) – the relationship between the phone number and its owner, orNone
label (
str
orNone
) – a human-readable label for the phone number, orNone
a “tel URI” to represent the number formally (see
is_primary (
bool
) –True
if this phone number is its owner’s primary number,False
otherwise
- 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
:label
property.New in version 0.4.0.
- get_number()¶
- Returns:
the phone number itself
- Return type:
Gets the
GData.GDPhoneNumber
:number
property.New in version 0.4.0.
- get_relation_type()¶
-
Gets the
GData.GDPhoneNumber
:relation-type
property.New in version 0.4.0.
- get_uri()¶
-
Gets the
GData.GDPhoneNumber
:uri
property.New in version 0.4.0.
- is_primary()¶
-
Gets the
GData.GDPhoneNumber
:is-primary
property.New in version 0.4.0.
- set_is_primary(is_primary)¶
-
Sets the
GData.GDPhoneNumber
:is-primary
property to is_primary.New in version 0.4.0.
- set_label(label)¶
-
Sets the
GData.GDPhoneNumber
:label
property to label.Set label to
None
to 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
:number
property to number.New in version 0.4.0.
- set_relation_type(relation_type)¶
-
Sets the
GData.GDPhoneNumber
:relation-type
property to relation_type.Set relation_type to
None
to 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_WORK
orGData.GD_PHONE_NUMBER_PAGER
.For more information, see the
New in version 0.4.0.