1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* e-uri-schema-registry.h |
---|
3 | * |
---|
4 | * Copyright (C) 2001 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 <ettore@ximian.com> |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef _E_URI_SCHEMA_REGISTRY_H_ |
---|
24 | #define _E_URI_SCHEMA_REGISTRY_H_ |
---|
25 | |
---|
26 | #include "evolution-shell-component-client.h" |
---|
27 | |
---|
28 | #include <gtk/gtkobject.h> |
---|
29 | |
---|
30 | #ifdef __cplusplus |
---|
31 | extern "C" { |
---|
32 | #pragma } |
---|
33 | #endif /* __cplusplus */ |
---|
34 | |
---|
35 | #define E_TYPE_URI_SCHEMA_REGISTRY (e_uri_schema_registry_get_type ()) |
---|
36 | #define E_URI_SCHEMA_REGISTRY(obj) (GTK_CHECK_CAST ((obj), E_TYPE_URI_SCHEMA_REGISTRY, EUriSchemaRegistry)) |
---|
37 | #define E_URI_SCHEMA_REGISTRY_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_URI_SCHEMA_REGISTRY, EUriSchemaRegistryClass)) |
---|
38 | #define E_IS_URI_SCHEMA_REGISTRY(obj) (GTK_CHECK_TYPE ((obj), E_TYPE_URI_SCHEMA_REGISTRY)) |
---|
39 | #define E_IS_URI_SCHEMA_REGISTRY_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), E_TYPE_URI_SCHEMA_REGISTRY)) |
---|
40 | |
---|
41 | |
---|
42 | typedef struct _EUriSchemaRegistry EUriSchemaRegistry; |
---|
43 | typedef struct _EUriSchemaRegistryPrivate EUriSchemaRegistryPrivate; |
---|
44 | typedef struct _EUriSchemaRegistryClass EUriSchemaRegistryClass; |
---|
45 | |
---|
46 | struct _EUriSchemaRegistry { |
---|
47 | GtkObject parent; |
---|
48 | |
---|
49 | EUriSchemaRegistryPrivate *priv; |
---|
50 | }; |
---|
51 | |
---|
52 | struct _EUriSchemaRegistryClass { |
---|
53 | GtkObjectClass parent_class; |
---|
54 | }; |
---|
55 | |
---|
56 | |
---|
57 | GtkType e_uri_schema_registry_get_type (void); |
---|
58 | EUriSchemaRegistry *e_uri_schema_registry_new (void); |
---|
59 | |
---|
60 | void e_uri_schema_registry_set_handler_for_schema (EUriSchemaRegistry *registry, |
---|
61 | const char *schema, |
---|
62 | EvolutionShellComponentClient *shell_component); |
---|
63 | EvolutionShellComponentClient *e_uri_schema_registry_get_handler_for_schema (EUriSchemaRegistry *registry, |
---|
64 | const char *schema); |
---|
65 | |
---|
66 | #ifdef __cplusplus |
---|
67 | } |
---|
68 | #endif /* __cplusplus */ |
---|
69 | |
---|
70 | #endif /* _E_URI_SCHEMA_REGISTRY_H_ */ |
---|