]>
Dogcows Code - chaz/homebank/blob - src/hb-filter.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2014 Maxime DOYEN
4 * This file is part of HomeBank.
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.
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.
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/>.
20 #ifndef __HB_FILTER_H__
21 #define __HB_FILTER_H__
43 FLT_RANGE_THISMONTH
= 0,
44 FLT_RANGE_LASTMONTH
= 1,
45 FLT_RANGE_THISQUARTER
= 2,
46 FLT_RANGE_LASTQUARTER
= 3,
47 FLT_RANGE_THISYEAR
= 4,
48 FLT_RANGE_LASTYEAR
= 5, //was not existing on 4.5
50 FLT_RANGE_LAST30DAYS
= 7,
51 FLT_RANGE_LAST60DAYS
= 8,
52 FLT_RANGE_LAST90DAYS
= 9,
53 FLT_RANGE_LAST12MONTHS
= 10,
57 FLT_RANGE_ALLDATE
= 14
72 FLT_STATUS_UNCATEGORIZED
= 0,
73 FLT_STATUS_UNRECONCILED
= 1,
81 FLT_QSEARCH_MEMO
= 1<<0,
82 FLT_QSEARCH_INFO
= 1<<1,
83 FLT_QSEARCH_PAYEE
= 1<<2,
84 FLT_QSEARCH_CATEGORY
= 1<<3,
85 FLT_QSEARCH_TAGS
= 1<<4
89 typedef struct _filter Filter
;
93 guint32 mindate
, maxdate
;
98 gshort option
[FILTER_MAX
];
103 gboolean paymode
[NUM_PAYMODE_MAX
];
104 gdouble minamount
, maxamount
;
113 Filter
*da_filter_malloc(void);
114 void da_filter_free(Filter
*flt
);
116 void filter_default_all_set(Filter
*flt
);
117 void filter_preset_daterange_set(Filter
*flt
, gint range
);
118 void filter_preset_type_set(Filter
*flt
, gint value
);
119 void filter_preset_status_set(Filter
*flt
, gint value
);
120 gchar
*filter_daterange_text_get(Filter
*flt
);
121 gboolean
filter_txn_search_match(gchar
*needle
, Transaction
*txn
, gint flags
);
123 gint
filter_test(Filter
*flt
, Transaction
*ope
);
This page took 0.033075 seconds and 4 git commands to generate.