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.GContactRelationstructure 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:labelproperty.New in version 0.7.0.
- get_name()¶
- Returns:
the relation’s name
- Return type:
Gets the
GData.GContactRelation:nameproperty.New in version 0.7.0.
- get_relation_type()¶
-
Gets the
GData.GContactRelation:relation-typeproperty.New in version 0.7.0.
- set_label(label)¶
-
Sets the
GData.GContactRelation:labelproperty to label.If label is
None, the label will be unset. When theGData.GContactRelationis used in a query, however, exactly one ofGData.GContactRelation:relation-typeandGData.GContactRelation:labelmust beNone.New in version 0.7.0.
- set_name(name)¶
-
Sets the
GData.GContactRelation:nameproperty to name.New in version 0.7.0.
- set_relation_type(relation_type)¶
-
Sets the
GData.GContactRelation:relation-typeproperty to relation_type, such asGData.GCONTACT_RELATION_MANAGERorGData.GCONTACT_RELATION_CHILD.If relation_type is
None, the relation type will be unset. When theGData.GContactRelationis used in a query, however, exactly one ofGData.GContactRelation:relation-typeandGData.GContactRelation:labelmust 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_MANAGERorGData.GCONTACT_RELATION_CHILD.For more information, see the
New in version 0.7.0.