libpurple/request.h

branch
purple-ssl-to-gio
changeset 37624
a61e614c743d
parent 37113
cb24b99a09ea
child 38716
b9bed228745a
equal deleted inserted replaced
37623:53718d3c53f0 37624:a61e614c743d
27 * @short_description: <filename>request.h</filename> 27 * @short_description: <filename>request.h</filename>
28 * @title: Request API 28 * @title: Request API
29 */ 29 */
30 30
31 #include <stdlib.h> 31 #include <stdlib.h>
32 #include <gio/gio.h>
32 #include <glib-object.h> 33 #include <glib-object.h>
33 #include <glib.h> 34 #include <glib.h>
34 35
35 #include "certificate.h"
36 #include "conversation.h" 36 #include "conversation.h"
37 #include "request-datasheet.h" 37 #include "request-datasheet.h"
38 38
39 #define PURPLE_TYPE_REQUEST_UI_OPS (purple_request_ui_ops_get_type()) 39 #define PURPLE_TYPE_REQUEST_UI_OPS (purple_request_ui_ops_get_type())
40 40
1791 * 1791 *
1792 * Returns: The new field. 1792 * Returns: The new field.
1793 */ 1793 */
1794 PurpleRequestField *purple_request_field_certificate_new(const char *id, 1794 PurpleRequestField *purple_request_field_certificate_new(const char *id,
1795 const char *text, 1795 const char *text,
1796 PurpleCertificate *cert); 1796 GTlsCertificate *cert);
1797 1797
1798 /** 1798 /**
1799 * purple_request_field_certificate_get_value: 1799 * purple_request_field_certificate_get_value:
1800 * @field: The field. 1800 * @field: The field.
1801 * 1801 *
1802 * Returns the certificate in a certificate field. 1802 * Returns the certificate in a certificate field.
1803 * 1803 *
1804 * Returns: The certificate. 1804 * Returns: The certificate.
1805 */ 1805 */
1806 PurpleCertificate *purple_request_field_certificate_get_value( 1806 GTlsCertificate *purple_request_field_certificate_get_value(
1807 const PurpleRequestField *field); 1807 const PurpleRequestField *field);
1808 1808
1809 /**************************************************************************/ 1809 /**************************************************************************/
1810 /* Datasheet Field API */ 1810 /* Datasheet Field API */
1811 /**************************************************************************/ 1811 /**************************************************************************/
2250 * @title: The title of the message, or %NULL if it should have 2250 * @title: The title of the message, or %NULL if it should have
2251 * no title. 2251 * no title.
2252 * @primary: The main point of the message, or %NULL if you're 2252 * @primary: The main point of the message, or %NULL if you're
2253 * feeling enigmatic. 2253 * feeling enigmatic.
2254 * @secondary: Secondary information, or %NULL if there is none. 2254 * @secondary: Secondary information, or %NULL if there is none.
2255 * @cert: The #PurpleCertificate associated with this request. 2255 * @cert: The #GTlsCertificate associated with this request.
2256 * @ok_text: The text for the <literal>OK</literal> button, which may not 2256 * @ok_text: The text for the <literal>OK</literal> button, which may not
2257 * be %NULL. 2257 * be %NULL.
2258 * @ok_cb: The callback for the <literal>OK</literal> button, which may 2258 * @ok_cb: The callback for the <literal>OK</literal> button, which may
2259 * not be %NULL. 2259 * not be %NULL.
2260 * @cancel_text: The text for the <literal>Cancel</literal> button, which may 2260 * @cancel_text: The text for the <literal>Cancel</literal> button, which may
2268 * This is often represented as a dialog with a button for each action. 2268 * This is often represented as a dialog with a button for each action.
2269 * 2269 *
2270 * Returns: A UI-specific handle. 2270 * Returns: A UI-specific handle.
2271 */ 2271 */
2272 void *purple_request_certificate(void *handle, const char *title, 2272 void *purple_request_certificate(void *handle, const char *title,
2273 const char *primary, const char *secondary, PurpleCertificate *cert, 2273 const char *primary, const char *secondary, GTlsCertificate *cert,
2274 const char *ok_text, GCallback ok_cb, 2274 const char *ok_text, GCallback ok_cb,
2275 const char *cancel_text, GCallback cancel_cb, 2275 const char *cancel_text, GCallback cancel_cb,
2276 void *user_data); 2276 void *user_data);
2277 2277
2278 /**************************************************************************/ 2278 /**************************************************************************/

mercurial