1 /* 2 * 3 * This program is free software; you can redistribute it and/or modify it 4 * under the terms of the GNU Lesser General Public License as published by 5 * the Free Software Foundation. 6 * 7 * This program is distributed in the hope that it will be useful, but 8 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 9 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 10 * for more details. 11 * 12 * You should have received a copy of the GNU Lesser General Public License 13 * along with this program; if not, see <http://www.gnu.org/licenses/>. 14 * 15 * 16 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) 17 * 18 */ 19 20 #ifndef _EAB_TABLE_ADAPTER_H_ 21 #define _EAB_TABLE_ADAPTER_H_ 22 23 #include <e-util/e-util.h> 24 25 /* Standard GObject macros */ 26 #define E_TYPE_ADDRESSBOOK_TABLE_ADAPTER \ 27 (e_addressbook_table_adapter_get_type ()) 28 #define E_ADDRESSBOOK_TABLE_ADAPTER(obj) \ 29 (G_TYPE_CHECK_INSTANCE_CAST \ 30 ((obj), E_TYPE_ADDRESSBOOK_TABLE_ADAPTER, EAddressbookTableAdapter)) 31 #define E_ADDRESSBOOK_TABLE_ADAPTER_CLASS(cls) \ 32 (G_TYPE_CHECK_CLASS_CAST \ 33 ((cls), E_TYPE_ADDRESSBOOK_TABLE_ADAPTER, EAddressbookTableAdapterClass)) 34 #define E_IS_ADDRESSBOOK_TABLE_ADAPTER(obj) \ 35 (G_TYPE_CHECK_INSTANCE_TYPE \ 36 ((obj), E_TYPE_ADDRESSBOOK_TABLE_ADAPTER)) 37 #define E_IS_ADDRESSBOOK_TABLE_ADAPTER_CLASS(cls) \ 38 (G_TYPE_CHECK_CLASS_TYPE \ 39 ((cls), E_TYPE_ADDRESSBOOK_TABLE_ADAPTER)) 40 #define E_ADDRESSBOOK_TABLE_ADAPTER_GET_CLASS(obj) \ 41 (G_TYPE_INSTANCE_GET_CLASS \ 42 ((obj), E_TYPE_ADDRESSBOOK_TABLE_ADAPTER, EAddressbookTableAdapterClass)) 43 44 G_BEGIN_DECLS 45 46 typedef struct _EAddressbookTableAdapter EAddressbookTableAdapter; 47 typedef struct _EAddressbookTableAdapterClass EAddressbookTableAdapterClass; 48 typedef struct _EAddressbookTableAdapterPrivate EAddressbookTableAdapterPrivate; 49 50 struct _EAddressbookTableAdapter { 51 GObject parent; 52 EAddressbookTableAdapterPrivate *priv; 53 }; 54 55 struct _EAddressbookTableAdapterClass { 56 GObjectClass parent_class; 57 }; 58 59 GType e_addressbook_table_adapter_get_type 60 (void) G_GNUC_CONST; 61 void e_addressbook_table_adapter_construct 62 (EAddressbookTableAdapter *adapter, 63 EAddressbookModel *model); 64 ETableModel * e_addressbook_table_adapter_new 65 (EAddressbookModel *model); 66 67 G_END_DECLS 68 69 #endif /* _EAB_TABLE_ADAPTER_H_ */ 70