1 /* 2 * nemo-column-provider.h - Interface for Nemo extensions that 3 * provide column descriptions. 4 * 5 * Copyright (C) 2003 Novell, Inc. 6 * 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. 11 * 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. 16 * 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., 51 Franklin Street, Suite 500, MA 02110-1335, USA. 20 * 21 * Author: Dave Camp <dave@ximian.com> 22 * 23 */ 24 25 /* This interface is implemented by Nemo 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 NemoInfoProvider */ 30 31 #ifndef NEMO_COLUMN_PROVIDER_H 32 #define NEMO_COLUMN_PROVIDER_H 33 34 #include <glib-object.h> 35 #include "nemo-extension-types.h" 36 #include "nemo-column.h" 37 38 G_BEGIN_DECLS 39 40 #define NEMO_TYPE_COLUMN_PROVIDER (nemo_column_provider_get_type ()) 41 42 G_DECLARE_INTERFACE (NemoColumnProvider, nemo_column_provider, 43 NEMO, COLUMN_PROVIDER, 44 GObject) 45 46 typedef NemoColumnProviderInterface NemoColumnProviderIface; 47 48 /** 49 * NemoColumnProviderInterface: 50 * @g_iface: the parent class 51 * @get_columns: Fetch an array of @NemoColumn 52 */ 53 struct _NemoColumnProviderInterface { 54 GTypeInterface g_iface; 55 56 GList *(*get_columns) (NemoColumnProvider *provider); 57 }; 58 59 /* Interface Functions */ 60 GList *nemo_column_provider_get_columns (NemoColumnProvider *provider); 61 62 G_END_DECLS 63 64 #endif 65