Callbacks

CipherCloneFunc (value)

CopyFunc (object)

DBCollate (enc, length1, data1, length2, data2)

DBSelectCB (user_data, colvalues, colnames)

DataCacheRemoveFunc (cdc, filename, *user_data)

FilterPlaySoundFunc (driver, filename, *user_data)

FilterShellFunc (driver, argc, argv, *user_data)

FilterStatusFunc (driver, status, pc, desc, *user_data)

FilterSystemBeepFunc (driver, *user_data)

ForeachInfoData (mi_data, subfolder, *user_data)

ForeachPartFunc (message, part, parent_part, *user_data)

IndexNorm (index, word, *user_data)

MessageContentInfoTraverseCallback (ci, depth, *user_data)

ProviderAutoDetectFunc (url)

SessionCallback (session, cancellable, *user_data)

TextIndexFunc (idx, word, buffer)

UrlScanFunc (in_, pos, inend, match)

Details

Camel.CipherCloneFunc(value)
Parameters:

value (object or None) –

Return type:

object or None

Camel.CopyFunc(object)
Parameters:

object (object or None) –

Return type:

object or None

Camel.DBCollate(enc, length1, data1, length2, data2)
Parameters:
  • enc (object or None) – a used encoding (SQLITE_UTF8)

  • length1 (int) – length of the data1

  • data1 (object or None) – the first value, of lenth length1

  • length2 (int) – length of the data2

  • data2 (object or None) – the second value, of lenth length2

Returns:

less than zero, zero, or greater than zero value, the same as for example strcmp() does.

Return type:

int

A collation callback function.

New in version 2.24.

Camel.DBSelectCB(user_data, colvalues, colnames)
Parameters:
  • user_data (object or None) – a callback user data

  • colvalues ([str]) – array of column values, as UTF-8 strings

  • colnames ([str]) – array of column names

Returns:

0 to continue the SELECT execution, non-zero to abort the execution.

Return type:

int

A callback called for the SELECT statements. The items at the same index of colvalues and colnames correspond to each other.

New in version 2.24.

Camel.DataCacheRemoveFunc(cdc, filename, *user_data)
Parameters:
Returns:

True, to delete the file, False to keep in in the cache

Return type:

bool

A callback called for each found file in the cache, used by Camel.DataCache.foreach_remove(). The filename corresponds to the result of Camel.DataCache.get_filename().

New in version 3.26.

Camel.FilterPlaySoundFunc(driver, filename, *user_data)
Parameters:
Camel.FilterShellFunc(driver, argc, argv, *user_data)
Parameters:
Camel.FilterStatusFunc(driver, status, pc, desc, *user_data)
Parameters:
Camel.FilterSystemBeepFunc(driver, *user_data)
Parameters:
Camel.ForeachInfoData(mi_data, subfolder, *user_data)
Parameters:

A callback prototype for Camel.VeeDataCache.foreach_message_info_data()

Camel.ForeachPartFunc(message, part, parent_part, *user_data)
Parameters:
Returns:

True, when the traverse should continue, False to stop traversing parts of the message

Return type:

bool

Callback used to traverse parts of the message using Camel.MimeMessage.foreach_part().

New in version 3.34.

Camel.IndexNorm(index, word, *user_data)
Parameters:
Return type:

str

Camel.MessageContentInfoTraverseCallback(ci, depth, *user_data)
Parameters:
Returns:

True to continue processing or False to stop it.

Return type:

bool

This is the callback signature for Camel.MessageContentInfo.traverse().

New in version 3.36.

Camel.ProviderAutoDetectFunc(url)
Parameters:

url (Camel.URL) – a Camel.URL

Returns:

0 on success or -1 on fail.

auto_detected:

output GLib.HashTable of auto-detected values

Return type:

(int, auto_detected: {str: str})

Function used in Camel.Provider.auto_detect().

Camel.SessionCallback(session, cancellable, *user_data)
Parameters:

This is the callback signature for jobs submitted to the Camel.Session via Camel.Session.submit_job(). The error pointer is always non-None, so it’s safe to dereference to check if a GLib.Error has been set.

New in version 3.2.

Camel.TextIndexFunc(idx, word, buffer)
Parameters:
Camel.UrlScanFunc(in_, pos, inend, match)
Parameters:
Return type:

bool