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.CalendarService
structure are private and should never be accessed directly.- classmethod get_primary_authorization_domain()¶
- Returns:
the service’s authorization domain
- Return type:
The primary
GData.AuthorizationDomain
for interacting with Google Calendar. This will not normally need to be used, as it’s used internally by theGData.CalendarService
methods. However, if using the plainGData.Service
methods 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.Authorizer
orNone
) – aGData.Authorizer
to authorize the service’s requests, orNone
- Returns:
a new
GData.CalendarService
, orNone
; unref withGObject.Object.unref
()- Return type:
Creates a new
GData.CalendarService
using 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.CalendarCalendar
to insert the event intoevent (
GData.CalendarEvent
) – theGData.CalendarEvent
to insertcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, 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.CalendarCalendar
to insert the event intoevent (
GData.CalendarEvent
) – theGData.CalendarEvent
to insertcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
callback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when insertion is finisheduser_data (
object
orNone
) – 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.CalendarEvent
representing 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.CalendarEvent
to insertcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, 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.CalendarEvent
to insertcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
callback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when insertion is finisheduser_data (
object
orNone
) – 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.CalendarEvent
representing 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.Query
orNone
) – aGData.Query
with the query parameters, orNone
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
progress_callback (
GData.QueryProgressCallback
orNone
) – aGData.QueryProgressCallback
to call when an entry is loaded, orNone
progress_user_data (
object
orNone
) – data to pass to the progress_callback function
- Raises:
- Returns:
a
GData.Feed
of 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.Query
orNone
) – aGData.Query
with the query parameters, orNone
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
progress_callback (
GData.QueryProgressCallback
orNone
) – aGData.QueryProgressCallback
to call when an entry is loaded, orNone
progress_user_data (
object
orNone
) – data to pass to the progress_callback functioncallback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when authentication is finisheduser_data (
object
orNone
) – 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.CalendarCalendar
query (
GData.Query
orNone
) – aGData.Query
with the query parameters, orNone
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
progress_callback (
GData.QueryProgressCallback
orNone
) – aGData.QueryProgressCallback
to call when an entry is loaded, orNone
progress_user_data (
object
orNone
) – data to pass to the progress_callback function
- Raises:
- Returns:
a
GData.Feed
of 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.CalendarCalendar
query (
GData.Query
orNone
) – aGData.Query
with the query parameters, orNone
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
progress_callback (
GData.QueryProgressCallback
orNone
) – aGData.QueryProgressCallback
to call when an entry is loaded, orNone
progress_user_data (
object
orNone
) – data to pass to the progress_callback functioncallback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when the query is finisheduser_data (
object
orNone
) – 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.Query
orNone
) – aGData.Query
with the query parameters, orNone
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
progress_callback (
GData.QueryProgressCallback
orNone
) – aGData.QueryProgressCallback
to call when an entry is loaded, orNone
progress_user_data (
object
orNone
) – data to pass to the progress_callback function
- Raises:
- Returns:
a
GData.Feed
of 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.Query
orNone
) – aGData.Query
with the query parameters, orNone
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
progress_callback (
GData.QueryProgressCallback
orNone
) – aGData.QueryProgressCallback
to call when an entry is loaded, orNone
progress_user_data (
object
orNone
) – data to pass to the progress_callback functioncallback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when authentication is finisheduser_data (
object
orNone
) – 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.