add gitignore
[chaz/homebank] / src / hb-archive.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2014 Maxime DOYEN
3 *
4 * This file is part of HomeBank.
5 *
6 * HomeBank is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * HomeBank is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef __HB_ARCHIVE_H__
21 #define __HB_ARCHIVE_H__
22
23 typedef struct _archive Archive;
24
25 struct _archive
26 {
27 gdouble amount;
28 guint32 kacc;
29 guint32 kxferacc;
30 gushort paymode;
31 gushort flags;
32 guint32 kpay;
33 guint32 kcat;
34 gchar *wording;
35
36 guint32 nextdate;
37 gushort every;
38 gushort unit;
39 gushort limit;
40 gushort weekend;
41 };
42
43
44 Archive *da_archive_malloc(void);
45 Archive *da_archive_clone(Archive *src_item);
46 guint archive_add_get_nbdays(void);
47 void da_archive_free(Archive *item);
48 void da_archive_destroy(GList *list);
49 GList *da_archive_sort(GList *list);
50 guint da_archive_length(void);
51 void da_archive_consistency(Archive *item);
52
53
54 gboolean scheduled_is_postable(Archive *arc);
55 guint32 scheduled_get_postdate(Archive *arc, guint32 postdate);
56 guint32 scheduled_get_latepost_count(Archive *arc, guint32 jrefdate);
57 guint32 scheduled_date_advance(Archive *arc);
58 guint32 scheduled_date_get_post_max(void);
59 gint scheduled_post_all_pending(void);
60
61
62 #endif
63
This page took 0.037285 seconds and 4 git commands to generate.