Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- EDataServer.FreeFormExpBuildSexpFunc(word, options, hint)¶
- EDataServer.GDataObjectCallback(gdata, object, *user_data)¶
- Parameters:
gdata (
EDataServer.GDataSession) – anEDataServer.GDataSessionobject (
Json.Object) – a #JSonObject with received content
- Returns:
whether the traverse can continue
- Return type:
Callback used to traverse response from the server, which is an array.
New in version 3.46.
- EDataServer.OAuth2ServiceRefSourceFunc(user_data, uid)¶
- Parameters:
user_data (
objectorNone) – user data, as passed toEDataServer.OAuth2Service.get_access_token_sync() orEDataServer.OAuth2Service.receive_and_store_token_sync(), orEDataServer.OAuth2Service.refresh_and_store_token_sync()uid (
str) – anEDataServer.SourceUID to return
- Returns:
an
EDataServer.Sourcewith UID uid, orNone, if not found. Dereference the returned non-NoneEDataServer.SourcewithGObject.Object.unref(), when no longer needed.- Return type:
New in version 3.28.
- EDataServer.SourceRefreshFunc(source, *user_data)¶
- Parameters:
source (
EDataServer.Source) – anEDataServer.Sourceuser_data (
objectorNone) – user data provided to the callback function
New in version 3.6.
- EDataServer.TypeFunc(type, *user_data)¶
- Parameters:
type (
GObject.GType) – aGObject.GTypeuser_data (
objectorNone) – user data passed toEDataServer.type_traverse()
Specifies the type of functions passed to
EDataServer.type_traverse().New in version 3.4.
- EDataServer.WebDAVDiscoverRefSourceFunc(user_data, uid)¶
- Parameters:
user_data (
objectorNone) – user data, as passed toEDataServer.webdav_discover_sources_full() orEDataServer.webdav_discover_sources_full_sync()uid (
str) – anEDataServer.SourceUID to return
- Returns:
an
EDataServer.Sourcewith UID uid, orNone, if not found. Dereference the returned non-NoneEDataServer.SourcewithGObject.Object.unref(), when no longer needed.- Return type:
New in version 3.30.
- EDataServer.WebDAVPropstatTraverseFunc(webdav, prop_node, request_uri, href, status_code, *user_data)¶
- Parameters:
webdav (
EDataServer.WebDAVSession) – anEDataServer.WebDAVSessionprop_node (
libxml2.Node) – anlibxml2.Noderequest_uri (
GLib.Uri) – aGLib.Uri, containing the request URI, maybe redirected by the serverhref (
strorNone) – a full URI to which the property belongs, orNone, when not foundstatus_code (
int) – an HTTP status code for this propertyuser_data (
objectorNone) – user data, as passed toEDataServer.WebDAVSession.propfind_sync()
- Returns:
Trueto continue traversal of the returned response,Falseotherwise.- Return type:
A callback function for
EDataServer.WebDAVSession.propfind_sync(),EDataServer.WebDAVSession.report_sync() and other XML response with DAV:propstat elements traversal functions.The prop_node points to the actual property (prop) node and it can be examined with e_xml_find_child(), e_xml_find_children_nodes() and other provided XML helper functions.
New in version 3.26.
- EDataServer.XmlHashFunc(key, value, *user_data)¶