Method

CamelStorecreate_folder

since: 3.0

Declaration [src]

void
camel_store_create_folder (
  CamelStore* store,
  const gchar* parent_name,
  const gchar* folder_name,
  gint io_priority,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Asynchronously creates a new folder as a child of an existing folder. parent_name can be NULL to create a new top-level folder.

When the operation is finished, callback will be called. You can then call camel_store_create_folder_finish() to get the result of the operation.

Available since: 3.0

This method completes asynchronously. Use camel_store_create_folder_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

parent_name

Type: const gchar*

Name of the new folder’s parent, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
folder_name

Type: const gchar*

Name of the folder to create.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
io_priority

Type: gint

The I/O priority of the request.

cancellable

Type: GCancellable

Optional GCancellable object, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

A GAsyncReadyCallback to call when the request is satisfied.

The argument can be NULL.
user_data

Type: gpointer

Data to pass to the callback function.

The argument can be NULL.
The data is owned by the caller of the method.