Method

EDataServerSourceCredentialsProviderstore

since: 3.16

Declaration [src]

void
e_source_credentials_provider_store (
  ESourceCredentialsProvider* provider,
  ESource* source,
  const ENamedParameters* credentials,
  gboolean permanently,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Asynchronously stores the credentials for source. Note the actual stored values can differ for each storage. In other words, not all named parameters are stored for each source.

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

Available since: 3.16

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

Parameters

source

Type: ESource

An ESource, to lookup credentials for.

The data is owned by the caller of the method.
credentials

Type: ENamedParameters

An ENamedParameters with credentials to store.

The data is owned by the caller of the method.
permanently

Type: gboolean

Store permanently or just for the session.

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.