comparison src/request.h @ 5482:a41149ee8a29

[gaim-migrate @ 5878] Added multiline support. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 22 May 2003 10:22:18 +0000
parents e8e498255369
children b7c0be69c749
comparison
equal deleted inserted replaced
5481:084147a0d9e4 5482:a41149ee8a29
43 */ 43 */
44 typedef struct 44 typedef struct
45 { 45 {
46 void *(*request_input)(const char *title, const char *primary, 46 void *(*request_input)(const char *title, const char *primary,
47 const char *secondary, const char *default_value, 47 const char *secondary, const char *default_value,
48 gboolean multiline,
48 const char *ok_text, GCallback ok_cb, 49 const char *ok_text, GCallback ok_cb,
49 const char *cancel_text, GCallback cancel_cb, 50 const char *cancel_text, GCallback cancel_cb,
50 void *user_data); 51 void *user_data);
51 void *(*request_choice)(const char *title, const char *primary, 52 void *(*request_choice)(const char *title, const char *primary,
52 const char *secondary, unsigned int default_value, 53 const char *secondary, unsigned int default_value,
55 void *user_data, va_list args); 56 void *user_data, va_list args);
56 void *(*request_action)(const char *title, const char *primary, 57 void *(*request_action)(const char *title, const char *primary,
57 const char *secondary, unsigned int default_action, 58 const char *secondary, unsigned int default_action,
58 void *user_data, va_list actions); 59 void *user_data, va_list actions);
59 60
60 void (*close_request)(GaimRequestType type, void *uihandle); 61 void (*close_request)(GaimRequestType type, void *ui_handle);
61 62
62 } GaimRequestUiOps; 63 } GaimRequestUiOps;
64
65 typedef void (*GaimRequestInputCb)(const char *, void *);
63 66
64 /**************************************************************************/ 67 /**************************************************************************/
65 /** @name Request API */ 68 /** @name Request API */
66 /**************************************************************************/ 69 /**************************************************************************/
67 /*@{*/ 70 /*@{*/
72 * @param handle The plugin or connection handle. 75 * @param handle The plugin or connection handle.
73 * @param title The title of the message. 76 * @param title The title of the message.
74 * @param primary The main point of the message. 77 * @param primary The main point of the message.
75 * @param secondary The secondary information. 78 * @param secondary The secondary information.
76 * @param default_value The default value. 79 * @param default_value The default value.
80 * @param multiline TRUE if the inputted text can span multiple lines.
77 * @param ok_text The text for the OK button. 81 * @param ok_text The text for the OK button.
78 * @param ok_cb The callback for the OK button. 82 * @param ok_cb The callback for the OK button.
79 * @param cancel_text The text for the cancel button. 83 * @param cancel_text The text for the cancel button.
80 * @param cancel_cb The callback for the cancel button. 84 * @param cancel_cb The callback for the cancel button.
81 * @param user_data The data to pass to the callback. 85 * @param user_data The data to pass to the callback.
82 * 86 *
83 * @return A UI-specific handle. 87 * @return A UI-specific handle.
84 */ 88 */
85 void *gaim_request_input(void *handle, const char *title, 89 void *gaim_request_input(void *handle, const char *title,
86 const char *primary, const char *secondary, 90 const char *primary, const char *secondary,
87 const char *default_value, 91 const char *default_value, gboolean multiline,
88 const char *ok_text, GCallback ok_cb, 92 const char *ok_text, GCallback ok_cb,
89 const char *cancel_text, GCallback cancel_cb, 93 const char *cancel_text, GCallback cancel_cb,
90 void *user_data); 94 void *user_data);
91 95
92 /** 96 /**