GData.CalendarService¶
- Subclasses:
None
Methods¶
- Inherited:
GData.Service (27), GObject.Object (37), GData.Batchable (1)
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GData.CalendarService(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.CalendarServicestructure are private and should never be accessed directly.- classmethod get_primary_authorization_domain()¶
- Returns:
the service’s authorization domain
- Return type:
The primary
GData.AuthorizationDomainfor interacting with Google Calendar. This will not normally need to be used, as it’s used internally by theGData.CalendarServicemethods. However, if using the plainGData.Servicemethods to implement custom queries or requests which libgdata does not support natively, then this domain may be needed to authorize the requests.The domain never changes, and is interned so that pointer comparison can be used to differentiate it from other authorization domains.
New in version 0.9.0.
- classmethod new(authorizer)¶
- Parameters:
authorizer (
GData.AuthorizerorNone) – aGData.Authorizerto authorize the service’s requests, orNone- Returns:
a new
GData.CalendarService, orNone; unref withGObject.Object.unref()- Return type:
Creates a new
GData.CalendarServiceusing the givenGData.Authorizer. If authorizer isNone, all requests are made as an unauthenticated user.New in version 0.9.0.
- insert_calendar_event(calendar, event, cancellable)¶
- Parameters:
calendar (
GData.CalendarCalendar) – theGData.CalendarCalendarto insert the event intoevent (
GData.CalendarEvent) – theGData.CalendarEventto insertcancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Raises:
- Returns:
an updated
GData.CalendarEvent, orNone; unref withGObject.Object.unref()- Return type:
Inserts event by uploading it to the online calendar service, adding it to the specified calendar.
For more details, see
GData.Service.insert_entry().New in version 0.17.2.
- insert_calendar_event_async(calendar, event, cancellable, callback, *user_data)¶
- Parameters:
calendar (
GData.CalendarCalendar) – theGData.CalendarCalendarto insert the event intoevent (
GData.CalendarEvent) – theGData.CalendarEventto insertcancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNonecallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when insertion is finisheduser_data (
objectorNone) – data to pass to the callback function
Inserts event by uploading it to the online calendar service, adding it to the specified calendar. self and event are both reffed when this function is called, so can safely be unreffed after this function returns.
callback should call
GData.Service.insert_entry_finish() to obtain aGData.CalendarEventrepresenting the inserted event and to check for possible errors.For more details, see
GData.CalendarService.insert_event(), which is the synchronous version of this function, andGData.Service.insert_entry_async(), which is the base asynchronous insertion function.New in version 0.17.2.
- insert_event(event, cancellable)¶
- Parameters:
event (
GData.CalendarEvent) – theGData.CalendarEventto insertcancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Raises:
- Returns:
an updated
GData.CalendarEvent, orNone; unref withGObject.Object.unref()- Return type:
Inserts event by uploading it to the online calendar service.
For more details, see
GData.Service.insert_entry().New in version 0.2.0.
Deprecated since version 0.17.2: Use
GData.CalendarService.insert_calendar_event() instead to be able to specify the calendar to add the event to; otherwise the default calendar will be used.
- insert_event_async(event, cancellable, callback, *user_data)¶
- Parameters:
event (
GData.CalendarEvent) – theGData.CalendarEventto insertcancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNonecallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when insertion is finisheduser_data (
objectorNone) – data to pass to the callback function
Inserts event by uploading it to the online calendar service. self and event are both reffed when this function is called, so can safely be unreffed after this function returns.
callback should call
GData.Service.insert_entry_finish() to obtain aGData.CalendarEventrepresenting the inserted event and to check for possible errors.For more details, see
GData.CalendarService.insert_event(), which is the synchronous version of this function, andGData.Service.insert_entry_async(), which is the base asynchronous insertion function.New in version 0.8.0.
Deprecated since version 0.17.2: Use
GData.CalendarService.insert_calendar_event_async() instead to be able to specify the calendar to add the event to; otherwise the default calendar will be used.
- query_all_calendars(query, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
query (
GData.QueryorNone) – aGData.Querywith the query parameters, orNonecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNoneprogress_callback (
GData.QueryProgressCallbackorNone) – aGData.QueryProgressCallbackto call when an entry is loaded, orNoneprogress_user_data (
objectorNone) – data to pass to the progress_callback function
- Raises:
- Returns:
a
GData.Feedof query results; unref withGObject.Object.unref()- Return type:
Queries the service to return a list of all calendars from the authenticated account which match the given query. It will return all calendars the user has read access to, including primary, secondary and imported calendars.
For more details, see
GData.Service.query().
- query_all_calendars_async(query, cancellable, progress_callback, progress_user_data, callback, *user_data)¶
- Parameters:
query (
GData.QueryorNone) – aGData.Querywith the query parameters, orNonecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNoneprogress_callback (
GData.QueryProgressCallbackorNone) – aGData.QueryProgressCallbackto call when an entry is loaded, orNoneprogress_user_data (
objectorNone) – data to pass to the progress_callback functioncallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when authentication is finisheduser_data (
objectorNone) – data to pass to the callback function
Queries the service to return a list of all calendars from the authenticated account which match the given query. self and query are all reffed when this function is called, so can safely be unreffed after this function returns.
For more details, see
GData.CalendarService.query_all_calendars(), which is the synchronous version of this function, andGData.Service.query_async(), which is the base asynchronous query function.New in version 0.9.1.
- query_events(calendar, query, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
calendar (
GData.CalendarCalendar) – aGData.CalendarCalendarquery (
GData.QueryorNone) – aGData.Querywith the query parameters, orNonecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNoneprogress_callback (
GData.QueryProgressCallbackorNone) – aGData.QueryProgressCallbackto call when an entry is loaded, orNoneprogress_user_data (
objectorNone) – data to pass to the progress_callback function
- Raises:
- Returns:
a
GData.Feedof query results; unref withGObject.Object.unref()- Return type:
Queries the service to return a list of events in the given calendar, which match query.
For more details, see
GData.Service.query().
- query_events_async(calendar, query, cancellable, progress_callback, progress_user_data, callback, *user_data)¶
- Parameters:
calendar (
GData.CalendarCalendar) – aGData.CalendarCalendarquery (
GData.QueryorNone) – aGData.Querywith the query parameters, orNonecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNoneprogress_callback (
GData.QueryProgressCallbackorNone) – aGData.QueryProgressCallbackto call when an entry is loaded, orNoneprogress_user_data (
objectorNone) – data to pass to the progress_callback functioncallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the query is finisheduser_data (
objectorNone) – data to pass to the callback function
Queries the service to return a list of events in the given calendar, which match query. self, calendar and query are all reffed when this function is called, so can safely be unreffed after this function returns.
Get the results of the query using
GData.Service.query_finish() in the callback.For more details, see
GData.CalendarService.query_events(), which is the synchronous version of this function, andGData.Service.query_async(), which is the base asynchronous query function.New in version 0.9.1.
- query_own_calendars(query, cancellable, progress_callback, *progress_user_data)¶
- Parameters:
query (
GData.QueryorNone) – aGData.Querywith the query parameters, orNonecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNoneprogress_callback (
GData.QueryProgressCallbackorNone) – aGData.QueryProgressCallbackto call when an entry is loaded, orNoneprogress_user_data (
objectorNone) – data to pass to the progress_callback function
- Raises:
- Returns:
a
GData.Feedof query results; unref withGObject.Object.unref()- Return type:
Queries the service to return a list of calendars from the authenticated account which match the given query, and the authenticated user owns. (i.e. They have full read/write access to the calendar, as well as the ability to set permissions on the calendar.)
For more details, see
GData.Service.query().
- query_own_calendars_async(query, cancellable, progress_callback, progress_user_data, callback, *user_data)¶
- Parameters:
query (
GData.QueryorNone) – aGData.Querywith the query parameters, orNonecancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNoneprogress_callback (
GData.QueryProgressCallbackorNone) – aGData.QueryProgressCallbackto call when an entry is loaded, orNoneprogress_user_data (
objectorNone) – data to pass to the progress_callback functioncallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when authentication is finisheduser_data (
objectorNone) – data to pass to the callback function
Queries the service to return a list of calendars from the authenticated account which match the given query, and the authenticated user owns. self and query are all reffed when this function is called, so can safely be unreffed after this function returns.
For more details, see
GData.CalendarService.query_own_calendars(), which is the synchronous version of this function, andGData.Service.query_async(), which is the base asynchronous query function.New in version 0.9.1.