Main Page | File List | File Members

hildon-cp-item.h

00001 /*
00002  * This file is part of hildon-control-panel
00003  *
00004  * Copyright (C) 2006 Nokia Corporation.
00005  *
00006  * Contact: Karoliina Salminen <karoliina.t.salminen@nokia.com>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * version 2.1 as published by the Free Software Foundation.
00011  *
00012  * This library is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00020  * 02110-1301 USA
00021  *
00022  */
00023 
00024 #ifndef HILDON_CP_ITEM_H
00025 #define HILDON_CP_ITEM_H
00026 
00027 #include <gtk/gtkwidget.h>
00028 #include <libosso.h>
00029 
00030 #define HCP_PLUGIN_EXEC_SYMBOL          "execute"
00031 #define HCP_PLUGIN_SAVE_STATE_SYMBOL    "save_state"
00032 
00033 
00034 typedef osso_return_t (hcp_plugin_exec_f) (
00035                        osso_context_t * osso,
00036                        gpointer data,
00037                        gboolean user_activated);
00038 
00039 typedef osso_return_t (hcp_plugin_save_state_f) (
00040                        osso_context_t * osso,
00041                        gpointer data);
00042 
00043 typedef struct _HCPItem {
00044     gchar *name;
00045     gchar *plugin;
00046     gchar *icon;
00047     gchar *category;
00048     gboolean running;
00049     GtkWidget *grid_item;
00050     hcp_plugin_save_state_f *save_state;
00051 } HCPItem;
00052 
00053 void hcp_item_init (gpointer hcp);
00054 
00055 void hcp_item_free (HCPItem *item);
00056 
00057 void hcp_item_launch (HCPItem *item,
00058                       gboolean user_activated);
00059 
00060 void hcp_item_save_state (HCPItem *item);
00061 
00062 void hcp_item_focus (HCPItem *item);
00063 
00064 gint hcp_item_sort_func (const HCPItem *a, const HCPItem *b);
00065 
00066 
00067 
00068 #endif

Generated on Thu Dec 21 18:18:50 2006 by  doxygen 1.4.2