Camel.Subscribable

g Camel.Subscribable Camel.Subscribable GObject.GInterface GObject.GInterface GObject.GInterface->Camel.Subscribable

Implementations:

None

Methods

folder_is_subscribed (folder_name)

folder_subscribed (folder_info)

folder_unsubscribed (folder_info)

subscribe_folder (folder_name, io_priority, cancellable, callback, *user_data)

subscribe_folder_finish (result)

subscribe_folder_sync (folder_name, cancellable)

unsubscribe_folder (folder_name, io_priority, cancellable, callback, *user_data)

unsubscribe_folder_finish (result)

unsubscribe_folder_sync (folder_name, cancellable)

Virtual Methods

do_folder_is_subscribed (folder_name)

do_folder_subscribed (folder_info)

do_folder_unsubscribed (folder_info)

do_subscribe_folder_sync (folder_name, cancellable)

do_unsubscribe_folder_sync (folder_name, cancellable)

Properties

None

Signals

Name

Short Description

folder-subscribed

folder-unsubscribed

Fields

None

Class Details

class Camel.Subscribable
Bases:

GObject.GInterface

Structure:

Camel.SubscribableInterface

New in version 3.2.

folder_is_subscribed(folder_name)
Parameters:

folder_name (str) – full path of the folder

Returns:

True if the folder has been subscribed to or False otherwise

Return type:

bool

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-subscribed signal from an idle source on the main loop. The idle source’s priority is GLib.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-unsubscribed signal from an idle source on the main loop. The idle source’s priority is GLib.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:

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) – a Gio.AsyncResult

Raises:

GLib.Error

Returns:

True on success, False on error

Return type:

bool

Finishes the operation started with Camel.Subscribable.subscribe_folder().

New in version 3.2.

subscribe_folder_sync(folder_name, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True on success, False on error

Return type:

bool

Subscribes to the folder described by folder_name.

New in version 3.2.

unsubscribe_folder(folder_name, io_priority, cancellable, callback, *user_data)
Parameters:

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) – a Gio.AsyncResult

Raises:

GLib.Error

Returns:

True on success, False on error

Return type:

bool

Finishes the operation started with Camel.Subscribable.unsubscribe_folder().

New in version 3.2.

unsubscribe_folder_sync(folder_name, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True on success, False on error

Return type:

bool

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:

True if the folder has been subscribed to or False otherwise

Return type:

bool

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-subscribed signal from an idle source on the main loop. The idle source’s priority is GLib.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-unsubscribed signal from an idle source on the main loop. The idle source’s priority is GLib.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:
Returns:

True on success, False on error

Return type:

bool

Subscribes to the folder described by folder_name.

New in version 3.2.

do_unsubscribe_folder_sync(folder_name, cancellable) virtual
Parameters:
Returns:

True on success, False on error

Return type:

bool

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:

RUN_FIRST

Parameters:
Camel.Subscribable.signals.folder_unsubscribed(subscribable, object)
Signal Name:

folder-unsubscribed

Flags:

RUN_FIRST

Parameters: