blob: 4b5aaf55b7eb8e409c366a6181edad9e75e40bd4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/* -*- 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_ITERATOR_H__
#define __E_CARD_ITERATOR_H__
#include <time.h>
#include <gtk/gtk.h>
#include <stdio.h>
#define E_TYPE_CARD_ITERATOR (e_card_iterator_get_type ())
#define E_CARD_ITERATOR(obj) (GTK_CHECK_CAST ((obj), E_TYPE_CARD_ITERATOR, ECardIterator))
#define E_CARD_ITERATOR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_CARD_ITERATOR, ECardIteratorClass))
#define E_IS_CARD_ITERATOR(obj) (GTK_CHECK_TYPE ((obj), E_TYPE_CARD_ITERATOR))
#define E_IS_CARD_ITERATOR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), E_TYPE_CARD_ITERATOR))
typedef struct _ECardIterator ECardIterator;
typedef struct _ECardIteratorClass ECardIteratorClass;
struct _ECardIterator {
GtkObject object;
};
struct _ECardIteratorClass {
GtkObjectClass parent_class;
/* Signals */
void (*invalidate) (ECardIterator *iterator);
/* Virtual functions */
void * (*get) (ECardIterator *iterator);
void (*reset) (ECardIterator *iterator);
gboolean (*next) (ECardIterator *iterator);
gboolean (*prev) (ECardIterator *iterator);
void (*delete) (ECardIterator *iterator);
void (*set) (ECardIterator *iterator,
void *object);
gboolean (*is_valid) (ECardIterator *iterator);
};
void *e_card_iterator_get (ECardIterator *iterator);
void e_card_iterator_reset (ECardIterator *iterator);
gboolean e_card_iterator_next (ECardIterator *iterator);
gboolean e_card_iterator_prev (ECardIterator *iterator);
void e_card_iterator_delete (ECardIterator *iterator);
void e_card_iterator_set (ECardIterator *iterator,
void *object);
gboolean e_card_iterator_is_valid (ECardIterator *iterator);
void e_card_iterator_invalidate (ECardIterator *iterator);
/* Standard Gtk function */
GtkType e_card_iterator_get_type (void);
#endif /* ! __E_CARD_ITERATOR_H__ */
|