GnuCash  5.6-150-g038405b370+
gnc-recurrence.h
1 /* gnc-recurrence.h:
2  *
3  * GncRecurrence is a minimal GUI for specifying a Recurrence.
4  *
5  * You see, small is _nice_. :)
6  *
7  */
8 
9 /* Copyright (C) 2005, Chris Shoemaker <c.shoemaker@cox.net> *
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License as
13  * published by the Free Software Foundation; either version 2 of
14  * the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, contact:
23  *
24  * Free Software Foundation Voice: +1-617-542-5942
25  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
26  * Boston, MA 02111-1301, USA gnu@gnu.org
27  */
28 
29 #ifndef GNC_RECURRENCE_H
30 #define GNC_RECURRENCE_H
31 
32 #include <glib.h>
33 #include "Recurrence.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 #define GNC_TYPE_RECURRENCE (gnc_recurrence_get_type())
40 G_DECLARE_FINAL_TYPE (GncRecurrence, gnc_recurrence, GNC, RECURRENCE, GtkBox)
41 
42 GtkWidget * gnc_recurrence_new(void);
43 
44 void gnc_recurrence_set(GncRecurrence *gr, const Recurrence *r);
45 
46 /* The returned Recurrence is internally owned and is only valid as
47  long as the GncRecurrence is around. */
48 const Recurrence * gnc_recurrence_get(GncRecurrence *gr);
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif