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.CalendarEvent
structure 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.CalendarEvent
with the given ID and default properties.
- add_person(who)¶
- Parameters:
who (
GData.GDWho
) – aGData.GDWho
to 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.GDWhere
to 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.GDWhen
to 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.CalendarEvent
is inserted usingGData.Service.insert_entry
().New in version 0.2.0.
- get_anyone_can_add_self()¶
- Returns:
True
if anyone can add themselves as an attendee to the event,False
otherwise- Return type:
Gets the
GData.CalendarEvent
:anyone-can-add-self
property.
- get_edited()¶
- Returns:
the UNIX timestamp for the time the event was last edited, or -1
- Return type:
Gets the
GData.CalendarEvent
:edited
property. If the property is unset, -1 will be returned.
- get_guests_can_invite_others()¶
-
Gets the
GData.CalendarEvent
:guests-can-invite-others
property.
- get_guests_can_modify()¶
-
Gets the
GData.CalendarEvent
:guests-can-modify
property.
- get_guests_can_see_guests()¶
-
Gets the
GData.CalendarEvent
:guests-can-see-guests
property.
- 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.List
ofGData.GDWhos
, orNone
- Return type:
Gets a list of the people attending the event.
New in version 0.2.0.
- get_places()¶
- Returns:
a
GLib.List
ofGData.GDWheres
, orNone
- Return type:
Gets a list of the locations associated with the event.
New in version 0.2.0.
- get_primary_time()¶
- Returns:
True
if there is only one time period associated with the event,False
otherwise- start_time:
a #gint64 for the start time, or
None
- end_time:
a #gint64 for the end time, or
None
- when:
a
GData.GDWhen
for 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,
False
will be returned, and the parameters will remain unmodified.New in version 0.2.0.
- get_recurrence()¶
-
Gets the
GData.CalendarEvent
:recurrence
property.New in version 0.3.0.
- get_sequence()¶
- Returns:
the event’s sequence number
- Return type:
Gets the
GData.CalendarEvent
:sequence
property.
- get_status()¶
-
Gets the
GData.CalendarEvent
:status
property.New in version 0.2.0.
- get_times()¶
- Returns:
a
GLib.List
ofGData.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
:transparency
property.
- get_uid()¶
-
Gets the
GData.CalendarEvent
:uid
property.
- get_visibility()¶
-
Gets the
GData.CalendarEvent
:visibility
property.
- 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
) –True
if anyone can add themselves as an attendee to the event,False
otherwise
Sets the
GData.CalendarEvent
:anyone-can-add-self
property to anyone_can_add_self.
- set_guests_can_invite_others(guests_can_invite_others)¶
- Parameters:
guests_can_invite_others (
bool
) –True
if attendees can invite others to the event,False
otherwise
Sets the
GData.CalendarEvent
:guests-can-invite-others
property to guests_can_invite_others.
- set_guests_can_modify(guests_can_modify)¶
- Parameters:
guests_can_modify (
bool
) –True
if attendees can modify the original event,False
otherwise
Sets the
GData.CalendarEvent
:guests-can-modify
property to guests_can_modify.
- set_guests_can_see_guests(guests_can_see_guests)¶
- Parameters:
guests_can_see_guests (
bool
) –True
if attendees can see who’s attending the event,False
otherwise
Sets the
GData.CalendarEvent
:guests-can-see-guests
property to guests_can_see_guests.
- set_recurrence(recurrence)¶
-
Sets the
GData.CalendarEvent
:recurrence
property to the new recurrence, recurrence.Set recurrence to
None
to 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
:sequence
property to the new sequence number, sequence.
- set_status(status)¶
-
Sets the
GData.CalendarEvent
:status
property to the new status, status.Set status to
None
to unset the property in the event.New in version 0.2.0.
- set_transparency(transparency)¶
-
Sets the
GData.CalendarEvent
:transparency
property to the new transparency, transparency.Set transparency to
None
to unset the property in the event.
- set_uid(uid)¶
-
Sets the
GData.CalendarEvent
:uid
property to the new UID, uid.Set uid to
None
to unset the property in the event.
- set_visibility(visibility)¶
-
Sets the
GData.CalendarEvent
:visibility
property to the new visibility, visibility.Set visibility to
None
to 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_CANCELED
orGData.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_OPAQUE
orGData.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_PUBLIC
orGData.GD_EVENT_VISIBILITY_DEFAULT
.For more information, see the GData specification.