GData.CalendarEvent¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Indicates whether anyone can invite themselves to the event. |
||
r |
The last time the event was edited. |
||
r/w |
Indicates whether attendees may invite others. |
||
r/w |
Indicates whether attendees may modify the original event. |
||
r/w |
Indicates whether attendees can see other people invited. |
||
r |
The event ID for the original event. |
||
r |
The event URI for the original event. |
||
r/w |
Represents the dates and times when a recurring event takes place. |
||
r/w |
The revision sequence number of the event. |
||
r/w |
The scheduling status of the event. |
||
r/w |
How the event is marked as consuming time on a calendar. |
||
r/w |
The globally unique identifier (UID) of the event. |
||
r/w |
The event’s visibility to calendar users. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GData.CalendarEvent(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.CalendarEventstructure are private and should never be accessed directly.- classmethod new(id)¶
- Parameters:
- Returns:
a new
GData.CalendarEvent; unref withGObject.Object.unref()- Return type:
Creates a new
GData.CalendarEventwith the given ID and default properties.
- add_person(who)¶
- Parameters:
who (
GData.GDWho) – aGData.GDWhoto add
Adds the person who to the event as a guest (attendee, organiser, performer, etc.), and increments its reference count.
Duplicate people will not be added to the list.
- add_place(where)¶
- Parameters:
where (
GData.GDWhere) – aGData.GDWhereto add
Adds the place where to the event as a location and increments its reference count.
Duplicate places will not be added to the list.
- add_time(when)¶
- Parameters:
when (
GData.GDWhen) – aGData.GDWhento add
Adds when to the event as a time period when the event happens, and increments its reference count.
Duplicate times will not be added to the list.
Note:
GData.CalendarEvent.add_time() andGData.CalendarEvent.set_recurrence() are mutually exclusive, as the server doesn’t support positive exceptions to recurrence rules. If recurrences are required, useGData.CalendarEvent.set_recurrence(). Note that this means reminders cannot be set for the event, as they are only supported byGData.GDWhen. No checks are performed for these forbidden conditions, as to do so would break libgdata’s API; if both a recurrence is set and a specific time is added, the server will return an error when theGData.CalendarEventis inserted usingGData.Service.insert_entry().New in version 0.2.0.
- get_anyone_can_add_self()¶
- Returns:
Trueif anyone can add themselves as an attendee to the event,Falseotherwise- Return type:
Gets the
GData.CalendarEvent:anyone-can-add-selfproperty.
- get_edited()¶
- Returns:
the UNIX timestamp for the time the event was last edited, or -1
- Return type:
Gets the
GData.CalendarEvent:editedproperty. If the property is unset, -1 will be returned.
- get_guests_can_invite_others()¶
-
Gets the
GData.CalendarEvent:guests-can-invite-othersproperty.
- get_guests_can_modify()¶
-
Gets the
GData.CalendarEvent:guests-can-modifyproperty.
- get_guests_can_see_guests()¶
-
Gets the
GData.CalendarEvent:guests-can-see-guestsproperty.
- get_original_event_details()¶
- Returns:
- Return type:
Gets details of the original event, if this event is an exception to a recurring event. The original event’s ID and the URI of the event’s XML are returned in event_id and event_uri, respectively.
If this event is not an exception to a recurring event, event_id and event_uri will be set to
None. SeeGData.CalendarEvent.is_exception() to determine more simply whether an event is an exception to a recurring event.If both event_id and event_uri are
None, this function is a no-op. Otherwise, they should both be freed withGLib.free().New in version 0.3.0.
- get_people()¶
- Returns:
a
GLib.ListofGData.GDWhos, orNone- Return type:
Gets a list of the people attending the event.
New in version 0.2.0.
- get_places()¶
- Returns:
a
GLib.ListofGData.GDWheres, orNone- Return type:
Gets a list of the locations associated with the event.
New in version 0.2.0.
- get_primary_time()¶
- Returns:
Trueif there is only one time period associated with the event,Falseotherwise- start_time:
a #gint64 for the start time, or
None- end_time:
a #gint64 for the end time, or
None- when:
a
GData.GDWhenfor the primary time structure, orNone
- Return type:
(
bool, start_time:int, end_time:int, when:GData.GDWhen)
Gets the first time period associated with the event, conveniently returning just its start and end times if required.
If there are no time periods, or more than one time period, associated with the event,
Falsewill be returned, and the parameters will remain unmodified.New in version 0.2.0.
- get_recurrence()¶
-
Gets the
GData.CalendarEvent:recurrenceproperty.New in version 0.3.0.
- get_sequence()¶
- Returns:
the event’s sequence number
- Return type:
Gets the
GData.CalendarEvent:sequenceproperty.
- get_status()¶
-
Gets the
GData.CalendarEvent:statusproperty.New in version 0.2.0.
- get_times()¶
- Returns:
a
GLib.ListofGData.GDWhens, orNone- Return type:
Gets a list of the time periods associated with the event.
New in version 0.2.0.
- get_transparency()¶
-
Gets the
GData.CalendarEvent:transparencyproperty.
- get_uid()¶
-
Gets the
GData.CalendarEvent:uidproperty.
- get_visibility()¶
-
Gets the
GData.CalendarEvent:visibilityproperty.
- is_exception()¶
-
Determines whether the event is an exception to a recurring event. If it is, details of the original event can be retrieved using
GData.CalendarEvent.get_original_event_details().New in version 0.3.0.
- set_anyone_can_add_self(anyone_can_add_self)¶
- Parameters:
anyone_can_add_self (
bool) –Trueif anyone can add themselves as an attendee to the event,Falseotherwise
Sets the
GData.CalendarEvent:anyone-can-add-selfproperty to anyone_can_add_self.
- set_guests_can_invite_others(guests_can_invite_others)¶
- Parameters:
guests_can_invite_others (
bool) –Trueif attendees can invite others to the event,Falseotherwise
Sets the
GData.CalendarEvent:guests-can-invite-othersproperty to guests_can_invite_others.
- set_guests_can_modify(guests_can_modify)¶
- Parameters:
guests_can_modify (
bool) –Trueif attendees can modify the original event,Falseotherwise
Sets the
GData.CalendarEvent:guests-can-modifyproperty to guests_can_modify.
- set_guests_can_see_guests(guests_can_see_guests)¶
- Parameters:
guests_can_see_guests (
bool) –Trueif attendees can see who’s attending the event,Falseotherwise
Sets the
GData.CalendarEvent:guests-can-see-guestsproperty to guests_can_see_guests.
- set_recurrence(recurrence)¶
-
Sets the
GData.CalendarEvent:recurrenceproperty to the new recurrence, recurrence.Set recurrence to
Noneto unset the property in the event.Note:
GData.CalendarEvent.add_time() andGData.CalendarEvent.set_recurrence() are mutually exclusive. See the documentation forGData.CalendarEvent.add_time() for details.New in version 0.3.0.
- set_sequence(sequence)¶
- Parameters:
sequence (
int) – a new sequence number, or 0
Sets the
GData.CalendarEvent:sequenceproperty to the new sequence number, sequence.
- set_status(status)¶
-
Sets the
GData.CalendarEvent:statusproperty to the new status, status.Set status to
Noneto unset the property in the event.New in version 0.2.0.
- set_transparency(transparency)¶
-
Sets the
GData.CalendarEvent:transparencyproperty to the new transparency, transparency.Set transparency to
Noneto unset the property in the event.
- set_uid(uid)¶
-
Sets the
GData.CalendarEvent:uidproperty to the new UID, uid.Set uid to
Noneto unset the property in the event.
- set_visibility(visibility)¶
-
Sets the
GData.CalendarEvent:visibilityproperty to the new visibility, visibility.Set visibility to
Noneto unset the property in the event.
Property Details¶
- GData.CalendarEvent.props.anyone_can_add_self¶
-
Indicates whether anyone can invite themselves to the event, by adding themselves to the attendee list.
- GData.CalendarEvent.props.edited¶
-
The last time the event was edited. If the event has not been edited yet, the content indicates the time it was created.
For more information, see the Atom Publishing Protocol specification.
- GData.CalendarEvent.props.guests_can_invite_others¶
-
Indicates whether attendees may invite others to the event.
For more information, see the GData specification.
- GData.CalendarEvent.props.guests_can_modify¶
-
Indicates whether attendees may modify the original event, so that changes are visible to organizers and other attendees. Otherwise, any changes made by attendees will be restricted to that attendee’s calendar.
For more information, see the
- GData.CalendarEvent.props.guests_can_see_guests¶
-
Indicates whether attendees can see other people invited to the event.
For more information, see the
- GData.CalendarEvent.props.original_event_id¶
-
The event ID for the original event, if this event is an exception to a recurring event.
New in version 0.3.0.
- GData.CalendarEvent.props.original_event_uri¶
-
The event URI for the original event, if this event is an exception to a recurring event.
New in version 0.3.0.
- GData.CalendarEvent.props.recurrence¶
-
Represents the dates and times when a recurring event takes place. The returned string is in iCal format, as a list of properties.
For more information, see the GData specification.
Note:
GData.CalendarEvent.add_time() andGData.CalendarEvent.set_recurrence() are mutually exclusive. See the documentation forGData.CalendarEvent.add_time() for details.New in version 0.3.0.
- GData.CalendarEvent.props.sequence¶
-
The revision sequence number of the event as defined in Section 4.8.7.4 of RFC 2445.
- GData.CalendarEvent.props.status¶
-
The scheduling status of the event. For example:
GData.GD_EVENT_STATUS_CANCELEDorGData.GD_EVENT_STATUS_CONFIRMED.For more information, see the GData specification.
New in version 0.2.0.
- GData.CalendarEvent.props.transparency¶
-
How the event is marked as consuming time on a calendar. For example:
GData.GD_EVENT_TRANSPARENCY_OPAQUEorGData.GD_EVENT_TRANSPARENCY_TRANSPARENT.For more information, see the GData specification.
- GData.CalendarEvent.props.uid¶
-
The globally unique identifier (UID) of the event as defined in Section 4.8.4.7 of RFC 2445.
- GData.CalendarEvent.props.visibility¶
-
The event’s visibility to calendar users. For example:
GData.GD_EVENT_VISIBILITY_PUBLICorGData.GD_EVENT_VISIBILITY_DEFAULT.For more information, see the GData specification.