/* gtkcutlass-utilities.h - some forward decls. (c) 2004 John Schweitzer */ #ifndef GTKCUTLASS_UTILITIES_H #define GTKCUTLASS_UTILITIES_H void NotImplemented( GtkWidget *window ); gint YesNo( GtkWidget *widget, gchar *message ); void tellem( gchar *message ); user_info *user_info_init( void ); gint user_info_destroy( user_info *ui ); contact_info *contact_info_init( void ); void *contact_info_destroy ( gpointer data ); gint contact_group_destroy( contact_group *cg ); contact_group *contact_group_init( void ); gint validate_contactinfo ( contact_info *ci ); user_info *load_user_info ( void ); void load_contact_info( void ); void load_groups_info( void ); gui_status *gui_status_init ( void ); gint application_crankup( user_info *ui, gui_status *gs ); gint save_user_info( void ); gint save_contact_list ( void ); gint save_user_key ( void ); conv_conn *conv_conn_init ( void ); conv_conn * find_conv_conn_from_connection ( uint8_t conn[ CUT_ID_LEN ] ); conv_conn * find_conv_conn_from_textentry ( GtkEntry *entry ); void conv_conn_destroy ( conv_conn *tmp ); contact_info *get_contact_from_name ( gchar *name ); gint get_user_key ( void ); gchar *get_key_save_file_name( void ); contact_info *get_contact_from_name ( gchar *name ); gint passphrase_dialog_wrapper( const gchar *description, char pass[], guint max_size ); conv_conn *get_conversation_from_address ( const gchar *address ); conv_conn *get_conversation_from_name ( const gchar *name ); gint connect_to_contact ( contact_info *ci ); conv_conn * setup_incoming_conversation ( cutlass_t *handle, struct cut_action_obj *action_object ); conv_conn *get_conversation_from_conn ( uint8_t conn[ CUT_ID_LEN ] ); conv_conn * find_conv_conn_from_toplevel ( GtkWidget *widget ); gint wait_for_connection( conv_conn *cc, gint timeout, gulong timerstep ); gtkc_message_q *message_init( void ); gchar *message_get_data ( gtkc_message_q *msg ); gtkc_message_q *message_set_data ( gtkc_message_q *msg, gchar *data ); gtkc_message_q *message_set_id ( gtkc_message_q *msg, guint id ); gtkc_message_q *message_set_read ( gtkc_message_q *msg ); gboolean message_get_read ( gtkc_message_q *msg ); enum message_type_t message_get_type ( gtkc_message_q *msg ); guint message_get_id ( gtkc_message_q *msg ); void message_destroy ( gtkc_message_q *msg ); #endif