GnuCash  5.6-150-g038405b370+
FreqSpec.h
Go to the documentation of this file.
1 /********************************************************************\
2  * This program is free software; you can redistribute it and/or *
3  * modify it under the terms of the GNU General Public License as *
4  * published by the Free Software Foundation; either version 2 of *
5  * the License, or (at your option) any later version. *
6  * *
7  * This program is distributed in the hope that it will be useful, *
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
10  * GNU General Public License for more details. *
11  * *
12  * You should have received a copy of the GNU General Public License*
13  * along with this program; if not, contact: *
14  * *
15  * Free Software Foundation Voice: +1-617-542-5942 *
16  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
17  * Boston, MA 02110-1301, USA gnu@gnu.org *
18  * *
19 \********************************************************************/
27 #ifndef XACC_FREQSPEC_H
28 #define XACC_FREQSPEC_H
29 
30 #include "gnc-engine.h"
31 #include <glib.h>
32 #include "qof.h"
33 
34 #define ENUM_LIST_TYPE(_) \
35  _(INVALID,) \
36  _(ONCE,) \
37  _(DAILY,) \
38  _(WEEKLY,) \
39  _(MONTHLY,) \
40  _(MONTH_RELATIVE,) \
41  _(COMPOSITE,)
42 
43 DEFINE_ENUM(FreqType, ENUM_LIST_TYPE)
50 AS_STRING_DEC(FreqType, ENUM_LIST_TYPE)
51 FROM_STRING_DEC(FreqType, ENUM_LIST_TYPE)
52 
53 #define ENUM_LIST_UI(_) \
54  _(UIFREQ_NONE,) \
55  _(UIFREQ_ONCE,) \
56  _(UIFREQ_DAILY,) \
57  _(UIFREQ_DAILY_MF,) \
58  _(UIFREQ_WEEKLY,) \
59  _(UIFREQ_BI_WEEKLY,) \
60  _(UIFREQ_SEMI_MONTHLY,) \
61  _(UIFREQ_MONTHLY,) \
62  _(UIFREQ_QUARTERLY,) \
63  _(UIFREQ_TRI_ANUALLY,) \
64  _(UIFREQ_SEMI_YEARLY,) \
65  _(UIFREQ_YEARLY,) \
66  _(UIFREQ_NUM_UI_FREQSPECS,)
67 
68 DEFINE_ENUM( UIFreqType, ENUM_LIST_UI)
73 AS_STRING_DEC(UIFreqType, ENUM_LIST_UI)
74 FROM_STRING_DEC(UIFreqType, ENUM_LIST_UI)
75 
76 
78 #endif /* XACC_FREQSPEC_H */
All type declarations for the whole Gnucash engine.
UIFreqType
The user&#39;s conception of the frequency.
Definition: FreqSpec.h:68
FreqType
Frequency specification.
Definition: FreqSpec.h:43
FROM_STRING_DEC(CheckItemType, ENUM_CHECK_ITEM_TYPE)