25 #include <tqvaluelist.h>
27 #include "addressee.h"
33 class KABC_EXPORT Field
36 friend class FieldImpl;
39 typedef TQValueList<Field *> List;
64 virtual TQString
label();
69 virtual int category();
74 static TQString categoryLabel(
int category );
97 virtual bool isCustom();
102 virtual bool equals( Field *field );
107 static Field::List allFields();
112 static Field::List defaultFields();
122 static Field *createCustomField(
const TQString &label,
int category,
123 const TQString &key,
const TQString &app );
128 static void deleteFields();
137 static void saveFields(
TDEConfig *cfg,
const TQString &identifier,
138 const Field::List &fields );
143 static void saveFields(
const TQString &identifier,
144 const Field::List &fields );
152 static Field::List restoreFields(
TDEConfig *cfg,
const TQString &identifier );
158 static Field::List restoreFields(
const TQString &identifier );
161 static void createField(
int id,
int category = 0 );
162 static void createDefaultField(
int id,
int category = 0 );
165 Field( FieldImpl * );
170 static Field::List mAllFields;
171 static Field::List mDefaultFields;
172 static Field::List mCustomFields;
static data, shared by ALL addressee objects
TQString label(StdAccel id)