Gjsify LogoGjsify Logo

GtkRecentInfo contains the metadata associated with an item in the recently used files list.

record

Hierarchy

  • RecentInfo

Index

Constructors

Properties

name: string

Methods

  • createAppInfo(appName: string): AppInfo
  • Creates a GAppInfo for the specified GtkRecentInfo

    In case of error, error will be set either with a %GTK_RECENT_MANAGER_ERROR or a %G_IO_ERROR

    Parameters

    • appName: string

      the name of the application that should be mapped to a GAppInfo; if %NULL is used then the default application for the MIME type is used

    Returns AppInfo

  • exists(): boolean
  • Checks whether the resource pointed by info still exists. At the moment this check is done only on resources pointing to local files.

    Returns boolean

  • getAge(): number
  • Gets the number of days elapsed since the last update of the resource pointed by info.

    Returns number

  • getApplicationInfo(appName: string): [boolean, string, number, GLib.DateTime]
  • Gets the data regarding the application that has registered the resource pointed by info.

    If the command line contains any escape characters defined inside the storage specification, they will be expanded.

    Parameters

    • appName: string

      the name of the application that has registered this item

    Returns [boolean, string, number, GLib.DateTime]

  • getApplications(): string[]
  • Retrieves the list of applications that have registered this resource.

    Returns string[]

  • getDescription(): string
  • Gets the (short) description of the resource.

    Returns string

  • getDisplayName(): string
  • Gets the name of the resource.

    If none has been defined, the basename of the resource is obtained.

    Returns string

  • getGroups(): string[]
  • Returns all groups registered for the recently used item info.

    The array of returned group names will be %NULL terminated, so length might optionally be %NULL.

    Returns string[]

  • getMimeType(): string
  • getPrivateHint(): boolean
  • Gets the value of the “private” flag.

    Resources in the recently used list that have this flag set to %TRUE should only be displayed by the applications that have registered them.

    Returns boolean

  • getShortName(): string
  • Computes a valid UTF-8 string that can be used as the name of the item in a menu or list.

    For example, calling this function on an item that refers to “file:///foo/bar.txt” will yield “bar.txt”.

    Returns string

  • getUri(): string
  • getUriDisplay(): string
  • Gets a displayable version of the resource’s URI.

    If the resource is local, it returns a local path; if the resource is not local, it returns the UTF-8 encoded content of [methodGtk.RecentInfo.get_uri].

    Returns string

  • hasApplication(appName: string): boolean
  • Checks whether an application registered this resource using app_name.

    Parameters

    • appName: string

      a string containing an application name

    Returns boolean

  • hasGroup(groupName: string): boolean
  • Checks whether group_name appears inside the groups registered for the recently used item info.

    Parameters

    • groupName: string

      name of a group

    Returns boolean

  • isLocal(): boolean
  • Checks whether the resource is local or not by looking at the scheme of its URI.

    Returns boolean

  • lastApplication(): string
  • Gets the name of the last application that have registered the recently used resource represented by info.

    Returns string

  • unref(): void
  • Decreases the reference count of info by one.

    If the reference count reaches zero, info is deallocated, and the memory freed.

    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