diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-04-05 03:30:28 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-04-05 03:30:28 +0800 |
commit | 2d75a701029288c953a84ba0a696675f5a7eb77f (patch) | |
tree | c59f2d15eb6129fec7de451b7d8ca26b164c7c71 /addressbook/backend/ebook/e-card-list.h | |
parent | 02dd5e38c87f297ebfee7468da15eac12d7c51cc (diff) | |
download | gsoc2013-evolution-2d75a701029288c953a84ba0a696675f5a7eb77f.tar gsoc2013-evolution-2d75a701029288c953a84ba0a696675f5a7eb77f.tar.gz gsoc2013-evolution-2d75a701029288c953a84ba0a696675f5a7eb77f.tar.bz2 gsoc2013-evolution-2d75a701029288c953a84ba0a696675f5a7eb77f.tar.lz gsoc2013-evolution-2d75a701029288c953a84ba0a696675f5a7eb77f.tar.xz gsoc2013-evolution-2d75a701029288c953a84ba0a696675f5a7eb77f.tar.zst gsoc2013-evolution-2d75a701029288c953a84ba0a696675f5a7eb77f.zip |
Fixed an incorrect function.
2000-04-04 Christopher James Lahey <clahey@helixcode.com>
* addressbook/backend/ebook/e-book-view.c: Fixed an incorrect
function.
* addressbook/backend/ebook/e-book-view.h,
addressbook/backend/ebook/e-book.h: Fixed some incorrect function
pointer declarations.
* addressbook/backend/ebook/e-card-iterator.c,
addressbook/backend/ebook/e-card-iterator.h,
addressbook/backend/ebook/e-card-list-iterator.c,
addressbook/backend/ebook/e-card-list-iterator.h,
addressbook/backend/ebook/e-card-list.c,
addressbook/backend/ebook/e-card-list.h,
addressbook/backend/ebook/e-card.c,
addressbook/backend/ebook/e-card.h,
addressbook/backend/ebook/test-card.c: Built new iterator system
for getting fields with multiple entries.
* addressbook/backend/ebook/Makefile.am: Added new files
addressbook/backend/ebook/e-card-iterator.c,
addressbook/backend/ebook/e-card-iterator.h,
addressbook/backend/ebook/e-card-list-iterator.c,
addressbook/backend/ebook/e-card-list-iterator.h,
addressbook/backend/ebook/e-card-list.c, and
addressbook/backend/ebook/e-card-list.h.
svn path=/trunk/; revision=2286
Diffstat (limited to 'addressbook/backend/ebook/e-card-list.h')
-rw-r--r-- | addressbook/backend/ebook/e-card-list.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/addressbook/backend/ebook/e-card-list.h b/addressbook/backend/ebook/e-card-list.h new file mode 100644 index 0000000000..123d890e88 --- /dev/null +++ b/addressbook/backend/ebook/e-card-list.h @@ -0,0 +1,59 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * Authors: + * Chris Lahey <clahey@helixcode.com> + * + * Copyright (C) 2000 Helix Code, Inc. + * Copyright (C) 1999 The Free Software Foundation + */ + +#ifndef __E_CARD_LIST_H__ +#define __E_CARD_LIST_H__ + +#include <time.h> +#include <gtk/gtk.h> +#include <stdio.h> +#include <e-card-iterator.h> + +#define E_TYPE_CARD_LIST (e_card_list_get_type ()) +#define E_CARD_LIST(obj) (GTK_CHECK_CAST ((obj), E_TYPE_CARD_LIST, ECardList)) +#define E_CARD_LIST_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_CARD_LIST, ECardListClass)) +#define E_IS_CARD_LIST(obj) (GTK_CHECK_TYPE ((obj), E_TYPE_CARD_LIST)) +#define E_IS_CARD_LIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), E_TYPE_CARD_LIST)) + +typedef void *(*ECardListCopyFunc) (void *data, void *closure); +typedef void *(*ECardListFreeFunc) (void *data, void *closure); + +typedef struct _ECardList ECardList; +typedef struct _ECardListClass ECardListClass; + +struct _ECardList { + GtkObject object; + GList *list; + GList *iterators; + ECardListCopyFunc copy; + ECardListFreeFunc free; + void *closure; +}; + +struct _ECardListClass { + GtkObjectClass parent_class; +}; + +ECardList *e_card_list_new (ECardListCopyFunc copy, + ECardListFreeFunc free, + void *closure); +ECardIterator *e_card_list_get_iterator (ECardList *list); +void e_card_list_append (ECardList *list, + void *data); + +/* For iterators to call. */ +void e_card_list_invalidate_iterators (ECardList *list, + ECardIterator *skip); +void e_card_list_remove_iterator (ECardList *list, + ECardIterator *iterator); + +/* Standard Gtk function */ +GtkType e_card_list_get_type (void); + +#endif /* ! __E_CARD_LIST_H__ */ |