1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* evolution-storage-listener.h |
---|
3 | * |
---|
4 | * Copyright (C) 2000 Ximian, Inc. |
---|
5 | * |
---|
6 | * This program is free software; you can redistribute it and/or |
---|
7 | * modify it under the terms of version 2 of the GNU General Public |
---|
8 | * License as published by the Free Software Foundation. |
---|
9 | * |
---|
10 | * This program is distributed in the hope that it will be useful, |
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
13 | * General Public License for more details. |
---|
14 | * |
---|
15 | * You should have received a copy of the GNU General Public |
---|
16 | * License along with this program; if not, write to the |
---|
17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
18 | * Boston, MA 02111-1307, USA. |
---|
19 | * |
---|
20 | * Author: Ettore Perazzoli |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef __EVOLUTION_STORAGE_LISTENER_H__ |
---|
24 | #define __EVOLUTION_STORAGE_LISTENER_H__ |
---|
25 | |
---|
26 | #include <gtk/gtkobject.h> |
---|
27 | #include "Evolution.h" |
---|
28 | |
---|
29 | #ifdef __cplusplus |
---|
30 | extern "C" { |
---|
31 | #pragma } |
---|
32 | #endif /* __cplusplus */ |
---|
33 | |
---|
34 | #define EVOLUTION_TYPE_STORAGE_LISTENER (evolution_storage_listener_get_type ()) |
---|
35 | #define EVOLUTION_STORAGE_LISTENER(obj) (GTK_CHECK_CAST ((obj), EVOLUTION_TYPE_STORAGE_LISTENER, EvolutionStorageListener)) |
---|
36 | #define EVOLUTION_STORAGE_LISTENER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), EVOLUTION_TYPE_STORAGE_LISTENER, EvolutionStorageListenerClass)) |
---|
37 | #define EVOLUTION_IS_STORAGE_LISTENER(obj) (GTK_CHECK_TYPE ((obj), EVOLUTION_TYPE_STORAGE_LISTENER)) |
---|
38 | #define EVOLUTION_IS_STORAGE_LISTENER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), EVOLUTION_TYPE_STORAGE_LISTENER)) |
---|
39 | |
---|
40 | |
---|
41 | typedef struct _EvolutionStorageListener EvolutionStorageListener; |
---|
42 | typedef struct _EvolutionStorageListenerPrivate EvolutionStorageListenerPrivate; |
---|
43 | typedef struct _EvolutionStorageListenerClass EvolutionStorageListenerClass; |
---|
44 | |
---|
45 | struct _EvolutionStorageListener { |
---|
46 | GtkObject parent; |
---|
47 | |
---|
48 | EvolutionStorageListenerPrivate *priv; |
---|
49 | }; |
---|
50 | |
---|
51 | struct _EvolutionStorageListenerClass { |
---|
52 | GtkObjectClass parent_class; |
---|
53 | |
---|
54 | /* Signals. */ |
---|
55 | void (* destroyed) (EvolutionStorageListener *storage_listener); |
---|
56 | void (* new_folder) (EvolutionStorageListener *storage_listener, |
---|
57 | const char *path, |
---|
58 | const GNOME_Evolution_Folder *folder); |
---|
59 | void (* update_folder) (EvolutionStorageListener *storage_listener, |
---|
60 | const char *path, |
---|
61 | int unread_count); |
---|
62 | void (* removed_folder) (EvolutionStorageListener *storage_listener, |
---|
63 | const char *path); |
---|
64 | void (* has_subfolders) (EvolutionStorageListener *storage_listener, |
---|
65 | const char *path, |
---|
66 | const char *message); |
---|
67 | |
---|
68 | void (* shared_folder_discovery_result) (EvolutionStorageListener *storage_listener, |
---|
69 | const char *user, |
---|
70 | const char *folder_name, |
---|
71 | const char *storage_path, |
---|
72 | const char *physical_uri); |
---|
73 | }; |
---|
74 | |
---|
75 | |
---|
76 | struct _EvolutionStorageListenerServant { |
---|
77 | POA_GNOME_Evolution_StorageListener servant_placeholder; |
---|
78 | EvolutionStorageListener *gtk_object; |
---|
79 | }; |
---|
80 | typedef struct _EvolutionStorageListenerServant EvolutionStorageListenerServant; |
---|
81 | |
---|
82 | |
---|
83 | GtkType evolution_storage_listener_get_type (void); |
---|
84 | void evolution_storage_listener_construct (EvolutionStorageListener *listener, |
---|
85 | GNOME_Evolution_StorageListener corba_objref); |
---|
86 | EvolutionStorageListener *evolution_storage_listener_new (void); |
---|
87 | |
---|
88 | GNOME_Evolution_StorageListener evolution_storage_listener_corba_objref (EvolutionStorageListener *listener); |
---|
89 | |
---|
90 | #ifdef __cplusplus |
---|
91 | } |
---|
92 | #endif /* __cplusplus */ |
---|
93 | |
---|
94 | #endif /* __EVOLUTION_STORAGE_LISTENER_H__ */ |
---|