Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / src / server-logging.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* server-logging.h
3  *
4  * Copyright (C) 2002  Novell, 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 Lesser 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 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.
19  *
20  * Author: Chris Toshok <toshok@ximian.com>
21  */
22
23 #ifndef _SERVER_LOGGING_H_
24 #define _SERVER_LOGGING_H_
25
26 #ifdef HAVE_CONFIG_H
27 #include <config.h>
28 #endif
29
30 #include <bonobo/bonobo-event-source.h>
31 #include "Evolution-DataServer.h"
32
33 G_BEGIN_DECLS
34
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))
40
41 \f
42 typedef struct _ServerLogging        ServerLogging;
43 typedef struct _ServerLoggingPrivate ServerLoggingPrivate;
44 typedef struct _ServerLoggingClass   ServerLoggingClass;
45
46 struct _ServerLogging {
47         BonoboEventSource parent;
48
49         ServerLoggingPrivate *priv;
50 };
51
52 struct _ServerLoggingClass {
53         BonoboEventSourceClass parent_class;
54
55         POA_GNOME_Evolution_DataServer_Logging__epv epv;
56 };
57
58 \f
59 GType server_logging_get_type  (void);
60 ServerLogging *server_logging_new (void);
61
62 void server_logging_register_domain (ServerLogging *logging, const char *domain);
63
64 G_END_DECLS
65
66 #endif /* _SERVER_LOGGING_H_ */