source: trunk/third/evolution/shell/evolution-storage-listener.h @ 18142

Revision 18142, 3.5 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18141, which included commits to RCS files with non-trunk default branches.
Line 
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
30extern "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
41typedef struct _EvolutionStorageListener        EvolutionStorageListener;
42typedef struct _EvolutionStorageListenerPrivate EvolutionStorageListenerPrivate;
43typedef struct _EvolutionStorageListenerClass   EvolutionStorageListenerClass;
44
45struct _EvolutionStorageListener {
46        GtkObject parent;
47
48        EvolutionStorageListenerPrivate *priv;
49};
50
51struct _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
76struct _EvolutionStorageListenerServant {
77        POA_GNOME_Evolution_StorageListener servant_placeholder;
78        EvolutionStorageListener *gtk_object;
79};
80typedef struct _EvolutionStorageListenerServant EvolutionStorageListenerServant;
81
82
83GtkType                    evolution_storage_listener_get_type      (void);
84void                       evolution_storage_listener_construct     (EvolutionStorageListener  *listener,
85                                                                     GNOME_Evolution_StorageListener  corba_objref);
86EvolutionStorageListener  *evolution_storage_listener_new           (void);
87
88GNOME_Evolution_StorageListener  evolution_storage_listener_corba_objref  (EvolutionStorageListener *listener);
89
90#ifdef __cplusplus
91}
92#endif /* __cplusplus */
93
94#endif /* __EVOLUTION_STORAGE_LISTENER_H__ */
Note: See TracBrowser for help on using the repository browser.