]> Dogcows Code - chaz/homebank/blob - src/hb-payee.h
Merge branch 'upstream'
[chaz/homebank] / src / hb-payee.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2016 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_PAYEE_H__
21 #define __HB_PAYEE_H__
22
23 typedef struct _payee Payee;
24
25
26 struct _payee
27 {
28 guint32 key;
29 gushort paymode;
30 gushort _pad1;
31 guint32 kcat;
32 gchar *name;
33
34 /* unsaved datas */
35 gboolean filter;
36 guint usage_count;
37 gboolean imported;
38 };
39
40 void da_pay_free(Payee *item);
41 Payee *da_pay_malloc(void);
42
43 void da_pay_destroy(void);
44 void da_pay_new(void);
45
46 guint da_pay_length(void);
47 gboolean da_pay_create_none(void);
48 gboolean da_pay_remove(guint32 key);
49 gboolean da_pay_insert(Payee *acc);
50 gboolean da_pay_append(Payee *acc);
51 guint32 da_pay_get_max_key(void);
52 Payee *da_pay_get_by_name(gchar *name);
53 Payee *da_pay_get(guint32 key);
54 void da_pay_consistency(Payee *item);
55
56 void payee_delete_unused(void);
57 void payee_fill_usage(void);
58
59 GList *payee_glist_sorted(gint column);
60
61 void payee_move(guint32 key1, guint32 key2);
62 gboolean payee_rename(Payee *item, const gchar *newname);
63 Payee *payee_append_if_new(gchar *name);
64
65 void payee_load_csv(gchar *filename);
66 void payee_save_csv(gchar *filename);
67
68 #endif
This page took 0.031579 seconds and 4 git commands to generate.