Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- Camel.DBCollate(enc, length1, data1, length2, data2)¶
- Parameters:
- Returns:
less than zero, zero, or greater than zero value, the same as for example strcmp() does.
- Return type:
A collation callback function.
New in version 2.24.
- Camel.DBSelectCB(user_data, colvalues, colnames)¶
- Parameters:
- Returns:
0 to continue the SELECT execution, non-zero to abort the execution.
- Return type:
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:
cdc (
Camel.DataCache
) – aCamel.DataCache
filename (
str
) – a file name found in the cacheuser_data (
object
orNone
) – user data passed toCamel.DataCache.foreach_remove
()
- Returns:
- Return type:
A callback called for each found file in the cache, used by
Camel.DataCache.foreach_remove
(). The filename corresponds to the result ofCamel.DataCache.get_filename
().New in version 3.26.
- Camel.FilterPlaySoundFunc(driver, filename, *user_data)¶
- Parameters:
driver (
Camel.FilterDriver
) –filename (
str
) –
- Camel.FilterShellFunc(driver, argc, argv, *user_data)¶
- Parameters:
driver (
Camel.FilterDriver
) –argc (
int
) –argv (
str
) –
- Camel.FilterStatusFunc(driver, status, pc, desc, *user_data)¶
- Camel.FilterSystemBeepFunc(driver, *user_data)¶
- Parameters:
driver (
Camel.FilterDriver
) –
- Camel.ForeachInfoData(mi_data, subfolder, *user_data)¶
- Parameters:
mi_data (
Camel.VeeMessageInfoData
) – aCamel.VeeMessageInfoData
subfolder (
Camel.Folder
) – aCamel.Folder
which mi_data references
A callback prototype for
Camel.VeeDataCache.foreach_message_info_data
()
- Camel.ForeachPartFunc(message, part, parent_part, *user_data)¶
- Parameters:
message (
Camel.MimeMessage
) – aCamel.MimeMessage
part (
Camel.MimePart
) – aCamel.MimePart
, for which the function is calledparent_part (
Camel.MimePart
orNone
) – aCamel.MimePart
, parent of the part; can beNone
user_data (
object
orNone
) – user data, as passed toCamel.MimeMessage.foreach_part
()
- Returns:
True
, when the traverse should continue,False
to stop traversing parts of the message- Return type:
Callback used to traverse parts of the message using
Camel.MimeMessage.foreach_part
().New in version 3.34.
- Camel.GeneratePreviewFunc(part, *user_data)¶
- Parameters:
part (
object
orNone
) – either aCamel.MimePart
or aCamel.Multipart
- Returns:
valid UTF-8 encoded preview text for the part, or
None
, when cannot handle the part- Return type:
A custom function to generate preview text for the content of the part. The part can be either a
Camel.MimePart
or aCamel.Multipart
, depending in which context it is called.The preview is supposed to be up to
Camel.MAX_PREVIEW_LENGTH
characters long, in a plain text format.New in version 3.52.
- Camel.IndexNorm(index, word, *user_data)¶
- Parameters:
index (
Camel.Index
) –word (
str
) –
- Return type:
- Camel.MessageContentInfoTraverseCallback(ci, depth, *user_data)¶
- Parameters:
depth (
int
) – the current depthuser_data (
object
orNone
) – data passed toCamel.MessageContentInfo.traverse
()
- Returns:
- Return type:
This is the callback signature for
Camel.MessageContentInfo.traverse
().New in version 3.36.
- Camel.ProviderAutoDetectFunc(url)¶
- Parameters:
- Returns:
0 on success or -1 on fail.
- auto_detected:
output
GLib.HashTable
of auto-detected values
- Return type:
Function used in
Camel.Provider.auto_detect
().
- Camel.SessionCallback(session, cancellable, *user_data)¶
- Parameters:
session (
Camel.Session
) – aCamel.Session
cancellable (
Gio.Cancellable
orNone
) – aCamel.Operation
cast as aGio.Cancellable
user_data (
object
orNone
) – data passed toCamel.Session.submit_job
()
This is the callback signature for jobs submitted to the
Camel.Session
viaCamel.Session.submit_job
(). The error pointer is always non-None
, so it’s safe to dereference to check if aGLib.Error
has been set.New in version 3.2.
- Camel.TextIndexFunc(idx, word, buffer)¶
- Parameters:
idx (
Camel.TextIndex
) –word (
str
) –buffer (
str
) –