Main Page | Directories | File List | File Members

hildon-plugin-list.h

00001 /*
00002  * This file is part of maemo-af-desktop
00003  *
00004  * Copyright (C) 2006 Nokia Corporation.
00005  *
00006  * Contact: Karoliina Salminen <karoliina.t.salminen@nokia.com>
00007  * Author: Johan Bilien <johan.bilien@nokia.com>
00008  *
00009  * This library is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Lesser General Public License
00011  * version 2.1 as published by the Free Software Foundation.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00021  * 02110-1301 USA
00022  *
00023  */
00024 
00025 
00026 #ifndef HILDON_PLUGIN_LIST_H
00027 #define HILDON_PLUGIN_LIST_H
00028 
00029 #include <glib.h>
00030 #include <glib-object.h>
00031 #include <gtk/gtkliststore.h>
00032 
00033 G_BEGIN_DECLS
00034 
00035 #define HILDON_TYPE_PLUGIN_LIST (hildon_plugin_list_get_type ())
00036 #define HILDON_PLUGIN_LIST(obj) (GTK_CHECK_CAST (obj, HILDON_TYPE_PLUGIN_LIST, HildonPluginList))
00037 #define HILDON_PLUGIN_LIST_CLASS(klass) \
00038         (GTK_CHECK_CLASS_CAST ((klass),\
00039                                HILDON_TYPE_PLUGIN_LIST, HildonPluginListClass))
00040 #define HILDON_IS_PLUGIN_LIST(obj) (GTK_CHECK_TYPE (obj, HILDON_TYPE_PLUGIN_LIST))
00041 #define HILDON_IS_PLUGIN_LIST_CLASS(klass) \
00042 (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_PLUGIN_LIST))
00043 
00044 
00045 enum
00046 {
00047   HILDON_PLUGIN_LIST_COLUMN_DESKTOP_FILE = 0,
00048   HILDON_PLUGIN_LIST_COLUMN_NAME,
00049   HILDON_PLUGIN_LIST_COLUMN_LIB,
00050   HILDON_PLUGIN_LIST_COLUMN_ACTIVE,
00051   HILDON_PLUGIN_LIST_N_COLUMNS
00052 };
00053 
00054 typedef struct _HildonPluginList HildonPluginList;
00055 typedef struct _HildonPluginListClass HildonPluginListClass;
00056 
00057 struct _HildonPluginList {
00058   GtkListStore parent;
00059 };
00060 
00061 struct _HildonPluginListClass {
00062   GtkListStoreClass parent_class;
00063 
00064   void (* directory_changed)   (HildonPluginList *list);
00065 
00066 };
00067 
00068 
00069 GType hildon_plugin_list_get_type (void);
00070 
00071 
00072 
00073 void        hildon_plugin_list_set_directory    (HildonPluginList *list,
00074                                                  const gchar *directory);
00075 
00076 G_END_DECLS
00077 #endif /* HILDON_PLUGIN_LIST_H */

Generated on Thu Dec 21 11:26:51 2006 for maemo-af-desktop-documentation by  doxygen 1.4.2