GnuCash c935c2f+
Loading...
Searching...
No Matches
gnc-sx-list-tree-model-adapter.h
1/********************************************************************\
2 * gnc-sx-list-tree-model-adapter.h *
3 * *
4 * Copyright (C) 2006 Joshua Sled <jsled@asynchronous.org> *
5 * *
6 * This program is free software; you can redistribute it and/or *
7 * modify it under the terms of version 2 and/or version 3 of the *
8 * GNU General Public License as published by the Free Software *
9 * Foundation. *
10 * *
11 * As a special exception, permission is granted to link the binary *
12 * module resultant from this code with the OpenSSL project's *
13 * "OpenSSL" library (or modified versions of it that use the same *
14 * license as the "OpenSSL" library), and distribute the linked *
15 * executable. You must obey the GNU General Public License in all *
16 * respects for all of the code used other than "OpenSSL". If you *
17 * modify this file, you may extend this exception to your version *
18 * of the file, but you are not obligated to do so. If you do not *
19 * wish to do so, delete this exception statement from your version *
20 * of this file. *
21 * *
22 * This program is distributed in the hope that it will be useful, *
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
25 * GNU General Public License for more details. *
26 * *
27 * You should have received a copy of the GNU General Public License*
28 * along with this program; if not, contact: *
29 * *
30 * Free Software Foundation Voice: +1-617-542-5942 *
31 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
32 * Boston, MA 02110-1301, USA gnu@gnu.org *
33\********************************************************************/
34
35#ifndef _GNC_SX_LIST_TREE_MODEL_ADAPTER_H
36#define _GNC_SX_LIST_TREE_MODEL_ADAPTER_H
37
38#include <config.h>
39#include <glib.h>
40#include <glib-object.h>
41#include <gtk/gtk.h>
43
44G_BEGIN_DECLS
45
46#define GNC_TYPE_SX_LIST_TREE_MODEL_ADAPTER (gnc_sx_list_tree_model_adapter_get_type ())
47G_DECLARE_FINAL_TYPE (GncSxListTreeModelAdapter, gnc_sx_list_tree_model_adapter,
48 GNC, SX_LIST_TREE_MODEL_ADAPTER, GObject)
49
50// model columns
51enum
52{
53 SXLTMA_COL_NAME = 0,
54 SXLTMA_COL_ENABLED,
55 SXLTMA_COL_FREQUENCY,
56 SXLTMA_COL_NUM_POSTPONED,
57 SXLTMA_COL_LAST_OCCUR,
58 SXLTMA_COL_NEXT_OCCUR
59};
60
61GncSxListTreeModelAdapter* gnc_sx_list_tree_model_adapter_new (GncSxInstanceModel *instances);
62
63GncSxInstances* gnc_sx_list_tree_model_adapter_get_sx_instances (GncSxListTreeModelAdapter *model,
64 GtkTreeIter *iter);
65
66G_END_DECLS
67
68#endif // _GNC_SX_LIST_TREE_MODEL_ADAPTER_H