comparison libpurple/request.h @ 29842:4eb6ac47f01f

propagate from branch 'im.pidgin.cpw.malu.ft_thumbnails' (head 98d8db26c6d12378d0113a97c8b3f989233a5cbc) to branch 'im.pidgin.pidgin' (head 024731c3cb9e8c0e0479d91f68aeaf7fae9a978b)
author Marcus Lundblad <ml@update.uu.se>
date Wed, 28 Apr 2010 19:27:33 +0000
parents 2a1e4a000e87
children e72f6383095b
comparison
equal deleted inserted replaced
29781:65c7e53d4bdb 29842:4eb6ac47f01f
235 void *(*request_folder)(const char *title, const char *dirname, 235 void *(*request_folder)(const char *title, const char *dirname,
236 GCallback ok_cb, GCallback cancel_cb, 236 GCallback ok_cb, GCallback cancel_cb,
237 PurpleAccount *account, const char *who, 237 PurpleAccount *account, const char *who,
238 PurpleConversation *conv, void *user_data); 238 PurpleConversation *conv, void *user_data);
239 239
240 /** @see purple_request_action_varg_with_icon(). */
241 void *(*request_action_with_icon)(const char *title, const char *primary,
242 const char *secondary, int default_action,
243 PurpleAccount *account, const char *who,
244 PurpleConversation *conv,
245 gconstpointer icon_data, gsize icon_size,
246 void *user_data,
247 size_t action_count, va_list actions);
248
240 void (*_purple_reserved1)(void); 249 void (*_purple_reserved1)(void);
241 void (*_purple_reserved2)(void); 250 void (*_purple_reserved2)(void);
242 void (*_purple_reserved3)(void); 251 void (*_purple_reserved3)(void);
243 void (*_purple_reserved4)(void);
244 } PurpleRequestUiOps; 252 } PurpleRequestUiOps;
245 253
246 typedef void (*PurpleRequestInputCb)(void *, const char *); 254 typedef void (*PurpleRequestInputCb)(void *, const char *);
247 255
248 /** The type of callbacks passed to purple_request_action(). The first 256 /** The type of callbacks passed to purple_request_action(). The first
1391 const char *primary, const char *secondary, int default_action, 1399 const char *primary, const char *secondary, int default_action,
1392 PurpleAccount *account, const char *who, PurpleConversation *conv, 1400 PurpleAccount *account, const char *who, PurpleConversation *conv,
1393 void *user_data, size_t action_count, va_list actions); 1401 void *user_data, size_t action_count, va_list actions);
1394 1402
1395 /** 1403 /**
1404 * Version of purple_request_action() supplying an image for the UI to
1405 * optionally display as an icon in the dialog; see its documentation
1406 * @since 2.7.0
1407 */
1408 void *purple_request_action_with_icon(void *handle, const char *title,
1409 const char *primary, const char *secondary, int default_action,
1410 PurpleAccount *account, const char *who, PurpleConversation *conv,
1411 gconstpointer icon_data, gsize icon_size, void *user_data,
1412 size_t action_count, ...);
1413
1414 /**
1415 * <tt>va_list</tt> version of purple_request_action_with_icon();
1416 * see its documentation.
1417 * @since 2.7.0
1418 */
1419 void *purple_request_action_varg_with_icon(void *handle, const char *title,
1420 const char *primary, const char *secondary, int default_action,
1421 PurpleAccount *account, const char *who, PurpleConversation *conv,
1422 gconstpointer icon_data, gsize icon_size,
1423 void *user_data, size_t action_count, va_list actions);
1424
1425
1426 /**
1396 * Displays groups of fields for the user to fill in. 1427 * Displays groups of fields for the user to fill in.
1397 * 1428 *
1398 * @param handle The plugin or connection handle. For some things this 1429 * @param handle The plugin or connection handle. For some things this
1399 * is <em>extremely</em> important. See the comments on 1430 * is <em>extremely</em> important. See the comments on
1400 * purple_request_input(). 1431 * purple_request_input().
1475 purple_request_action((handle), (title), (primary), (secondary), \ 1506 purple_request_action((handle), (title), (primary), (secondary), \
1476 (default_action), account, who, conv, (user_data), 2, \ 1507 (default_action), account, who, conv, (user_data), 2, \
1477 _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb)) 1508 _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb))
1478 1509
1479 /** 1510 /**
1511 * A wrapper for purple_request_action_with_icon() that uses Accept and Cancel
1512 * buttons.
1513 */
1514 #define purple_request_accept_cancel_with_icon(handle, title, primary, secondary, \
1515 default_action, account, who, conv, \
1516 icon_data, icon_size, \
1517 user_data, accept_cb, cancel_cb) \
1518 purple_request_action_with_icon((handle), (title), (primary), (secondary), \
1519 (default_action), account, who, conv, icon_data, icon_size, \
1520 (user_data), 2, \
1521 _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb))
1522
1523 /**
1480 * Displays a file selector request dialog. Returns the selected filename to 1524 * Displays a file selector request dialog. Returns the selected filename to
1481 * the callback. Can be used for either opening a file or saving a file. 1525 * the callback. Can be used for either opening a file or saving a file.
1482 * 1526 *
1483 * @param handle The plugin or connection handle. For some things this 1527 * @param handle The plugin or connection handle. For some things this
1484 * is <em>extremely</em> important. See the comments on 1528 * is <em>extremely</em> important. See the comments on