Updated Slovenian translation
[nautilus.git] / libnautilus-extension / nautilus-column-provider.h
blob630e88ac4761e00f12bbed49b5419f35ed5eb042
1 /*
2 * nautilus-column-provider.h - Interface for Nautilus extensions that
3 * provide column descriptions.
5 * Copyright (C) 2003 Novell, Inc.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 * Author: Dave Camp <dave@ximian.com>
25 /* This interface is implemented by Nautilus extensions that want to
26 * add columns to the list view and details to the icon view.
27 * Extensions are asked for a list of columns to display. Each
28 * returned column refers to a string attribute which can be filled in
29 * by NautilusInfoProvider */
31 #ifndef NAUTILUS_COLUMN_PROVIDER_H
32 #define NAUTILUS_COLUMN_PROVIDER_H
34 #include <glib-object.h>
35 #include "nautilus-extension-types.h"
36 #include "nautilus-column.h"
38 G_BEGIN_DECLS
40 #define NAUTILUS_TYPE_COLUMN_PROVIDER (nautilus_column_provider_get_type ())
41 #define NAUTILUS_COLUMN_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_COLUMN_PROVIDER, NautilusColumnProvider))
42 #define NAUTILUS_IS_COLUMN_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_COLUMN_PROVIDER))
43 #define NAUTILUS_COLUMN_PROVIDER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), NAUTILUS_TYPE_COLUMN_PROVIDER, NautilusColumnProviderIface))
45 typedef struct _NautilusColumnProvider NautilusColumnProvider;
46 typedef struct _NautilusColumnProviderIface NautilusColumnProviderIface;
48 struct _NautilusColumnProviderIface {
49 GTypeInterface g_iface;
51 GList *(*get_columns) (NautilusColumnProvider *provider);
54 /* Interface Functions */
55 GType nautilus_column_provider_get_type (void);
56 GList *nautilus_column_provider_get_columns (NautilusColumnProvider *provider);
58 G_END_DECLS
60 #endif