00001 /*************************************************************************** 00002 * qofchoice.h 00003 * 00004 * Thu Jul 7 12:25:24 2005 00005 * Copyright 2005 Neil Williams 00006 * linux@codehelp.co.uk 00007 ****************************************************************************/ 00008 /* 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00022 */ 00023 00024 #ifndef _QOFCHOICE_H 00025 #define _QOFCHOICE_H 00026 00093 #include "qofclass.h" 00094 #include "qofobject.h" 00095 00096 #define QOF_MOD_CHOICE "qof-choice" 00097 00103 #define QOF_TYPE_CHOICE "choice" 00104 00116 gboolean qof_object_is_choice (QofIdType type); 00117 00119 gboolean qof_choice_create (gchar *type); 00120 00130 gboolean 00131 qof_choice_add_class (gchar *choice, gchar *add, gchar *param_name); 00132 00143 GList *qof_object_get_choices (QofIdType type, QofParam * param); 00144 00154 gboolean 00155 qof_choice_check (gchar *choice_obj, gchar *param_name, gchar *choice); 00159 #endif /* _QOFCHOICE_H */