// Copyright (c) 2003,2004,2005 Juraj Kolesár /* char *tdb_qs (char *SQL, *T_QS) {{{ ****************************************/ char *tdb_qs(char *SQL_cmd, T_QS *qs); /* creates SQL SELECT command according to T_QS parameters and returns pointer to string where it is stored /* }}} */ /* tdb_qs_set_filter_dynamic (*T_QS, *T_COLS, int column) {{{ *****************/ int tdb_qs_set_filter_dynamic (T_QS *qs, T_COLS *cols, int column); /* -sets new values of filter_dynamic in T_QS according to T_COLS values -column number 'column' (first is 0) is not filtered because it is usualy the actual column where user search information. Maybe here would be easier to not include this column in T_COLS, but in upper layer functions it is easier just to know the nuber of column that we don't want to filter, because there usualy already exists T_COLS array with all columns. When all coulmns should be filtered it is neccesary to input number higher than number of T_COLS array size. /* }}} */ /* tdb_qs_set_order (*T_QS, *T_COLS, int column) {{{ **************************/ int tdb_qs_set_order (T_QS *qs, T_COLS *cols, int column); /* -sets new value of order according to T_COLS -column number 'column' the same as in previous function /* }}} */ /* tdb_qs_set_columns (*T_QS, *T_COLS) {{{ *****************************/ int tdb_qs_set_columns (T_QS *qs, T_COLS *cols); /* -sets new value to colums part of SELECT command /* }}} */