GData.GDEmailAddress¶
- 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 |
The e-mail address itself. |
||
r/w |
A display name of the entity the e-mail address belongs to. |
||
r/w |
Indicates which e-mail address out of a group is primary. |
||
r/w |
A simple string value used to name this e-mail address. |
||
r/w |
A programmatic value that identifies the type of e-mail address. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GData.GDEmailAddress(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.GDEmailAddressstructure are private and should never be accessed directly.New in version 0.2.0.
- classmethod new(address, relation_type, label, is_primary)¶
- Parameters:
address (
str) – the e-mail addressrelation_type (
strorNone) – the relationship between the e-mail address and its owner, orNonelabel (
strorNone) – a human-readable label for the e-mail address, orNoneis_primary (
bool) –Trueif this e-mail address is its owner’s primary address,Falseotherwise
- Returns:
a new
GData.GDEmailAddress, orNone; unref withGObject.Object.unref()- Return type:
Creates a new
GData.GDEmailAddress. More information is available in the GData specification.New in version 0.2.0.
- get_address()¶
-
Gets the
GData.GDEmailAddress:addressproperty.New in version 0.4.0.
- get_display_name()¶
-
Gets the
GData.GDEmailAddress:display-nameproperty.New in version 0.6.0.
- get_label()¶
-
Gets the
GData.GDEmailAddress:labelproperty.New in version 0.4.0.
- get_relation_type()¶
-
Gets the
GData.GDEmailAddress:relation-typeproperty.New in version 0.4.0.
- is_primary()¶
-
Gets the
GData.GDEmailAddress:is-primaryproperty.New in version 0.4.0.
- set_address(address)¶
- Parameters:
address (
str) – the new e-mail address
Sets the
GData.GDEmailAddress:addressproperty to address.New in version 0.4.0.
- set_display_name(display_name)¶
-
Sets the
GData.GDEmailAddress:display-nameproperty to display_name.Set display_name to
Noneto unset the property in the e-mail address.New in version 0.6.0.
- set_is_primary(is_primary)¶
-
Sets the
GData.GDEmailAddress:is-primaryproperty to is_primary.New in version 0.4.0.
- set_label(label)¶
-
Sets the
GData.GDEmailAddress:labelproperty to label.Set label to
Noneto unset the property in the e-mail address.New in version 0.4.0.
- set_relation_type(relation_type)¶
-
Sets the
GData.GDEmailAddress:relation-typeproperty to relation_type.Set relation_type to
Noneto unset the property in the e-mail address.New in version 0.4.0.
Property Details¶
- GData.GDEmailAddress.props.address¶
-
The e-mail address itself.
For more information, see the
New in version 0.4.0.
- GData.GDEmailAddress.props.display_name¶
-
A display name of the entity (e.g. a person) the e-mail address belongs to.
For more information, see the
New in version 0.6.0.
- GData.GDEmailAddress.props.is_primary¶
-
Indicates which e-mail address out of a group is primary.
For more information, see the
New in version 0.4.0.
- GData.GDEmailAddress.props.label¶
-
A simple string value used to name this e-mail address. It allows UIs to display a label such as “Work”, “Personal”, “Preferred”, etc.
For more information, see the
New in version 0.4.0.
- GData.GDEmailAddress.props.relation_type¶
-
A programmatic value that identifies the type of e-mail address. For example:
GData.GD_EMAIL_ADDRESS_HOMEorGData.GD_EMAIL_ADDRESS_WORK.For more information, see the
New in version 0.4.0.