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

  • authorizeTypeEnumFromString(authorizeType: string): AuthorizeEnum
  • clientErrorQuark(): Quark
  • controlErrorQuark(): Quark
  • debugAddLogDomain(logDomain: string): void
  • debugIsVerbose(): boolean
  • debugSetVerbose(verbose: boolean): void
  • Set if verbose debugging is enabled.

    Parameters

    • verbose: boolean

      %TRUE if verbose debugging should be enabled.

    Returns void

  • enumFindString(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

  • enumFindValue(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

  • exitEnumFromString(exit: string): ExitEnum
  • Converts a text enumerated type to its unsigned integer representation

    Parameters

    • exit: string

      Text describing the enumerated type

    Returns ExitEnum

  • exitEnumToString(exit: ExitEnum): string
  • filterBitfieldFromString(filters: string): Bitfield
  • Converts text representation to its enumerated type bitfield, or 0 for invalid

    Parameters

    • filters: string

      the enumerated constant value, e.g. "available;~gui"

    Returns Bitfield

  • filterBitfieldToString(filters: number): string
  • Converts a enumerated type bitfield to its text representation

    Parameters

    • filters: number

      The enumerated type values

    Returns string

  • Converts a text enumerated type to its unsigned integer representation

    Parameters

    • filter: string

      Text describing the enumerated type

    Returns FilterEnum

  • getDistroId(): string
  • groupBitfieldFromString(groups: string): Bitfield
  • Converts text representation to its enumerated type bitfield

    Parameters

    • groups: string

      the enumerated constant value, e.g. "available;~gui"

    Returns Bitfield

  • groupBitfieldToString(groups: number): string
  • Converts a enumerated type bitfield to its text representation

    Parameters

    • groups: number

      The enumerated type values

    Returns string

  • groupEnumFromString(group: string): GroupEnum
  • Converts a text enumerated type to its unsigned integer representation

    Parameters

    • group: string

      Text describing the enumerated type

    Returns GroupEnum

  • infoEnumFromString(info: string): InfoEnum
  • Converts a text enumerated type to its unsigned integer representation

    Parameters

    • info: string

      Text describing the enumerated type

    Returns InfoEnum

  • infoEnumToLocalisedPast(info: InfoEnum): string
  • infoEnumToLocalisedPresent(info: InfoEnum): string
  • infoEnumToString(info: InfoEnum): string
  • iso8601FromDate(date: GLib.Date): string
  • iso8601Present(): string
  • offlineAuthCancel(): boolean
  • offlineAuthClearResults(): boolean
  • offlineAuthInvalidate(): boolean
  • offlineAuthSetPreparedIds(packageIds: string): boolean
  • offlineAuthSetPreparedUpgrade(name: string, releaseVer: string): boolean
  • offlineAuthSetResults(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

  • Cancels the offline operation that has been scheduled. If there is no scheduled offline operation then this method returns with success.

    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

  • Clears the last offline operation report, which may be success or failure. If the report does not exist then this method returns success.

    Parameters

    Returns boolean

  • offlineErrorQuark(): Quark
  • Gets the action that will be taken after the offline action has completed.

    An error is set if the the value %PK_OFFLINE_ACTION_UNKNOWN is returned.

    Returns OfflineAction

  • offlineGetPreparedIds(): string[]
  • offlineGetPreparedUpgrade(name: string, releaseVer: string): boolean
  • offlineGetPreparedUpgradeName(): string
  • offlineGetPreparedUpgradeVersion(): string
  • offlineGetResultsMtime(): 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

  • Triggers the offline system upgrade so that the next reboot will perform the pending transaction.

    Parameters

    Returns boolean

  • polkitAgentClose(): void
  • polkitAgentOpen(): number
  • ptrArrayToStrv(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[]

  • roleBitfieldFromString(roles: string): Bitfield
  • Converts text representation to its enumerated type bitfield

    Parameters

    • roles: string

      the enumerated constant value, e.g. "search-file;update-system"

    Returns Bitfield

  • roleBitfieldToString(roles: number): string
  • Converts a enumerated type bitfield to its text representation

    Parameters

    • roles: number

      The enumerated type values

    Returns string

  • roleEnumFromString(role: string): RoleEnum
  • Converts a text enumerated type to its unsigned integer representation

    Parameters

    • role: string

      Text describing the enumerated type

    Returns RoleEnum

  • roleEnumToLocalisedPresent(role: RoleEnum): string
  • roleEnumToString(role: RoleEnum): string
  • Converts a text enumerated type to its unsigned integer representation

    Parameters

    • status: string

      Text describing the enumerated type

    Returns StatusEnum

  • statusEnumToLocalisedText(status: StatusEnum): string
  • transactionFlagBitfieldFromString(transactionFlags: string): Bitfield
  • Converts text representation to its enumerated type bitfield, or 0 for invalid

    Parameters

    • transactionFlags: string

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

    Returns Bitfield

  • transactionFlagBitfieldToString(transactionFlags: number): string
  • Converts a enumerated type bitfield to its text representation

    Parameters

    • transactionFlags: number

      The enumerated type values

    Returns 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