summaryrefslogtreecommitdiff
path: root/src/nautilus-component-adapter-factory.h
blob: 0931ac51195af5985ad895970d36971026f1626e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: 8; c-basic-offset: 8 -*- */

/*
 * Nautilus
 *
 * Copyright (C) 2000 Eazel, Inc.
 *
 * Nautilus is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * Nautilus is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

/* nautilus-component-adapter-factory.h - client wrapper for the
 * special adapter component, which wraps Bonobo components as
 * Nautilus Views and in the process keeps evil syncrhonous I/O out of
 * the Nautilus process itself.
 */

#ifndef NAUTILUS_COMPONENT_ADAPTER_FACTORY_H
#define NAUTILUS_COMPONENT_ADAPTER_FACTORY_H

#include <gtk/gtkobject.h>
#include <libnautilus/nautilus-view-component.h>

typedef struct NautilusComponentAdapterFactory NautilusComponentAdapterFactory;
typedef struct NautilusComponentAdapterFactoryClass NautilusComponentAdapterFactoryClass;

typedef struct NautilusComponentAdapterFactoryDetails NautilusComponentAdapterFactoryDetails;

#define NAUTILUS_TYPE_COMPONENT_ADAPTER_FACTORY \
	(nautilus_component_adapter_factory_get_type ())
#define NAUTILUS_COMPONENT_ADAPTER_FACTORY(obj) \
	(GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_COMPONENT_ADAPTER_FACTORY, NautilusComponentAdapterFactory))
#define NAUTILUS_COMPONENT_ADAPTER_FACTORY_CLASS(klass) \
	(GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_COMPONENT_ADAPTER_FACTORY, NautilusComponentAdapterFactoryClass))
#define NAUTILUS_IS_COMPONENT_ADAPTER_FACTORY(obj) \
	(GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_COMPONENT_ADAPTER_FACTORY))
#define NAUTILUS_IS_COMPONENT_ADAPTER_FACTORY_CLASS(klass) \
	(GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_COMPONENT_ADAPTER_FACTORY))

struct NautilusComponentAdapterFactory
{
	GtkObject object;
	NautilusComponentAdapterFactoryDetails *details;
};

struct NautilusComponentAdapterFactoryClass
{
	GtkObjectClass parent_class;
};

GType                            nautilus_component_adapter_factory_get_type       (void);
NautilusComponentAdapterFactory *nautilus_component_adapter_factory_get            (void);
Nautilus_View                    nautilus_component_adapter_factory_create_adapter (NautilusComponentAdapterFactory *factory,
										    Bonobo_Unknown                   component);

#endif /* NAUTILUS_COMPONENT_ADAPTER_FACTORY_H */