| 60 * |
60 * |
| 61 * This is typically only used by libpurple itself. |
61 * This is typically only used by libpurple itself. |
| 62 * |
62 * |
| 63 * Returns: The new instance. |
63 * Returns: The new instance. |
| 64 * |
64 * |
| 65 * Since: 3.0.0 |
65 * Since: 3.0 |
| 66 */ |
66 */ |
| 67 PURPLE_AVAILABLE_IN_3_0 |
67 PURPLE_AVAILABLE_IN_3_0 |
| 68 PurpleAuthorizationRequest *purple_authorization_request_new(PurpleAccount *account, const gchar *username); |
68 PurpleAuthorizationRequest *purple_authorization_request_new(PurpleAccount *account, const gchar *username); |
| 69 |
69 |
| 70 /** |
70 /** |
| 99 * @alias: (nullable): The alias of the remote user. |
99 * @alias: (nullable): The alias of the remote user. |
| 100 * |
100 * |
| 101 * Sets the alias of the remote user to @alias. User interfaces can use this |
101 * Sets the alias of the remote user to @alias. User interfaces can use this |
| 102 * when presenting the authorization request to the end user. |
102 * when presenting the authorization request to the end user. |
| 103 * |
103 * |
| 104 * Since: 3.0.0 |
104 * Since: 3.0 |
| 105 */ |
105 */ |
| 106 PURPLE_AVAILABLE_IN_3_0 |
106 PURPLE_AVAILABLE_IN_3_0 |
| 107 void purple_authorization_request_set_alias(PurpleAuthorizationRequest *request, const gchar *alias); |
107 void purple_authorization_request_set_alias(PurpleAuthorizationRequest *request, const gchar *alias); |
| 108 |
108 |
| 109 /** |
109 /** |
| 125 * @message: (nullable): An optional message from the remote user. |
125 * @message: (nullable): An optional message from the remote user. |
| 126 * |
126 * |
| 127 * Sets an optional message from remote user, that the user interface can |
127 * Sets an optional message from remote user, that the user interface can |
| 128 * display to the end user. |
128 * display to the end user. |
| 129 * |
129 * |
| 130 * Since: 3.0.0 |
130 * Since: 3.0 |
| 131 */ |
131 */ |
| 132 PURPLE_AVAILABLE_IN_3_0 |
132 PURPLE_AVAILABLE_IN_3_0 |
| 133 void purple_authorization_request_set_message(PurpleAuthorizationRequest *request, const gchar *message); |
133 void purple_authorization_request_set_message(PurpleAuthorizationRequest *request, const gchar *message); |
| 134 |
134 |
| 135 /** |
135 /** |
| 151 * @add: Whether or not to ask the user to add the remote user back. |
151 * @add: Whether or not to ask the user to add the remote user back. |
| 152 * |
152 * |
| 153 * Sets whether or not the user interface should ask the end user to add the |
153 * Sets whether or not the user interface should ask the end user to add the |
| 154 * remote user if the remote user was accepted. |
154 * remote user if the remote user was accepted. |
| 155 * |
155 * |
| 156 * Since: 3.0.0 |
156 * Since: 3.0 |
| 157 */ |
157 */ |
| 158 PURPLE_AVAILABLE_IN_3_0 |
158 PURPLE_AVAILABLE_IN_3_0 |
| 159 void purple_authorization_request_set_add(PurpleAuthorizationRequest *request, gboolean add); |
159 void purple_authorization_request_set_add(PurpleAuthorizationRequest *request, gboolean add); |
| 160 |
160 |
| 161 /** |
161 /** |
| 181 * called by the user interface when the user has clicked the accept button. |
181 * called by the user interface when the user has clicked the accept button. |
| 182 * |
182 * |
| 183 * If this is called multiple times, or called after |
183 * If this is called multiple times, or called after |
| 184 * [method@AuthorizationRequest.deny] then this does nothing. |
184 * [method@AuthorizationRequest.deny] then this does nothing. |
| 185 * |
185 * |
| 186 * Since: 3.0.0 |
186 * Since: 3.0 |
| 187 */ |
187 */ |
| 188 PURPLE_AVAILABLE_IN_3_0 |
188 PURPLE_AVAILABLE_IN_3_0 |
| 189 void purple_authorization_request_accept(PurpleAuthorizationRequest *request); |
189 void purple_authorization_request_accept(PurpleAuthorizationRequest *request); |
| 190 |
190 |
| 191 /** |
191 /** |
| 197 * called by the user interface when the user has clicked the deny button. |
197 * called by the user interface when the user has clicked the deny button. |
| 198 * |
198 * |
| 199 * If this is called multiple times, or called after |
199 * If this is called multiple times, or called after |
| 200 * [method@AuthorizationRequest.accept] then this does nothing. |
200 * [method@AuthorizationRequest.accept] then this does nothing. |
| 201 * |
201 * |
| 202 * Since: 3.0.0 |
202 * Since: 3.0 |
| 203 */ |
203 */ |
| 204 PURPLE_AVAILABLE_IN_3_0 |
204 PURPLE_AVAILABLE_IN_3_0 |
| 205 void purple_authorization_request_deny(PurpleAuthorizationRequest *request, const gchar *message); |
205 void purple_authorization_request_deny(PurpleAuthorizationRequest *request, const gchar *message); |
| 206 |
206 |
| 207 G_END_DECLS |
207 G_END_DECLS |