Collection

A proxy object representing a collection of secrets in the Secret Service.

class Collection : DBusProxy {}

Constructors

this
this(SecretCollection* secretCollection, bool ownedRef)

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

this
this(AsyncResultIF result)

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

this
this(Service service, string collectionPath, SecretCollectionFlags flags, Cancellable cancellable)

Get a new collection proxy for a collection 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 collection.

deleteFinish
bool deleteFinish(AsyncResultIF result)

Complete operation to delete this collection.

deleteSync
bool deleteSync(Cancellable cancellable)

Delete this collection.

getCollectionStruct
SecretCollection* getCollectionStruct(bool transferOwnership)

Get the main Gtk struct

getCreated
ulong getCreated()

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

getFlags
SecretCollectionFlags getFlags()

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

getItems
ListG getItems()

Get the list of items in this collection.

getLabel
string getLabel()

Get the label of this collection.

getLocked
bool getLocked()

Get whether the collection is locked or not.

getModified
ulong getModified()

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

getService
Service getService()

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

getStruct
void* getStruct()

the main Gtk struct as a void*

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

Ensure that the #SecretCollection proxy has loaded all the items present in the Secret Service. This affects the result of secret_collection_get_items().

loadItemsFinish
bool loadItemsFinish(AsyncResultIF result)

Complete an asynchronous operation to ensure that the #SecretCollection proxy has loaded all the items present in the Secret Service.

loadItemsSync
bool loadItemsSync(Cancellable cancellable)

Ensure that the #SecretCollection proxy has loaded all the items present in the Secret Service. This affects the result of secret_collection_get_items().

refresh
void refresh()

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

search
void search(Schema schema, HashTable attributes, SecretSearchFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Search for items matching the @attributes in the @collection. The @attributes should be a table of string keys and string values.

searchFinish
ListG searchFinish(AsyncResultIF result)

Complete asynchronous operation to search for items in a collection.

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

Search for items in @collection matching the @attributes, and return their DBus object paths. Only the specified collection is searched. The @attributes should be a table of string keys and string values.

searchForDbusPathsFinish
string[] searchForDbusPathsFinish(AsyncResultIF result)

Complete asynchronous operation to search for items in a collection.

searchForDbusPathsSync
string[] searchForDbusPathsSync(Schema schema, HashTable attributes, Cancellable cancellable)

Search for items matching the @attributes in @collection, and return their DBus object paths. The @attributes should be a table of string keys and string values.

searchSync
ListG searchSync(Schema schema, HashTable attributes, SecretSearchFlags flags, Cancellable cancellable)

Search for items matching the @attributes in the @collection. The @attributes should be a table of string keys and string values.

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

Set the label of this collection.

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 collection.

Static functions

create
void create(Service service, string label, string alias_, SecretCollectionCreateFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Create a new collection in the secret service.

createFinish
Collection createFinish(AsyncResultIF result)

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

createSync
Collection createSync(Service service, string label, string alias_, SecretCollectionCreateFlags flags, Cancellable cancellable)

Create a new collection in the secret service.

forAlias
void forAlias(Service service, string alias_, SecretCollectionFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Lookup which collection is assigned to this alias. Aliases help determine well known collections, such as 'default'.

forAliasFinish
Collection forAliasFinish(AsyncResultIF result)

Finish an asynchronous operation to lookup which collection is assigned to an alias.

forAliasSync
Collection forAliasSync(Service service, string alias_, SecretCollectionFlags flags, Cancellable cancellable)

Lookup which collection is assigned to this alias. Aliases help determine well known collections, such as 'default'.

getType
GType getType()
newForDbusPath
void newForDbusPath(Service service, string collectionPath, SecretCollectionFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

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

Variables

secretCollection
SecretCollection* secretCollection;

the main Gtk struct

Meta