blob: 65d20a34893d3c7ab4bc3a9681577263de934daa (
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
62
63
64
65
66
67
68
69
70
71
72
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* A client-side GtkObject which exposes the
* Evolution:BookViewListener interface.
*
* Author:
* Nat Friedman (nat@helixcode.com)
*
* Copyright 2000, Helix Code, Inc.
*/
#ifndef __E_BOOK_VIEW_LISTENER_H__
#define __E_BOOK_VIEW_LISTENER_H__
#include <libgnome/gnome-defs.h>
#include <bonobo/bonobo-object.h>
#include <addressbook.h>
BEGIN_GNOME_DECLS
typedef struct _EBookViewListener EBookViewListener;
typedef struct _EBookViewListenerClass EBookViewListenerClass;
typedef struct _EBookViewListenerPrivate EBookViewListenerPrivate;
struct _EBookViewListener {
BonoboObject parent;
EBookViewListenerPrivate *priv;
};
struct _EBookViewListenerClass {
BonoboObjectClass parent;
/*
* Signals
*/
void (*responses_queued) (void);
};
typedef enum {
/* Async events */
CardAddedEvent,
CardRemovedEvent,
CardModifiedEvent
} EBookViewListenerOperation;
typedef struct {
EBookViewListenerOperation op;
/* For CardRemovedEvent */
char *id;
/* For Card[Added|Modified]Event */
GList *cards; /* Of type ECard. */
} EBookViewListenerResponse;
EBookViewListener *e_book_view_listener_new (void);
int e_book_view_listener_check_pending (EBookViewListener *listener);
EBookViewListenerResponse *e_book_view_listener_pop_response (EBookViewListener *listener);
GtkType e_book_view_listener_get_type (void);
POA_Evolution_BookViewListener__epv *e_book_view_listener_get_epv (void);
#define E_BOOK_VIEW_LISTENER_TYPE (e_book_view_listener_get_type ())
#define E_BOOK_VIEW_LISTENER(o) (GTK_CHECK_CAST ((o), E_BOOK_VIEW_LISTENER_TYPE, EBookViewListener))
#define E_BOOK_VIEW_LISTENER_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_BOOK_VIEW_LISTENER_TYPE, EBookViewListenerClass))
#define E_IS_BOOK_VIEW_LISTENER(o) (GTK_CHECK_TYPE ((o), E_BOOK_VIEW_LISTENER_TYPE))
#define E_IS_BOOK_VIEW_LISTENER_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_BOOK_VIEW_LISTENER_TYPE))
END_GNOME_DECLS
#endif /* ! __E_BOOK_VIEW_LISTENER_H__ */
|