Gjsify LogoGjsify Logo

Index

Enumerations

Classes

Interfaces

Type Aliases

Variables

Functions

Type Aliases

Bitfield: number

Variables

DBUS_INTERFACE: string

The DBUS interface used by the PackageKit service.

DBUS_INTERFACE_OFFLINE: string

The DBUS interface for PackageKit offline update functionality

DBUS_INTERFACE_TRANSACTION: string

The DBUS interface for PackageKit transactions.

DBUS_PATH: string

The DBUS path to the PackageKit service.

DBUS_SERVICE: string

The DBUS name for the PackageKit system service.

DESKTOP_DEFAULT_APPLICATION_DIR: string

The default location for the desktop files

MAJOR_VERSION: number
MICRO_VERSION: number
MINOR_VERSION: number
OFFLINE_DESTDIR: string
OFFLINE_RESULTS_GROUP: string
PACKAGE_IDS_DELIM: string
PACKAGE_ID_ARCH: number

Alias to get an arch field from the result of pk_package_id_split

PACKAGE_ID_DATA: number

Alias to get a data field from the result of pk_package_id_split

PACKAGE_ID_NAME: number

Alias to get a name field from the result of pk_package_id_split

PACKAGE_ID_VERSION: number

Alias to get a version field from the result of pk_package_id_split

SYSTEM_PACKAGE_CACHE_FILENAME: string
SYSTEM_PACKAGE_LIST_FILENAME: string

Functions

  • authorize_type_enum_from_string(authorize_type: string): AuthorizeEnum
  • authorize_type_enum_to_string(authorize_type: AuthorizeEnum): string
  • client_error_quark(): Quark
  • control_error_quark(): Quark
  • debug_add_log_domain(log_domain: string): void
  • debug_is_verbose(): boolean
  • debug_set_verbose(verbose: boolean): void
  • enum_find_string(table: EnumMatch, value: number): string
  • Search for a enum value in a table of constants.

    Parameters

    • table: EnumMatch

      A #PkEnumMatch enum table of values

    • value: number

      the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG

    Returns string

  • enum_find_value(table: EnumMatch, string: string): number
  • Search for a string value in a table of constants.

    Parameters

    • table: EnumMatch

      A #PkEnumMatch enum table of values

    • string: string

      the string constant to search for, e.g. "desktop-gnome"

    Returns number

  • exit_enum_from_string(exit: string): ExitEnum
  • exit_enum_to_string(exit: ExitEnum): string
  • filter_bitfield_from_string(filters: string): Bitfield
  • filter_bitfield_to_string(filters: number): string
  • filter_enum_from_string(filter: string): FilterEnum
  • get_distro_id(): string
  • group_bitfield_from_string(groups: string): Bitfield
  • group_bitfield_to_string(groups: number): string
  • group_enum_from_string(group: string): GroupEnum
  • group_enum_to_string(group: GroupEnum): string
  • info_enum_from_string(info: string): InfoEnum
  • info_enum_to_localised_past(info: InfoEnum): string
  • info_enum_to_localised_present(info: InfoEnum): string
  • info_enum_to_string(info: InfoEnum): string
  • iso8601_from_date(date: GLib.Date): string
  • iso8601_present(): string
  • offline_auth_cancel(): boolean
  • offline_auth_clear_results(): boolean
  • offline_auth_invalidate(): boolean
  • offline_auth_set_prepared_ids(package_ids: string): boolean
  • offline_auth_set_prepared_upgrade(name: string, release_ver: string): boolean
  • offline_auth_set_results(results: Results): boolean
  • Cancels the offline operation that has been scheduled. If there is no scheduled offline operation then this method returns with success. The function always allows user interaction. To change the behavior, use pk_offline_cancel_with_flags().

    Parameters

    Returns boolean

  • Clears the last offline operation report, which may be success or failure. If the report does not exist then this method returns success. The function always allows user interaction. To change the behavior, use pk_offline_clear_results_with_flags().

    Parameters

    Returns boolean

  • offline_error_quark(): Quark
  • offline_get_prepared_ids(): string[]
  • offline_get_prepared_upgrade(name: string, release_ver: string): boolean
  • offline_get_prepared_upgrade_name(): string
  • offline_get_prepared_upgrade_version(): string
  • offline_get_results_mtime(): number
  • Triggers the offline update so that the next reboot will perform the pending transaction. The function always allows user interaction. To change the behavior, use pk_offline_trigger_with_flags().

    Parameters

    Returns boolean

  • Triggers the offline system upgrade so that the next reboot will perform the pending transaction. The function always allows user interaction. To change the behavior, use pk_offline_trigger_upgrade_with_flags().

    Parameters

    Returns boolean

  • polkit_agent_close(): void
  • polkit_agent_open(): number
  • ptr_array_to_strv(array: string[]): string[]
  • Form a composite string array of strings. The data in the GPtrArray is copied.

    Parameters

    • array: string[]

      the GPtrArray of strings

    Returns string[]

  • role_bitfield_from_string(roles: string): Bitfield
  • role_bitfield_to_string(roles: number): string
  • role_enum_from_string(role: string): RoleEnum
  • role_enum_to_localised_present(role: RoleEnum): string
  • role_enum_to_string(role: RoleEnum): string
  • sig_type_enum_from_string(sig_type: string): SigTypeEnum
  • status_enum_from_string(status: string): StatusEnum
  • status_enum_to_localised_text(status: StatusEnum): string
  • transaction_flag_bitfield_from_string(transaction_flags: string): Bitfield
  • Converts text representation to its enumerated type bitfield, or 0 for invalid

    Parameters

    • transaction_flags: string

      the enumerated constant value, e.g. "only-trusted;simulate"

    Returns Bitfield

  • transaction_flag_bitfield_to_string(transaction_flags: number): string

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