GData.GContactRelation¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
A free-form string that identifies the type of relation. |
||
r/w |
The name of the relation. |
||
r/w |
A programmatic value that identifies the type of relation. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.GContactRelation(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.GContactRelation
structure are private and should never be accessed directly.New in version 0.7.0.
- classmethod new(name, relation_type, label)¶
- Parameters:
- Returns:
a new
GData.GContactRelation
; unref withGObject.Object.unref
()- Return type:
Creates a new
GData.GContactRelation
. More information is available in the gContact specification.Exactly one of relation_type and label should be provided; the other must be
None
.New in version 0.7.0.
- get_label()¶
-
Gets the
GData.GContactRelation
:label
property.New in version 0.7.0.
- get_name()¶
- Returns:
the relation’s name
- Return type:
Gets the
GData.GContactRelation
:name
property.New in version 0.7.0.
- get_relation_type()¶
-
Gets the
GData.GContactRelation
:relation-type
property.New in version 0.7.0.
- set_label(label)¶
-
Sets the
GData.GContactRelation
:label
property to label.If label is
None
, the label will be unset. When theGData.GContactRelation
is used in a query, however, exactly one ofGData.GContactRelation
:relation-type
andGData.GContactRelation
:label
must beNone
.New in version 0.7.0.
- set_name(name)¶
-
Sets the
GData.GContactRelation
:name
property to name.New in version 0.7.0.
- set_relation_type(relation_type)¶
-
Sets the
GData.GContactRelation
:relation-type
property to relation_type, such asGData.GCONTACT_RELATION_MANAGER
orGData.GCONTACT_RELATION_CHILD
.If relation_type is
None
, the relation type will be unset. When theGData.GContactRelation
is used in a query, however, exactly one ofGData.GContactRelation
:relation-type
andGData.GContactRelation
:label
must beNone
.New in version 0.7.0.
Property Details¶
- GData.GContactRelation.props.label¶
-
A free-form string that identifies the type of relation. It is mutually exclusive with
GData.GContactRelation
:relation-type
.For more information, see the
New in version 0.7.0.
- GData.GContactRelation.props.name¶
-
The name of the relation. It need not be a full name, and there need not be a contact representing the name.
For more information, see the
New in version 0.7.0.
- GData.GContactRelation.props.relation_type¶
-
A programmatic value that identifies the type of relation. It is mutually exclusive with
GData.GContactRelation
:label
. Examples areGData.GCONTACT_RELATION_MANAGER
orGData.GCONTACT_RELATION_CHILD
.For more information, see the
New in version 0.7.0.