Item

A proxy object representing a secret item in the Secret Service.

class Item : DBusProxy {}

Constructors

this
this(SecretItem* secretItem, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(AsyncResultIF result)

Finish asynchronous operation to get a new item proxy for a secret item in the secret service.

this
this(Service service, string itemPath, SecretItemFlags flags, Cancellable cancellable)

Get a new item proxy for a secret item in the secret service.

Members

Aliases

getFlags
alias getFlags = DBusProxy.getFlags
Undocumented in source.

Functions

delet
void delet(Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Delete this item.

deleteFinish
bool deleteFinish(AsyncResultIF result)

Complete asynchronous operation to delete the secret item.

deleteSync
bool deleteSync(Cancellable cancellable)

Delete this secret item.

getAttributes
HashTable getAttributes()

Set the attributes of this item.

getCreated
ulong getCreated()

Get the created date and time of the item. The return value is the number of seconds since the unix epoch, January 1st 1970.

getFlags
SecretItemFlags getFlags()

Get the flags representing what features of the #SecretItem proxy have been initialized.

getItemStruct
SecretItem* getItemStruct(bool transferOwnership)

Get the main Gtk struct

getLabel
string getLabel()

Get the label of this item.

getLocked
bool getLocked()

Get whether the item is locked or not.

getModified
ulong getModified()

Get the modified date and time of the item. The return value is the number of seconds since the unix epoch, January 1st 1970.

getSchemaName
string getSchemaName()

Gets the name of the schema that this item was stored with. This is also available at the <literal>xdg:schema</literal> attribute.

getSecret
Value getSecret()

Get the secret value of this item. If this item is locked or the secret has not yet been loaded then this will return %NULL.

getService
Service getService()

Get the Secret Service object that this item was created with.

getStruct
void* getStruct()

the main Gtk struct as a void*

loadSecret
void loadSecret(Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Load the secret value of this item.

loadSecretFinish
bool loadSecretFinish(AsyncResultIF result)

Complete asynchronous operation to load the secret value of this item.

loadSecretSync
bool loadSecretSync(Cancellable cancellable)

Load the secret value of this item.

refresh
void refresh()

Refresh the properties on this item. This fires off a request to refresh, and the properties will be updated later.

setAttributes
void setAttributes(Schema schema, HashTable attributes, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Set the attributes of this item.

setAttributesFinish
bool setAttributesFinish(AsyncResultIF result)

Complete operation to set the attributes of this item.

setAttributesSync
bool setAttributesSync(Schema schema, HashTable attributes, Cancellable cancellable)

Set the attributes of this item.

setLabel
void setLabel(string label, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Set the label of this item.

setLabelFinish
bool setLabelFinish(AsyncResultIF result)

Complete asynchronous operation to set the label of this collection.

setLabelSync
bool setLabelSync(string label, Cancellable cancellable)

Set the label of this item.

setSecret
void setSecret(Value value, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Set the secret value of this item.

setSecretFinish
bool setSecretFinish(AsyncResultIF result)

Complete asynchronous operation to set the secret value of this item.

setSecretSync
bool setSecretSync(Value value, Cancellable cancellable)

Set the secret value of this item.

Static functions

create
void create(Collection collection, Schema schema, HashTable attributes, string label, Value value, SecretItemCreateFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Create a new item in the secret service.

createFinish
Item createFinish(AsyncResultIF result)

Finish operation to create a new item in the secret service.

createSync
Item createSync(Collection collection, Schema schema, HashTable attributes, string label, Value value, SecretItemCreateFlags flags, Cancellable cancellable)

Create a new item in the secret service.

getType
GType getType()
loadSecrets
void loadSecrets(ListG items, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Load the secret values for a secret item stored in the service.

loadSecretsFinish
bool loadSecretsFinish(AsyncResultIF result)

Complete asynchronous operation to load the secret values for secret items stored in the service.

loadSecretsSync
bool loadSecretsSync(ListG items, Cancellable cancellable)

Load the secret values for a secret item stored in the service.

newForDbusPath
void newForDbusPath(Service service, string itemPath, SecretItemFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Get a new item proxy for a secret item in the secret service.

Variables

secretItem
SecretItem* secretItem;

the main Gtk struct

Meta