Gjsify LogoGjsify Logo

An item attribute. Set string if data type is %GNOME_KEYRING_ATTRIBUTE_TYPE_STRING or integer if data type is %GNOME_KEYRING_ATTRIBUTE_TYPE_UINT32

record

Hierarchy

  • Attribute

Index

Constructors

Properties

name: string

The name of the attribute.

field

The data type.

field
name: string

Methods

  • get_string(): string
  • Return the string value. It is an error to call this method if attribute.type is not #GNOME_KEYRING_ATTRIBUTE_TYPE_STRING. This method is mostly useful for language bindings which do not provide union access. In C you should just use attribute->value.string.

    Returns string

  • get_uint32(): number
  • Return the uint32 value. It is an error to call this method if attribute.type is not #GNOME_KEYRING_ATTRIBUTE_TYPE_UINT32. This method is mostly useful for language bindings which do not provide union access. In C you should just use attribute->value.integer.

    Returns number

  • list_append_string(attributes: GLib.Array, name: string, value: string): void
  • Store a key-value-pair with a string value in attributes.

    Parameters

    • attributes: GLib.Array

      A #GnomeKeyringAttributeList

    • name: string

      The name of the new attribute

    • value: string

      The value to store in attributes

    Returns void

  • list_append_uint32(attributes: GLib.Array, name: string, value: number): void
  • Store a key-value-pair with an unsigned 32bit number value in attributes.

    Parameters

    • attributes: GLib.Array

      A #GnomeKeyringAttributeList

    • name: string

      The name of the new attribute

    • value: number

      The value to store in attributes

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method