Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- EDataServer.FreeFormExpBuildSexpFunc(word, options, hint)¶
- EDataServer.GDataObjectCallback(gdata, object, *user_data)¶
- Parameters:
gdata (
EDataServer.GDataSession
) – anEDataServer.GDataSession
object (
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 (
object
orNone
) – 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.Source
UID to return
- Returns:
an
EDataServer.Source
with UID uid, orNone
, if not found. Dereference the returned non-None
EDataServer.Source
withGObject.Object.unref
(), when no longer needed.- Return type:
New in version 3.28.
- EDataServer.SourceRefreshFunc(source, *user_data)¶
- Parameters:
source (
EDataServer.Source
) – anEDataServer.Source
user_data (
object
orNone
) – user data provided to the callback function
New in version 3.6.
- EDataServer.TypeFunc(type, *user_data)¶
- Parameters:
type (
GObject.GType
) – aGObject.GType
user_data (
object
orNone
) – 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 (
object
orNone
) – user data, as passed toEDataServer.webdav_discover_sources_full
() orEDataServer.webdav_discover_sources_full_sync
()uid (
str
) – anEDataServer.Source
UID to return
- Returns:
an
EDataServer.Source
with UID uid, orNone
, if not found. Dereference the returned non-None
EDataServer.Source
withGObject.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.WebDAVSession
prop_node (
libxml2.Node
) – anlibxml2.Node
request_uri (
GLib.Uri
) – aGLib.Uri
, containing the request URI, maybe redirected by the serverhref (
str
orNone
) – a full URI to which the property belongs, orNone
, when not foundstatus_code (
int
) – an HTTP status code for this propertyuser_data (
object
orNone
) – user data, as passed toEDataServer.WebDAVSession.propfind_sync
()
- Returns:
True
to continue traversal of the returned response,False
otherwise.- 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)¶