Camel.Subscribable¶
- Implementations:
None
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
Name |
Short Description |
|---|---|
Fields¶
None
Class Details¶
- class Camel.Subscribable¶
- Bases:
- Structure:
New in version 3.2.
- folder_is_subscribed(folder_name)¶
- Parameters:
folder_name (
str) – full path of the folder- Returns:
Trueif the folder has been subscribed to orFalseotherwise- Return type:
Find out if a folder has been subscribed to.
New in version 3.2.
- folder_subscribed(folder_info)¶
- Parameters:
folder_info (
Camel.FolderInfo) – information about the subscribed folder
Emits the
Camel.Subscribable::folder-subscribedsignal from an idle source on the main loop. The idle source’s priority isGLib.PRIORITY_HIGH_IDLE.This function is only intended for Camel providers.
New in version 3.2.
- folder_unsubscribed(folder_info)¶
- Parameters:
folder_info (
Camel.FolderInfo) – information about the unsubscribed folder
Emits the
Camel.Subscribable::folder-unsubscribedsignal from an idle source on the main loop. The idle source’s priority isGLib.PRIORITY_HIGH_IDLE.This function is only intended for Camel providers.
New in version 3.2.
- subscribe_folder(folder_name, io_priority, cancellable, callback, *user_data)¶
- Parameters:
folder_name (
str) – full path of the folderio_priority (
int) – the I/O priority of the requestcancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNonecallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfieduser_data (
objectorNone) – data to pass to the callback function
Asynchronously subscribes to the folder described by folder_name.
When the operation is finished, callback will be called. You can then call
Camel.Subscribable.subscribe_folder_finish() to get the result of the operation.New in version 3.2.
- subscribe_folder_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Returns:
- Return type:
Finishes the operation started with
Camel.Subscribable.subscribe_folder().New in version 3.2.
- subscribe_folder_sync(folder_name, cancellable)¶
- Parameters:
folder_name (
str) – full path of the foldercancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Raises:
- Returns:
- Return type:
Subscribes to the folder described by folder_name.
New in version 3.2.
- unsubscribe_folder(folder_name, io_priority, cancellable, callback, *user_data)¶
- Parameters:
folder_name (
str) – full path of the folderio_priority (
int) – the I/O priority of the requestcancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNonecallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfieduser_data (
objectorNone) – data to pass to the callback function
Asynchronously unsubscribes from the folder described by folder_name.
When the operation is finished, callback will be called. You can then call
Camel.Subscribable.unsubscribe_folder_finish() to get the result of the operation.New in version 3.2.
- unsubscribe_folder_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Returns:
- Return type:
Finishes the operation started with
Camel.Subscribable.unsubscribe_folder().New in version 3.2.
- unsubscribe_folder_sync(folder_name, cancellable)¶
- Parameters:
folder_name (
str) – full path of the foldercancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Raises:
- Returns:
- Return type:
Unsubscribes from the folder described by folder_name.
New in version 3.2.
- do_folder_is_subscribed(folder_name) virtual¶
- Parameters:
folder_name (
str) – full path of the folder- Returns:
Trueif the folder has been subscribed to orFalseotherwise- Return type:
Find out if a folder has been subscribed to.
New in version 3.2.
- do_folder_subscribed(folder_info) virtual¶
- Parameters:
folder_info (
Camel.FolderInfo) – information about the subscribed folder
Emits the
Camel.Subscribable::folder-subscribedsignal from an idle source on the main loop. The idle source’s priority isGLib.PRIORITY_HIGH_IDLE.This function is only intended for Camel providers.
New in version 3.2.
- do_folder_unsubscribed(folder_info) virtual¶
- Parameters:
folder_info (
Camel.FolderInfo) – information about the unsubscribed folder
Emits the
Camel.Subscribable::folder-unsubscribedsignal from an idle source on the main loop. The idle source’s priority isGLib.PRIORITY_HIGH_IDLE.This function is only intended for Camel providers.
New in version 3.2.
- do_subscribe_folder_sync(folder_name, cancellable) virtual¶
- Parameters:
folder_name (
str) – full path of the foldercancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Returns:
- Return type:
Subscribes to the folder described by folder_name.
New in version 3.2.
- do_unsubscribe_folder_sync(folder_name, cancellable) virtual¶
- Parameters:
folder_name (
str) – full path of the foldercancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Returns:
- Return type:
Unsubscribes from the folder described by folder_name.
New in version 3.2.
Signal Details¶
- Camel.Subscribable.signals.folder_subscribed(subscribable, object)¶
- Signal Name:
folder-subscribed- Flags:
- Parameters:
subscribable (
Camel.Subscribable) – The object which received the signalobject (
Camel.FolderInfo) –
- Camel.Subscribable.signals.folder_unsubscribed(subscribable, object)¶
- Signal Name:
folder-unsubscribed- Flags:
- Parameters:
subscribable (
Camel.Subscribable) – The object which received the signalobject (
Camel.FolderInfo) –