Class

PurpleAuthorizationRequest

Description [src]

final class Purple.AuthorizationRequest : GObject.Object {
  /* No available fields */
}

PurpleAuthorizationRequest is a data structure that contains all of the information when someone has requested authorization to add you to their contact list.

Available since:3.0.0

Ancestors

Constructors

purple_authorization_request_new

Creates a new PurpleAuthorizationRequest for username on account.

Available since: 3.0.0

Instance methods

purple_authorization_request_accept

Emits the PurpleAuthorizationRequest::accepted signal. This is typically called by the user interface when the user has clicked the accept button.

Available since: 3.0.0

purple_authorization_request_deny

Emits the PurpleAuthorizationRequest::denied signal. This is typically called by the user interface when the user has clicked the deny button.

Available since: 3.0.0

purple_authorization_request_get_account

Gets the PurpleAccount for request.

Available since: 3.0.0

purple_authorization_request_get_add

Gets whether or not the user interface should ask the end user to add the remote user if the end user accepted the remote user’s friend request.

Available since: 3.0.0

purple_authorization_request_get_alias

Gets the alias of the remote user if one was set.

Available since: 3.0.0

purple_authorization_request_get_message

Gets the message that was optionally sent by the remote user.

Available since: 3.0.0

purple_authorization_request_get_username

Gets the username for the user requesting authorization.

Available since: 3.0.0

purple_authorization_request_set_add

Sets whether or not the user interface should ask the end user to add the remote user if the remote user was accepted.

Available since: 3.0.0

purple_authorization_request_set_alias

Sets the alias of the remote user to alias. User interfaces can use this when presenting the authorization request to the end user.

Available since: 3.0.0

purple_authorization_request_set_message

Sets an optional message from remote user, that the user interface can display to the end user.

Available since: 3.0.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Purple.AuthorizationRequest:account

The account that this authorization request is for.

Available since: 3.0.0

Purple.AuthorizationRequest:add

Whether or not the user interface should ask the end user to add the remote user after accepting the end user’s friend request.

Available since: 3.0.0

Purple.AuthorizationRequest:alias

The alias of the remote user that is requesting authorization.

Available since: 3.0.0

Purple.AuthorizationRequest:message

The optional message sent from the remote user.

Available since: 3.0.0

Purple.AuthorizationRequest:username

The username of the remote user that is requesting authorization.

Available since: 3.0.0

Signals

Purple.AuthorizationRequest::accepted

Emitted when the user has accepted request. This is typically emitted by the user interface calling purple_authorization_request_accept().

Available since: 3.0.0

Purple.AuthorizationRequest::denied

Emitted when the user has denied request. This is typically emitted by the user interface calling purple_authorization_request_deny().

Available since: 3.0.0

Signals inherited from GObject (1)
GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct PurpleAuthorizationRequestClass {
  GObjectClass parent_class;
  
}
Class members
parent_class
GObjectClass
  No description available.