* Adium is the legal property of its developers, whose names are listed in the copyright file included * with this source distribution. * This program is free software; you can redistribute it and/or modify it under the terms of the GNU * General Public License as published by the Free Software Foundation; either version 2 of the License, * or (at your option) any later version. * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * Public License for more details. * You should have received a copy of the GNU General Public License along with this program; if not, * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. enum AMPurpleJabberFormType { @interface AMPurpleJabberFormField : NSObject { /* use -init for creating an empty field */ + (AMPurpleJabberFormField*)fieldForXML:(xmlnode*)xml; - (void)setRequired:(BOOL)_required; - (void)setLabel:(NSString*)_label; - (void)setVariable:(NSString*)_var; - (void)setDescription:(NSString*)_desc; @interface AMPurpleJabberFormFieldBoolean : AMPurpleJabberFormField { - (void)setBoolValue:(BOOL)_value; @interface AMPurpleJabberFormFieldFixed : AMPurpleJabberFormField { - (void)setStringValue:(NSString*)_value; - (NSString*)stringValue; @interface AMPurpleJabberFormFieldHidden : AMPurpleJabberFormField { - (void)setStringValue:(NSString*)_value; - (NSString*)stringValue; @interface AMPurpleJabberFormFieldJidMulti : AMPurpleJabberFormField { - (void)setJIDs:(NSArray*)_jids; // array of NSString* @interface AMPurpleJabberFormFieldJidSingle : AMPurpleJabberFormField { - (void)setJID:(NSString*)_jid; @interface AMPurpleJabberFormFieldListMulti : AMPurpleJabberFormField { NSArray *options; // array of NSDictionary with Keys @"label" and @"value" - (void)setOptions:(NSArray*)_options; // array of NSString* - (void)setStringValues:(NSArray*)_values; - (NSArray*)stringValues; @interface AMPurpleJabberFormFieldListSingle : AMPurpleJabberFormField { - (void)setOptions:(NSArray*)_options; // array of NSString* - (void)setStringValue:(NSString*)_value; - (NSString*)stringValue; @interface AMPurpleJabberFormFieldTextMulti : AMPurpleJabberFormField { - (void)setStringValue:(NSString*)_value; - (NSString*)stringValue; @interface AMPurpleJabberFormFieldTextPrivate : AMPurpleJabberFormField { - (void)setStringValue:(NSString*)_value; - (NSString*)stringValue; @interface AMPurpleJabberFormFieldTextSingle : AMPurpleJabberFormField { - (void)setStringValue:(NSString*)_value; - (NSString*)stringValue; @interface AMPurpleJabberFormGenerator : NSObject { enum AMPurpleJabberFormType type; - (id)initWithType:(enum AMPurpleJabberFormType)_type; - (id)initWithXML:(xmlnode*)xml; - (void)setTitle:(NSString*)_title; - (void)setInstructions:(NSString*)_instructions; - (NSString*)instructions; - (enum AMPurpleJabberFormType)type; - (void)addField:(AMPurpleJabberFormField*)field; - (void)removeField:(AMPurpleJabberFormField*)field;