add_password


Description:

public async string add_password (string name, string password, uint timeout, Cancellable? cancellable) throws Error

Add the password to the GPasteDaemon

Name conflicts are handled as in add_password_sync.

Parameters:

this

a Client instance

name

the name to identify the password to add

password

the password to add

timeout

how long it may stay on the clipboard, in seconds, or 0 for as long as anything else

cancellable

a Cancellable to abandon the call with

callback

a TaskReadyCallback to call once the request is satisfied, or null to ignore the result

user_data

the data to pass to callback