remote_create


Description:

public virtual async bool remote_create (Source scratch_source, Cancellable? cancellable) throws Error

Asynchronously creates a new remote resource by picking out relevant details from scratch_source.

The scratch_source must be an Source with no DBusObject. The this must be remote_creatable.

The details required to create the resource vary by ECollectionBackend, but in most cases the scratch_source need only define the resource type (address book, calendar, etc.), a display name for the resource, and possibly a server-side path or ID for the resource.

When the operation is finished, callback will be called. You can then call remote_create.end to get the result of the operation.

Parameters:

this

an Source

scratch_source

an Source describing the resource to create

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when the request is satisfied

user_data

data to pass to the callback function