Collection

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

#SecretCollection represents a collection of secret items stored in the Secret Service.

A collection can be in a locked or unlocked state. Use method@SecretService.lock or method@SecretService.unlock to lock or unlock the collection.

Use the property@SecretCollection:items property or method@SecretCollection.get_items to lookup the items in the collection. There may not be any items exposed when the collection is locked.

class Collection : DBusProxy {}

Members

Functions

deleteFinish
bool deleteFinish(gio.async_result.AsyncResult result)

Complete operation to delete this collection.

deleteSync
bool deleteSync(gio.cancellable.Cancellable cancellable)

Delete this collection.

delete_
void delete_(gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Delete this collection.

getCreated
ulong getCreated()

Get the created date and time of the collection.

getFlags
secret.types.CollectionFlags getFlags()

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

getItems
secret.item.Item[] 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.

getService
secret.service.Service getService()

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

loadItems
void loadItems(gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Ensure that the #SecretCollection proxy has loaded all the items present in the Secret Service.

loadItemsFinish
bool loadItemsFinish(gio.async_result.AsyncResult result)

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

loadItemsSync
bool loadItemsSync(gio.cancellable.Cancellable cancellable)

Ensure that the #SecretCollection proxy has loaded all the items present in the Secret Service. This affects the result of secret.collection.Collection.getItems.

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(secret.schema.Schema schema, string[string] attributes, secret.types.SearchFlags flags, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

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

searchFinish
secret.item.Item[] searchFinish(gio.async_result.AsyncResult result)

Complete asynchronous operation to search for items in a collection.

searchSync
secret.item.Item[] searchSync(secret.schema.Schema schema, string[string] attributes, secret.types.SearchFlags flags, gio.cancellable.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, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Set the label of this collection.

setLabelFinish
bool setLabelFinish(gio.async_result.AsyncResult result)

Complete asynchronous operation to set the label of this collection.

setLabelSync
bool setLabelSync(string label, gio.cancellable.Cancellable cancellable)

Set the label of this collection.

Static functions

create
void create(secret.service.Service service, string label, string alias_, secret.types.CollectionCreateFlags flags, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Create a new collection in the secret service.

createFinish
secret.collection.Collection createFinish(gio.async_result.AsyncResult result)

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

createSync
secret.collection.Collection createSync(secret.service.Service service, string label, string alias_, secret.types.CollectionCreateFlags flags, gio.cancellable.Cancellable cancellable)

Create a new collection in the secret service.

forAlias
void forAlias(secret.service.Service service, string alias_, secret.types.CollectionFlags flags, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

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

forAliasFinish
secret.collection.Collection forAliasFinish(gio.async_result.AsyncResult result)

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

forAliasSync
secret.collection.Collection forAliasSync(secret.service.Service service, string alias_, secret.types.CollectionFlags flags, gio.cancellable.Cancellable cancellable)

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

Inherited Members

From DBusProxy

newFinish
gio.dbus_proxy.DBusProxy newFinish(gio.async_result.AsyncResult res)

Finishes creating a #GDBusProxy.

newForBusFinish
gio.dbus_proxy.DBusProxy newForBusFinish(gio.async_result.AsyncResult res)

Finishes creating a #GDBusProxy.

newForBusSync
gio.dbus_proxy.DBusProxy newForBusSync(gio.types.BusType busType, gio.types.DBusProxyFlags flags, gio.dbus_interface_info.DBusInterfaceInfo info, string name, string objectPath, string interfaceName, gio.cancellable.Cancellable cancellable)

Like gio.dbus_proxy.DBusProxy.newSync but takes a #GBusType instead of a #GDBusConnection.

newSync
gio.dbus_proxy.DBusProxy newSync(gio.dbus_connection.DBusConnection connection, gio.types.DBusProxyFlags flags, gio.dbus_interface_info.DBusInterfaceInfo info, string name, string objectPath, string interfaceName, gio.cancellable.Cancellable cancellable)

Creates a proxy for accessing interface_name on the remote object at object_path owned by name at connection and synchronously loads D-Bus properties unless the gio.types.DBusProxyFlags.DoNotLoadProperties flag is used.

new_
void new_(gio.dbus_connection.DBusConnection connection, gio.types.DBusProxyFlags flags, gio.dbus_interface_info.DBusInterfaceInfo info, string name, string objectPath, string interfaceName, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Creates a proxy for accessing interface_name on the remote object at object_path owned by name at connection and asynchronously loads D-Bus properties unless the gio.types.DBusProxyFlags.DoNotLoadProperties flag is used. Connect to the #GDBusProxy::g-properties-changed signal to get notified about property changes.

newForBus
void newForBus(gio.types.BusType busType, gio.types.DBusProxyFlags flags, gio.dbus_interface_info.DBusInterfaceInfo info, string name, string objectPath, string interfaceName, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Like gio.dbus_proxy.DBusProxy.new_ but takes a #GBusType instead of a #GDBusConnection.

call
void call(string methodName, glib.variant.VariantG parameters, gio.types.DBusCallFlags flags, int timeoutMsec, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Asynchronously invokes the method_name method on proxy.

callFinish
glib.variant.VariantG callFinish(gio.async_result.AsyncResult res)

Finishes an operation started with gio.dbus_proxy.DBusProxy.call.

callSync
glib.variant.VariantG callSync(string methodName, glib.variant.VariantG parameters, gio.types.DBusCallFlags flags, int timeoutMsec, gio.cancellable.Cancellable cancellable)

Synchronously invokes the method_name method on proxy.

callWithUnixFdList
void callWithUnixFdList(string methodName, glib.variant.VariantG parameters, gio.types.DBusCallFlags flags, int timeoutMsec, gio.unix_fdlist.UnixFDList fdList, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Like gio.dbus_proxy.DBusProxy.call but also takes a #GUnixFDList object.

callWithUnixFdListFinish
glib.variant.VariantG callWithUnixFdListFinish(gio.unix_fdlist.UnixFDList outFdList, gio.async_result.AsyncResult res)

Finishes an operation started with gio.dbus_proxy.DBusProxy.callWithUnixFdList.

callWithUnixFdListSync
glib.variant.VariantG callWithUnixFdListSync(string methodName, glib.variant.VariantG parameters, gio.types.DBusCallFlags flags, int timeoutMsec, gio.unix_fdlist.UnixFDList fdList, gio.unix_fdlist.UnixFDList outFdList, gio.cancellable.Cancellable cancellable)

Like gio.dbus_proxy.DBusProxy.callSync but also takes and returns #GUnixFDList objects.

getCachedProperty
glib.variant.VariantG getCachedProperty(string propertyName)

Looks up the value for a property from the cache. This call does no blocking IO.

getCachedPropertyNames
string[] getCachedPropertyNames()

Gets the names of all cached properties on proxy.

getConnection
gio.dbus_connection.DBusConnection getConnection()

Gets the connection proxy is for.

getDefaultTimeout
int getDefaultTimeout()

Gets the timeout to use if -1 (specifying default timeout) is passed as timeout_msec in the gio.dbus_proxy.DBusProxy.call and gio.dbus_proxy.DBusProxy.callSync functions.

getFlags
gio.types.DBusProxyFlags getFlags()

Gets the flags that proxy was constructed with.

getInterfaceInfo
gio.dbus_interface_info.DBusInterfaceInfo getInterfaceInfo()

Returns the #GDBusInterfaceInfo, if any, specifying the interface that proxy conforms to. See the #GDBusProxy:g-interface-info property for more details.

getInterfaceName
string getInterfaceName()

Gets the D-Bus interface name proxy is for.

getName
string getName()

Gets the name that proxy was constructed for.

getNameOwner
string getNameOwner()

The unique name that owns the name that proxy is for or null if no-one currently owns that name. You may connect to the #GObject::notify signal to track changes to the #GDBusProxy:g-name-owner property.

getObjectPath
string getObjectPath()

Gets the object path proxy is for.

setCachedProperty
void setCachedProperty(string propertyName, glib.variant.VariantG value)

If value is not null, sets the cached value for the property with name property_name to the value in value.

setDefaultTimeout
void setDefaultTimeout(int timeoutMsec)

Sets the timeout to use if -1 (specifying default timeout) is passed as timeout_msec in the gio.dbus_proxy.DBusProxy.call and gio.dbus_proxy.DBusProxy.callSync functions.

setInterfaceInfo
void setInterfaceInfo(gio.dbus_interface_info.DBusInterfaceInfo info)

Ensure that interactions with proxy conform to the given interface. See the #GDBusProxy:g-interface-info property for more details.

connectGPropertiesChanged
ulong connectGPropertiesChanged(T callback, Flag!"After" after)

Connect to GPropertiesChanged signal.

connectGSignal
ulong connectGSignal(string detail, T callback, Flag!"After" after)

Connect to GSignal signal.