00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00031 #ifndef HILDON_STATUR_BAR_LIB_FUNCTIONS_H
00032 #define HILDON_STATUR_BAR_LIB_FUNCTIONS_H
00033
00034 #include <glib.h>
00035 #include <gtk/gtkdialog.h>
00036
00037 G_BEGIN_DECLS
00038
00039 #define HILDON_STATUS_BAR_MAX_NOTE_TYPE 3
00040 #define HILDON_STATUS_BAR_MAX_NO_OF_DIALOGS 30
00041
00042 typedef struct system_dialog_st SystemDialog;
00043
00044 typedef void (*dialog_closed_cb)( gint type, gpointer data );
00045
00046 struct system_dialog_st
00047 {
00048 gint type;
00049 gchar *icon;
00050 gchar *msg;
00051 gchar *button;
00052 gint int_type;
00053 dialog_closed_cb cb;
00054 gpointer data;
00055 gboolean occupied;
00056 gboolean save_result;
00057 gboolean result_ready;
00058 gboolean do_not_show;
00059
00060 gboolean is_showing;
00061 gint result;
00062 GtkWidget *widget;
00063 };
00064
00065
00090 void hildon_status_bar_lib_prepare_dialog( gint type,
00091 const gchar *icon,
00092 const gchar *msg,
00093 gint int_type,
00094 dialog_closed_cb cb,
00095 gpointer data );
00118 void hildon_status_bar_lib_queue_dialog( const gchar *icon,
00119 const gchar *msg,
00120 gint int_type,
00121 dialog_closed_cb cb,
00122 gpointer data );
00123
00146 gint hildon_status_bar_lib_open_closeable_dialog( gint type,
00147 const gchar *msg,
00148 const gchar *btext,
00149 gboolean save_result );
00150
00164 void hildon_status_bar_lib_close_closeable_dialog( gint id );
00165
00180 gint hildon_status_bar_lib_get_dialog_response( gint id );
00181
00182 G_END_DECLS
00183
00184 #endif