Service
Object Hierarchy:
Description:
All the fields in the Service structure are private and should never be accessed directly.
All known sub-classes:
Required by:
Namespace: GData
Package: libgdata
Content:
Properties:
- public Authorizer authorizer { get; set; }
An object which implements Authorizer.
- public string locale { get; set; }
The locale to use for network requests, in Unix locale format.
- public ProxyResolver proxy_resolver { get; set; }
The ProxyResolver used to determine a proxy URI.
- public uint timeout { get; set; }
A timeout, in seconds, for network operations.
Static methods:
- public static List<unowned AuthorizationDomain> get_authorization_domains (Type service_type)
Retrieves the full list of AuthorizationDomains which relate to the specified
service_type
.
Creation methods:
- protected Service ()
Methods:
- public virtual void append_query_headers (AuthorizationDomain domain, Message message)
- public bool delete_entry (AuthorizationDomain? domain, Entry entry, Cancellable? cancellable = null) throws Error
Deletes
entry
from the server. - public async bool delete_entry_async (AuthorizationDomain? domain, Entry entry, Cancellable? cancellable) throws Error
Deletes
entry
from the server. - public unowned Authorizer get_authorizer ()
Gets the Authorizer object currently in use by the service.
- public unowned string get_locale ()
Returns the locale currently being used for network requests, or
null
if the locale is the default. - public unowned ProxyResolver? get_proxy_resolver ()
Gets the ProxyResolver on the Service's Session.
- public uint get_timeout ()
Gets the timeout property; the network timeout, in seconds.
- public Entry insert_entry (AuthorizationDomain? domain, string upload_uri, Entry entry, Cancellable? cancellable = null) throws Error
Inserts
entry
by uploading it to the online service atupload_uri
. - public async Entry insert_entry_async (AuthorizationDomain? domain, string upload_uri, Entry entry, Cancellable? cancellable) throws Error
Inserts
entry
by uploading it to the online service atupload_uri
. - public bool is_authorized ()
Determines whether the service is authorized for all the AuthorizationDomains it belongs to (as returned by get_authorization_domains).
- public virtual void parse_error_response (OperationType operation_type, uint status, string reason_phrase, string response_body, int length) throws Error
- public Feed query (AuthorizationDomain? domain, string feed_uri, Query? query, Type entry_type, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws Error
Queries the service's
feed_uri
feed to build a Feed. - public async Feed query_async (AuthorizationDomain? domain, string feed_uri, Query? query, Type entry_type, Cancellable? cancellable, owned QueryProgressCallback? progress_callback) throws Error
Queries the service's
feed_uri
feed to build a Feed. - public Entry query_single_entry (AuthorizationDomain? domain, string entry_id, Query? query, Type entry_type, Cancellable? cancellable = null) throws Error
Retrieves information about the single entry with the given
entry_id
. - public async Entry query_single_entry_async (AuthorizationDomain? domain, string entry_id, Query? query, Type entry_type, Cancellable? cancellable) throws Error
Retrieves information about the single entry with the given
entry_id
. - public void set_authorizer (Authorizer authorizer)
Sets authorizer to
authorizer
. - public void set_locale (string? locale)
Set the locale used for network requests to
locale
, given in standard Unix locale format. - public void set_proxy_resolver (ProxyResolver? proxy_resolver)
Sets the ProxyResolver on the Session used internally by the given Service.
- public void set_timeout (uint timeout)
Sets the timeout property; the network timeout, in seconds.
- public Entry update_entry (AuthorizationDomain? domain, Entry entry, Cancellable? cancellable = null) throws Error
Updates
entry
by PUTting it to its edit link's URI. - public async Entry update_entry_async (AuthorizationDomain? domain, Entry entry, Cancellable? cancellable) throws Error
Updates
entry
by PUTting it to its edit link's URI.
Inherited Members:
All known members inherited from class GLib.Object