#ifndef __DCTC_PROCESS_H__ #define __DCTC_PROCESS_H__ #include /******************************************************************************/ /* count the number of entry inside the given gchar * array (NULL terminated) */ /******************************************************************************/ int gchar_array_len(gchar **array); /*************************************************************/ /* close the connection to the current DCTC client if exists */ /*************************************************************/ void close_current_dctc(void); /***************************************************/ /* delete the array containing the nick of all ops */ /***************************************************/ void clear_op_array(void); /**********************************************************************************/ /* this function is called when something comes from DCTC client */ /* data is always NULL, source == current_dctc_fd and condition == GTK_INPUT_READ */ /**********************************************************************************/ void process_data_from_dctc(gpointer data, gint source, GdkInputCondition condition); /************************************************************************************/ /* same function as previous one except it tries to send queued data to DCTC client */ /************************************************************************************/ void process_data_to_dctc(gpointer data, gint source, GdkInputCondition condition); /****************************************/ /* send data to the current DCTC client */ /* the function handles all errors */ /****************************************/ void send_data_to_dctc(char *str); /************************************************/ /* open password dialog to enter a new password */ /************************************************/ void enter_passwd_fnc(const GString *in); /*****************************/ /* kill selected GDL entries */ /*****************************/ void kill_selected_gdl_entry(void); void detach_selected_gdl_entry(void); /* or detach it */ /*****************************************************************/ /* create autoscan configuration window for selected GDL entries */ /*****************************************************************/ void create_autoscan_window_for_selected_gdl_entry(void); /*************************************************/ /* create rename window for selected GDL entries */ /*************************************************/ void create_rename_window_for_selected_gdl_entry(void); /*************************************************/ /* create rename window for selected GDL entries */ /*************************************************/ void create_script_window_for_selected_gdl_entry(void); /**********************************************/ /* automatically flag the given user nickname */ /**********************************************/ void auto_flag_user(char *nick); /**********************************************************************/ /* kill upload or download task using their ID (and /KILL or /KILLKB) */ /**********************************************************************/ void kill_selected_entry(char *cmd,char *clist_name); /*********************************************************/ /* executed a command for each selected GDL source entry */ /*********************************************************/ void cmd_selected_gdl_user(void (*fnc)(gpointer entry, gpointer ct)); /*************************************************/ /* flag the user of the given entry of the ctree */ /*************************************************/ /* entry is a GtkCTreeNode, ct is a GtkCTree */ /*********************************************/ void flag_user_of_this_gdl_entry(gpointer entry, gpointer ct); /*******************************************************/ /* view user file list of the given entry of the ctree */ /*******************************************************/ /* entry is a GtkCTreeNode, ct is a GtkCTree */ /*********************************************/ void view_user_file_list_of_this_gdl_entry(gpointer entry, gpointer ct); /*********************************************************************************************/ /* foreach selected line, send the given command followed by the content of the given column */ /*********************************************************************************************/ void foreach_selected_entry_send_cmd(char *cmd,char *clist_name, int column_num); /*********************************************************************************************/ /* foreach selected line, send the given command followed by the content of the given column */ /*********************************************************************************************/ /* ctree version */ /*****************/ void foreach_selected_user_entry_of_gdl_ctree_send_cmd(char *cmd,char *ctree_name); /*******************************************************************/ /* return the GTK_TEXT widget of the chat having the LABEL == nick */ /* if nick doesn't have a private chat and create parameter is */ /* true, the function creates one */ /*******************************************************************/ GtkWidget *get_pchat_text_widget_from_nick(char *nick, gboolean create,char **notebook_label,int *notebook_num); /***********************************************************************************/ /* when the multihub search is enabled, this function is called after 10 seconds */ /* if more than 15 results are available, nothing occurs, else a /MSRCH is started */ /***********************************************************************************/ gint start_msearch(gpointer data); /*************************************************************************************/ /* search in the given clist a row having the given column containing a given string */ /*************************************************************************************/ /* output: -1: not found else row number in the clist */ /******************************************************/ int row_num(GtkCList *clst,int col_num, char *col_content); /******************************/ /* end the FLST clist refresh */ /******************************/ void user_share_full_list_fnc(const GString *in); #endif