diff src/request.h @ 7904:9b478c6e0bfa

[gaim-migrate @ 8564] Added support for invisible fields. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 21 Dec 2003 08:57:56 +0000
parents 3ca501305ac5
children 1d0bc32f8038
line wrap: on
line diff
--- a/src/request.h	Sun Dec 21 08:52:38 2003 +0000
+++ b/src/request.h	Sun Dec 21 08:57:56 2003 +0000
@@ -63,6 +63,8 @@
 	char *id;
 	char *label;
 
+	gboolean visible;
+
 	union
 	{
 		struct
@@ -355,6 +357,14 @@
 void gaim_request_field_set_label(GaimRequestField *field, const char *label);
 
 /**
+ * Sets whether or not a field is visible.
+ *
+ * @param field  The field.
+ * @param visible TRUE if visible, or FALSE if not.
+ */
+void gaim_request_field_set_visible(GaimRequestField *field, gboolean visible);
+
+/**
  * Returns the type of a field.
  *
  * @param field The field.
@@ -381,6 +391,15 @@
  */
 const char *gaim_request_field_get_label(const GaimRequestField *field);
 
+/**
+ * Returns whether or not a field is visible.
+ *
+ * @param field The field.
+ *
+ * @return TRUE if the field is visible. FALSE otherwise.
+ */
+gboolean gaim_request_field_is_visible(const GaimRequestField *field);
+
 /*@}*/
 
 /**************************************************************************/