Gjsify LogoGjsify Logo

Structure specifying a supported presence status.

In addition to the fields documented here, there are two gpointer fields which must currently be %NULL. A meaning may be defined for these in a future version of telepathy-glib.

record

Hierarchy

  • PresenceStatusSpec

Index

Constructors

  • Parameters

    • name: string

      the name of the new presence status

    • type: ConnectionPresenceType

      the category into which this presence status falls

    • canSetOnSelf: boolean

      %TRUE if the user can set this presence status on themselves

    • hasMessage: boolean

      %TRUE if this presence status is accompanied by an optional human-readable message

    Returns PresenceStatusSpec

Properties

name: string

String identifier of the presence status

field

An array of #TpPresenceStatusOptionalArgumentSpec structures representing the optional arguments for this status, terminated by a NULL name. If there are no optional arguments for a status, this can be NULL. In modern Telepathy connection managers, the only optional argument should be a string (type "s") named "message" on statuses that have an optional human-readable message. All other optional arguments are deprecated.

field

A type value, as specified by #TpConnectionPresenceType

field
self: boolean

Indicates if this status may be set on yourself

field
name: string

Methods

  • canSetOnSelf(): boolean
  • Copy a presence status specification.

    If self has optional arguments other than a string named "message", they are not copied. Optional arguments with other names or types are deprecated.

    Returns PresenceStatusSpec

  • free(): void
  • Free a presence status specification produced by tp_presence_status_spec_new() or tp_presence_status_spec_copy().

    Returns void

  • getName(): string
  • hasMessage(): boolean
  • Parameters

    • name: string

      the name of the new presence status

    • type: ConnectionPresenceType

      the category into which this presence status falls

    • canSetOnSelf: boolean

      %TRUE if the user can set this presence status on themselves

    • hasMessage: boolean

      %TRUE if this presence status is accompanied by an optional human-readable message

    Returns PresenceStatusSpec

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