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.GDEmailAddress
structure 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 (
str
orNone
) – the relationship between the e-mail address and its owner, orNone
label (
str
orNone
) – a human-readable label for the e-mail address, orNone
is_primary (
bool
) –True
if this e-mail address is its owner’s primary address,False
otherwise
- 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
:address
property.New in version 0.4.0.
- get_display_name()¶
-
Gets the
GData.GDEmailAddress
:display-name
property.New in version 0.6.0.
- get_label()¶
-
Gets the
GData.GDEmailAddress
:label
property.New in version 0.4.0.
- get_relation_type()¶
-
Gets the
GData.GDEmailAddress
:relation-type
property.New in version 0.4.0.
- is_primary()¶
-
Gets the
GData.GDEmailAddress
:is-primary
property.New in version 0.4.0.
- set_address(address)¶
- Parameters:
address (
str
) – the new e-mail address
Sets the
GData.GDEmailAddress
:address
property to address.New in version 0.4.0.
- set_display_name(display_name)¶
-
Sets the
GData.GDEmailAddress
:display-name
property to display_name.Set display_name to
None
to unset the property in the e-mail address.New in version 0.6.0.
- set_is_primary(is_primary)¶
-
Sets the
GData.GDEmailAddress
:is-primary
property to is_primary.New in version 0.4.0.
- set_label(label)¶
-
Sets the
GData.GDEmailAddress
:label
property to label.Set label to
None
to unset the property in the e-mail address.New in version 0.4.0.
- set_relation_type(relation_type)¶
-
Sets the
GData.GDEmailAddress
:relation-type
property to relation_type.Set relation_type to
None
to 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_HOME
orGData.GD_EMAIL_ADDRESS_WORK
.For more information, see the
New in version 0.4.0.