comparison src/request.h @ 8285:d335cc7bca54

[gaim-migrate @ 9009] Added a type hint to GaimRequestField. This will be used for neat stuff I'm planning on. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 18 Feb 2004 02:39:47 +0000
parents fa6395637e2c
children 89d9d004e3f3
comparison
equal deleted inserted replaced
8284:980b3bd976ae 8285:d335cc7bca54
63 { 63 {
64 GaimRequestFieldType type; 64 GaimRequestFieldType type;
65 65
66 char *id; 66 char *id;
67 char *label; 67 char *label;
68 char *type_hint;
68 69
69 gboolean visible; 70 gboolean visible;
70 71
71 union 72 union
72 { 73 {
362 void gaim_request_field_set_label(GaimRequestField *field, const char *label); 363 void gaim_request_field_set_label(GaimRequestField *field, const char *label);
363 364
364 /** 365 /**
365 * Sets whether or not a field is visible. 366 * Sets whether or not a field is visible.
366 * 367 *
367 * @param field The field. 368 * @param field The field.
368 * @param visible TRUE if visible, or FALSE if not. 369 * @param visible TRUE if visible, or FALSE if not.
369 */ 370 */
370 void gaim_request_field_set_visible(GaimRequestField *field, gboolean visible); 371 void gaim_request_field_set_visible(GaimRequestField *field, gboolean visible);
371 372
372 /** 373 /**
374 * Sets the type hint for the field.
375 *
376 * This is optionally used by the UIs to provide such features as
377 * auto-completion for type hints like "screenname."
378 *
379 * @param field The field.
380 * @param type_hint The type hint.
381 */
382 void gaim_request_field_set_type_hint(GaimRequestField *field,
383 const char *type_hint);
384
385 /**
373 * Returns the type of a field. 386 * Returns the type of a field.
374 * 387 *
375 * @param field The field. 388 * @param field The field.
376 * 389 *
377 * @return The field's type. 390 * @return The field's type.
402 * @param field The field. 415 * @param field The field.
403 * 416 *
404 * @return TRUE if the field is visible. FALSE otherwise. 417 * @return TRUE if the field is visible. FALSE otherwise.
405 */ 418 */
406 gboolean gaim_request_field_is_visible(const GaimRequestField *field); 419 gboolean gaim_request_field_is_visible(const GaimRequestField *field);
420
421 /**
422 * Returns the field's type hint.
423 *
424 * @param field The field.
425 *
426 * @return The field's type hint.
427 */
428 const char *gaim_request_field_get_type_hint(const GaimRequestField *field);
407 429
408 /*@}*/ 430 /*@}*/
409 431
410 /**************************************************************************/ 432 /**************************************************************************/
411 /** @name String Field API */ 433 /** @name String Field API */