00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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