GData.CalendarCalendar¶
- Subclasses:
None
Methods¶
- Inherited:
GData.Entry (24), GData.Parsable (5), GObject.Object (37), GData.AccessHandler (2)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
GData.Parsable (9), GObject.Object (7), GData.AccessHandler (1)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
Indicates the access level the current user has to the calendar. |
||
r/w |
The background color used to highlight the calendar in the user’s browser. |
||
d/r |
The last time the calendar was edited. |
||
r/w |
Indicates whether the calendar is visible. |
||
r/w |
Indicates whether the calendar is selected. |
||
d/r |
The number of times the calendar has been cleared of events. |
||
r/w |
The timezone in which the calendar’s times are given. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GData.CalendarCalendar(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.CalendarCalendarstructure are private and should never be accessed directly.- classmethod new(id)¶
- Parameters:
- Returns:
a new
GData.CalendarCalendar; unref withGObject.Object.unref()- Return type:
Creates a new
GData.CalendarCalendarwith the given ID and default properties.
- get_access_level()¶
-
Gets the
GData.CalendarCalendar:access-levelproperty.
- get_color()¶
- Returns:
- Return type:
color:
GData.Color
Gets the
GData.CalendarCalendar:colorproperty and puts it in color.
- get_edited()¶
- Returns:
the UNIX timestamp for the time the calendar was last edited, or -1
- Return type:
Gets the
GData.CalendarCalendar:editedproperty. If the property is unset, -1 will be returned.Deprecated since version 0.17.2: Unsupported by the online API any more. There is no replacement; this will always return -1.
- get_times_cleaned()¶
- Returns:
the number of times the calendar has been totally emptied
- Return type:
Gets the
GData.CalendarCalendar:times-cleanedproperty.Deprecated since version 0.17.2: Unsupported by the online API any more. There is no replacement; this will always return 0.
- get_timezone()¶
-
Gets the
GData.CalendarCalendar:timezoneproperty.
-
Gets the
GData.CalendarCalendar:is-hiddenproperty.New in version 0.2.0.
- is_selected()¶
-
Gets the
GData.CalendarCalendar:is-selectedproperty.New in version 0.2.0.
- set_color(color)¶
- Parameters:
color (
GData.Color) – a newGData.Color
Sets the
GData.CalendarCalendar:colorproperty to color.
-
Sets the
GData.CalendarCalendar:is-hiddenproperty to is_hidden.New in version 0.2.0.
- set_is_selected(is_selected)¶
-
Sets the
GData.CalendarCalendar:is-selectedproperty to is_selected.New in version 0.2.0.
Property Details¶
- GData.CalendarCalendar.props.access_level¶
-
Indicates the access level the current user has to the calendar. For example:
GData.CALENDAR_ACCESS_ROLE_READorGData.CALENDAR_ACCESS_ROLE_FREE_BUSY. The “current user” is the one authenticated against the service’sGData.Service:authorizer, or the guest user.
- GData.CalendarCalendar.props.color¶
- Name:
color- Type:
- Default Value:
- Flags:
The background color used to highlight the calendar in the user’s browser. This used to be restricted to a limited set of colours, but since 0.17.2 may be any RGB colour.
- GData.CalendarCalendar.props.edited¶
- Name:
edited- Type:
- Default Value:
-1- Flags:
The last time the calendar was edited. If the calendar has not been edited yet, the content indicates the time it was created.
For more information, see the Atom Publishing Protocol specification.
Deprecated since version 0.17.2: Unsupported by the online API any more. There is no replacement; this will always return -1.
-
Indicates whether the calendar is visible.
New in version 0.2.0.
- GData.CalendarCalendar.props.is_selected¶
-
Indicates whether the calendar is selected.
New in version 0.2.0.
- GData.CalendarCalendar.props.times_cleaned¶
- Name:
times-cleaned- Type:
- Default Value:
0- Flags:
The number of times the calendar has been cleared of events.
Deprecated since version 0.17.2: Unsupported by the online API any more. There is no replacement; this will always return 0.