GData.GDIMAddress¶
- 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 IM address itself. |
||
r/w |
Indicates which IM address out of a group is primary. |
||
r/w |
A simple string value used to name this IM address. |
||
r/w |
Identifies the IM network. |
||
r/w |
A programmatic value that identifies the type of IM address. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.GDIMAddress(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.GDIMAddress
structure are private and should never be accessed directly.New in version 0.2.0.
- classmethod new(address, protocol, relation_type, label, is_primary)¶
- Parameters:
address (
str
) – the IM addressprotocol (
str
orNone
) – a URI identifying the IM protocol, orNone
relation_type (
str
orNone
) – the relationship between the IM address and its owner, orNone
label (
str
orNone
) – a human-readable label for the IM address, orNone
is_primary (
bool
) –True
if this IM address is its owner’s primary address,False
otherwise
- Returns:
a new
GData.GDIMAddress
, orNone
; unref withGObject.Object.unref
()- Return type:
Creates a new
GData.GDIMAddress
. More information is available in the GData specification.New in version 0.2.0.
- get_address()¶
-
Gets the
GData.GDIMAddress
:address
property.New in version 0.4.0.
- get_label()¶
-
Gets the
GData.GDIMAddress
:label
property.New in version 0.4.0.
- get_protocol()¶
-
Gets the
GData.GDIMAddress
:protocol
property.New in version 0.4.0.
- get_relation_type()¶
-
Gets the
GData.GDIMAddress
:relation-type
property.New in version 0.4.0.
- is_primary()¶
-
Gets the
GData.GDIMAddress
:is-primary
property.New in version 0.4.0.
- set_address(address)¶
- Parameters:
address (
str
) – the new IM address
Sets the
GData.GDIMAddress
:address
property to address.New in version 0.4.0.
- set_is_primary(is_primary)¶
-
Sets the
GData.GDIMAddress
:is-primary
property to is_primary.New in version 0.4.0.
- set_label(label)¶
-
Sets the
GData.GDIMAddress
:label
property to label.Set label to
None
to unset the property in the IM address.New in version 0.4.0.
- set_protocol(protocol)¶
-
Sets the
GData.GDIMAddress
:protocol
property to protocol.New in version 0.4.0.
- set_relation_type(relation_type)¶
-
Sets the
GData.GDIMAddress
:relation-type
property to relation_type.Set relation_type to
None
to unset the property in the IM address.New in version 0.4.0.
Property Details¶
- GData.GDIMAddress.props.address¶
-
The IM address itself.
For more information, see the
New in version 0.4.0.
- GData.GDIMAddress.props.is_primary¶
-
Indicates which IM address out of a group is primary.
For more information, see the
New in version 0.4.0.
- GData.GDIMAddress.props.label¶
-
A simple string value used to name this IM 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.GDIMAddress.props.protocol¶
-
Identifies the IM network. For example:
GData.GD_IM_PROTOCOL_JABBER
orGData.GD_IM_PROTOCOL_GOOGLE_TALK
.For more information, see the
New in version 0.4.0.
- GData.GDIMAddress.props.relation_type¶
-
A programmatic value that identifies the type of IM address. For example:
GData.GD_IM_ADDRESS_HOME
orGData.GD_IM_ADDRESS_WORK
.For more information, see the
New in version 0.4.0.