1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
4 * Copyright (C) 2002 Novell, Inc.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of version 2 of the GNU Lesser General Public
8 * License as published by the Free Software Foundation.
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.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
20 * Author: Chris Toshok <toshok@ximian.com>
23 #ifndef _SERVER_LOGGING_H_
24 #define _SERVER_LOGGING_H_
30 #include <bonobo/bonobo-event-source.h>
31 #include "Evolution-DataServer.h"
35 #define SERVER_TYPE_LOGGING (server_logging_get_type ())
36 #define SERVER_LOGGING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SERVER_TYPE_LOGGING, ServerLogging))
37 #define SERVER_LOGGING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SERVER_TYPE_LOGGING, ServerLoggingClass))
38 #define SERVER_IS_LOGGING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SERVER_TYPE_LOGGING))
39 #define SERVER_IS_LOGGING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SERVER_TYPE_LOGGING))
42 typedef struct _ServerLogging ServerLogging;
43 typedef struct _ServerLoggingPrivate ServerLoggingPrivate;
44 typedef struct _ServerLoggingClass ServerLoggingClass;
46 struct _ServerLogging {
47 BonoboEventSource parent;
49 ServerLoggingPrivate *priv;
52 struct _ServerLoggingClass {
53 BonoboEventSourceClass parent_class;
55 POA_GNOME_Evolution_DataServer_Logging__epv epv;
59 GType server_logging_get_type (void);
60 ServerLogging *server_logging_new (void);
62 void server_logging_register_domain (ServerLogging *logging, const char *domain);
66 #endif /* _SERVER_LOGGING_H_ */