GnuCash 2.4.99
FreqSpec.h
Go to the documentation of this file.
00001 /********************************************************************\
00002  * This program is free software; you can redistribute it and/or    *
00003  * modify it under the terms of the GNU General Public License as   *
00004  * published by the Free Software Foundation; either version 2 of   *
00005  * the License, or (at your option) any later version.              *
00006  *                                                                  *
00007  * This program is distributed in the hope that it will be useful,  *
00008  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00009  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00010  * GNU General Public License for more details.                     *
00011  *                                                                  *
00012  * You should have received a copy of the GNU General Public License*
00013  * along with this program; if not, contact:                        *
00014  *                                                                  *
00015  * Free Software Foundation           Voice:  +1-617-542-5942       *
00016  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00017  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00018  *                                                                  *
00019 \********************************************************************/
00027 #ifndef XACC_FREQSPEC_H
00028 #define XACC_FREQSPEC_H
00029 
00030 #include "gnc-engine.h"
00031 #include <glib.h>
00032 #include "qof.h"
00033 
00034 #define ENUM_LIST_TYPE(_) \
00035         _(INVALID,) \
00036         _(ONCE,) \
00037         _(DAILY,) \
00038         _(WEEKLY,)  \
00039         _(MONTHLY,) \
00040         _(MONTH_RELATIVE,) \
00041         _(COMPOSITE,)
00042 
00043 DEFINE_ENUM(FreqType, ENUM_LIST_TYPE) 
00050 AS_STRING_DEC(FreqType, ENUM_LIST_TYPE)
00051 FROM_STRING_DEC(FreqType, ENUM_LIST_TYPE)
00052 
00053 #define ENUM_LIST_UI(_) \
00054         _(UIFREQ_NONE,)  \
00055         _(UIFREQ_ONCE,)  \
00056         _(UIFREQ_DAILY,)  \
00057         _(UIFREQ_DAILY_MF,)  \
00058         _(UIFREQ_WEEKLY,)  \
00059         _(UIFREQ_BI_WEEKLY,)  \
00060         _(UIFREQ_SEMI_MONTHLY,)  \
00061         _(UIFREQ_MONTHLY,)  \
00062         _(UIFREQ_QUARTERLY,)  \
00063         _(UIFREQ_TRI_ANUALLY,)  \
00064         _(UIFREQ_SEMI_YEARLY,)  \
00065         _(UIFREQ_YEARLY,)  \
00066         _(UIFREQ_NUM_UI_FREQSPECS,)
00067 
00068 DEFINE_ENUM( UIFreqType, ENUM_LIST_UI) 
00073 AS_STRING_DEC(UIFreqType, ENUM_LIST_UI)
00074 FROM_STRING_DEC(UIFreqType, ENUM_LIST_UI)
00075 
00078 #endif /* XACC_FREQSPEC_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines