GData.GContactEvent¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The date of the event. |
||
r/w |
A simple string value used to name this event. |
||
r/w |
A programmatic value that identifies the type of website. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.GContactEvent(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.GContactEvent
structure are private and should never be accessed directly.New in version 0.7.0.
- classmethod new(date, relation_type, label)¶
- Parameters:
- Returns:
a new
GData.GContactEvent
; unref withGObject.Object.unref
()- Return type:
Creates a new
GData.GContactEvent
. 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_date()¶
- Returns:
return location for the date of the event
- Return type:
date:
GLib.Date
Gets the
GData.GContactEvent
:date
property.New in version 0.7.0.
- get_label()¶
-
Gets the
GData.GContactEvent
:label
property.New in version 0.7.0.
- get_relation_type()¶
-
Gets the
GData.GContactEvent
:relation-type
property.New in version 0.7.0.
- set_date(date)¶
- Parameters:
date (
GLib.Date
) – the new date for the event
Sets the
GData.GContactEvent
:date
property to date.New in version 0.7.0.
- set_label(label)¶
-
Sets the
GData.GContactEvent
:label
property to label.If label is
None
, the label will be unset. When theGData.GContactEvent
is used in a query, however, exactly one ofGData.GContactEvent
:relation-type
andGData.GContactEvent
:label
must beNone
.New in version 0.7.0.
- set_relation_type(relation_type)¶
-
Sets the
GData.GContactEvent
:relation-type
property to relation_type such asGData.GCONTACT_EVENT_ANNIVERSARY
orGData.GCONTACT_EVENT_OTHER
.If relation_type is
None
, the relation type will be unset. When theGData.GContactEvent
is used in a query, however, exactly one ofGData.GContactEvent
:relation-type
andGData.GContactEvent
:label
must beNone
.New in version 0.7.0.
Property Details¶
- GData.GContactEvent.props.date¶
-
The date of the event.
For more information, see the
New in version 0.7.0.
- GData.GContactEvent.props.label¶
-
A simple string value used to name this event. It is mutually exclusive with
GData.GContactEvent
:relation-type
. It allows UIs to display a label such as “Wedding anniversary”.For more information, see the
New in version 0.7.0.
- GData.GContactEvent.props.relation_type¶
-
A programmatic value that identifies the type of event. It is mutually exclusive with
GData.GContactEvent
:label
. Examples areGData.GCONTACT_EVENT_ANNIVERSARY
orGData.GCONTACT_EVENT_OTHER
.For more information, see the
New in version 0.7.0.