| 234 void *(*request_folder)(const char *title, const char *dirname, |
234 void *(*request_folder)(const char *title, const char *dirname, |
| 235 GCallback ok_cb, GCallback cancel_cb, |
235 GCallback ok_cb, GCallback cancel_cb, |
| 236 PurpleAccount *account, const char *who, |
236 PurpleAccount *account, const char *who, |
| 237 PurpleConversation *conv, void *user_data); |
237 PurpleConversation *conv, void *user_data); |
| 238 |
238 |
| |
239 /** @see purple_request_action_varg_with_icon(). */ |
| |
240 void *(*request_action_with_icon)(const char *title, const char *primary, |
| |
241 const char *secondary, int default_action, |
| |
242 PurpleAccount *account, const char *who, |
| |
243 PurpleConversation *conv, |
| |
244 gconstpointer icon_data, gsize icon_size, |
| |
245 void *user_data, |
| |
246 size_t action_count, va_list actions); |
| |
247 |
| 239 void (*_purple_reserved1)(void); |
248 void (*_purple_reserved1)(void); |
| 240 void (*_purple_reserved2)(void); |
249 void (*_purple_reserved2)(void); |
| 241 void (*_purple_reserved3)(void); |
250 void (*_purple_reserved3)(void); |
| 242 void (*_purple_reserved4)(void); |
|
| 243 } PurpleRequestUiOps; |
251 } PurpleRequestUiOps; |
| 244 |
252 |
| 245 typedef void (*PurpleRequestInputCb)(void *, const char *); |
253 typedef void (*PurpleRequestInputCb)(void *, const char *); |
| 246 |
254 |
| 247 /** The type of callbacks passed to purple_request_action(). The first |
255 /** The type of callbacks passed to purple_request_action(). The first |
| 1365 const char *primary, const char *secondary, int default_action, |
1373 const char *primary, const char *secondary, int default_action, |
| 1366 PurpleAccount *account, const char *who, PurpleConversation *conv, |
1374 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 1367 void *user_data, size_t action_count, va_list actions); |
1375 void *user_data, size_t action_count, va_list actions); |
| 1368 |
1376 |
| 1369 /** |
1377 /** |
| |
1378 * Version of purple_request_action() supplying an image for the UI to |
| |
1379 * optionally display as an icon in the dialog; see its documentation |
| |
1380 */ |
| |
1381 void *purple_request_action_with_icon(void *handle, const char *title, |
| |
1382 const char *primary, const char *secondary, int default_action, |
| |
1383 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| |
1384 gconstpointer icon_data, gsize icon_size, void *user_data, |
| |
1385 size_t action_count, ...); |
| |
1386 |
| |
1387 /** |
| |
1388 * <tt>va_list</tt> version of purple_request_action_with_icon(); |
| |
1389 * see its documentation. |
| |
1390 */ |
| |
1391 void *purple_request_action_varg_with_icon(void *handle, const char *title, |
| |
1392 const char *primary, const char *secondary, int default_action, |
| |
1393 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| |
1394 gconstpointer icon_data, gsize icon_size, |
| |
1395 void *user_data, size_t action_count, va_list actions); |
| |
1396 |
| |
1397 |
| |
1398 /** |
| 1370 * Displays groups of fields for the user to fill in. |
1399 * Displays groups of fields for the user to fill in. |
| 1371 * |
1400 * |
| 1372 * @param handle The plugin or connection handle. For some things this |
1401 * @param handle The plugin or connection handle. For some things this |
| 1373 * is <em>extremely</em> important. See the comments on |
1402 * is <em>extremely</em> important. See the comments on |
| 1374 * purple_request_input(). |
1403 * purple_request_input(). |
| 1449 purple_request_action((handle), (title), (primary), (secondary), \ |
1478 purple_request_action((handle), (title), (primary), (secondary), \ |
| 1450 (default_action), account, who, conv, (user_data), 2, \ |
1479 (default_action), account, who, conv, (user_data), 2, \ |
| 1451 _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb)) |
1480 _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb)) |
| 1452 |
1481 |
| 1453 /** |
1482 /** |
| |
1483 * A wrapper for purple_request_action_with_icon() that uses Accept and Cancel |
| |
1484 * buttons. |
| |
1485 */ |
| |
1486 #define purple_request_accept_cancel_with_icon(handle, title, primary, secondary, \ |
| |
1487 default_action, account, who, conv, \ |
| |
1488 icon_data, icon_size, \ |
| |
1489 user_data, accept_cb, cancel_cb) \ |
| |
1490 purple_request_action_with_icon((handle), (title), (primary), (secondary), \ |
| |
1491 (default_action), account, who, conv, icon_data, icon_size, \ |
| |
1492 (user_data), 2, \ |
| |
1493 _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb)) |
| |
1494 |
| |
1495 /** |
| 1454 * Displays a file selector request dialog. Returns the selected filename to |
1496 * Displays a file selector request dialog. Returns the selected filename to |
| 1455 * the callback. Can be used for either opening a file or saving a file. |
1497 * the callback. Can be used for either opening a file or saving a file. |
| 1456 * |
1498 * |
| 1457 * @param handle The plugin or connection handle. For some things this |
1499 * @param handle The plugin or connection handle. For some things this |
| 1458 * is <em>extremely</em> important. See the comments on |
1500 * is <em>extremely</em> important. See the comments on |