comparison src/request.h @ 7047:7d1909655fd0

[gaim-migrate @ 7610] Add core support for masking string fields in multi-request dialogs, and setting string fields so that they can't be modified. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 30 Sep 2003 02:26:32 +0000
parents feb3d21a7794
children 9c0ea21997a9
comparison
equal deleted inserted replaced
7046:4003419d753b 7047:7d1909655fd0
65 union 65 union
66 { 66 {
67 struct 67 struct
68 { 68 {
69 gboolean multiline; 69 gboolean multiline;
70 gboolean masked;
71 gboolean editable;
70 char *default_value; 72 char *default_value;
71 char *value; 73 char *value;
72 74
73 } string; 75 } string;
74 76
408 */ 410 */
409 void gaim_request_field_string_set_value(GaimRequestField *field, 411 void gaim_request_field_string_set_value(GaimRequestField *field,
410 const char *value); 412 const char *value);
411 413
412 /** 414 /**
415 * Sets whether or not a string field is masked
416 * (commonly used for password fields).
417 *
418 * @param field The field.
419 * @param masked The masked value.
420 */
421 void gaim_request_field_string_set_masked(GaimRequestField *field,
422 gboolean masked);
423
424 /**
425 * Sets whether or not a string field is editable.
426 *
427 * @param field The field.
428 * @param editable The editable value.
429 */
430 void gaim_request_field_string_set_editable(GaimRequestField *field,
431 gboolean editable);
432
433 /**
413 * Returns the default value in a string field. 434 * Returns the default value in a string field.
414 * 435 *
415 * @param field The field. 436 * @param field The field.
416 * 437 *
417 * @return The default value. 438 * @return The default value.
434 * @param field The field. 455 * @param field The field.
435 * 456 *
436 * @return @c TRUE if the field is mulit-line, or @c FALSE otherwise. 457 * @return @c TRUE if the field is mulit-line, or @c FALSE otherwise.
437 */ 458 */
438 gboolean gaim_request_field_string_is_multiline(const GaimRequestField *field); 459 gboolean gaim_request_field_string_is_multiline(const GaimRequestField *field);
460
461 /**
462 * Returns whether or not a string field is masked.
463 *
464 * @param field The field.
465 *
466 * @return @c TRUE if the field is masked, or @c FALSE otherwise.
467 */
468 gboolean gaim_request_field_string_is_masked(const GaimRequestField *field);
469
470 /**
471 * Returns whether or not a string field is editable.
472 *
473 * @param field The field.
474 *
475 * @return @c TRUE if the field is editable, or @c FALSE otherwise.
476 */
477 gboolean gaim_request_field_string_is_editable(const GaimRequestField *field);
439 478
440 /*@}*/ 479 /*@}*/
441 480
442 /**************************************************************************/ 481 /**************************************************************************/
443 /** @name Integer Field API */ 482 /** @name Integer Field API */