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