12 #ifndef GSAFE__DATALIB_HEADER_FILE_X_
13 #define GSAFE__DATALIB_HEADER_FILE_X_
39 #define GSAFE_VERSION "1.3.8"
45 #define PROGRESS_POSSIBILITY 1
47 #define MODULE_REFRESHAGENT_NETSERVER 1
48 #define REFRESHAGENT_TCPPORT 1234
50 #define MODULE_REFRESHAGENT_NETCLIENT 1
63 #define MAX_SQL_INTERFACES 7
66 #define LEFT_OUTER_JOIN 1
71 #ifdef MODULE_REFRESHAGENT_NETSERVER
74 #ifdef MODULE_REFRESHAGENT_NETCLIENT
80 int getIndexOf(QStringList l,QString s);
81 void setErrorLocal(QString s);
86 void error(QString s);
97 int my_dtoa(
double v,
char *buffer,
int bufflen,
int min,
int max,
int group);
104 #define ROUND_FLOOR 1
108 double dRound(
double val,
int mode=ROUND_MATH);
119 QString convNationalToHtmlCodes(QString input);
129 QTextStream *output_stream;
130 QStack<QString> *node_stack;
135 void eatData(QString d);
151 void putHead(QString enc,
bool nullhead =
false);
157 void beginNode(QString n,QString parameters=
"");
167 void putCData(QString n,QString data,QString parameters=
"");
202 int notifySlot(QString tblname);
212 static void notify(QString tblname);
219 void internalNotify(QString tblname);
226 #ifdef MODULE_REFRESHAGENT_NETSERVER
250 static bool inNotify;
254 QTcpServer *tcpServer;
255 QList<QTcpSocket *> tcps_list;
261 int clientLeaving(
void);
262 int action(QString name,
int sendernum);
267 #ifdef MODULE_REFRESHAGENT_NETCLIENT
291 static bool inNotify;
300 int serverClosing(
void);
301 int action(QString name);
347 QList<QVariant *> data;
348 QList<QString> control;
349 QList<QVariant *>::iterator iter;
350 QList<QString>::iterator iter_ctrl;
352 int *printMaxCellWidth;
397 void setHeader(QList<QString> strlistdata);
399 void setHeader(QString d1=
"",QString d2=
"",QString d3=
""
400 ,QString d4=
"",QString d5=
"",QString d6=
""
401 ,QString d7=
"",QString d8=
"",QString d9=
""
402 ,QString d10=
"",QString d11=
"",QString d12=
""
403 ,QString d13=
"",QString d14=
"",QString d15=
"");
412 bool getColumnPrintWrap(
int col) {
if(col <= col_count)
return printCellWrap[col];
else return false; }
445 void addRow(QList<QVariant> listdata,QString ctrl=
"");
447 void addRowStr(QList<QString> strlistdata,QString ctrl=
"");
449 void addRowStr(QString d1=
"",QString d2=
"",QString d3=
""
450 ,QString d4=
"",QString d5=
"",QString d6=
""
451 ,QString d7=
"",QString d8=
"",QString d9=
""
452 ,QString d10=
"",QString d11=
"",QString d12=
""
453 ,QString d13=
"",QString d14=
"",QString d15=
"")
455 addRowStrCTRL(
"",d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13,d14,d15);
458 void addRowStrCTRL(QString ctrl,QString d1=
"",QString d2=
"",QString d3=
""
459 ,QString d4=
"",QString d5=
"",QString d6=
""
460 ,QString d7=
"",QString d8=
"",QString d9=
""
461 ,QString d10=
"",QString d11=
"",QString d12=
""
462 ,QString d13=
"",QString d14=
"",QString d15=
"");
468 QList<QVariant>
getRow(
int row);
473 QString
getRowStr(
int row,QString separator);
476 QVariant
getCell(
int row,
int col);
480 void setCell(
int row,
int col,QVariant vdata);
482 void setCellStr(
int row,
int col,QString strdata);
534 QString
getColumn(
int col,QString separator);
698 static int currentDefaultInterface;
699 static int defaultDefaultInterface;
774 bool query_error_occured;
777 static bool globalnew_nodefault;
778 static QString globalnew_current_database;
781 QString current_database;
827 QSqlDatabase
workDB(
void);
895 HDataField_List(
void);
896 ~HDataField_List(
void);
899 void clearElements(
void);
900 void connectElement(HDataField_List *c);
901 void disconnectElement(
void);
905 HDataField_List *next;
906 HDataField_List *nextall;
926 HDataField_List *table,*run;
997 void connectTable(
HTableBase *ct,QString thiskey,QString thatkey,
int type=INNER_JOIN,QString connconstraint=
"");
1157 QString
sqlSelect(QString tail=
"",
bool all=
false,
bool keypart=
false);
1304 #ifdef PROGRESS_POSSIBILITY
1357 QString insertedKey;
1389 QString
sqlInsert(
bool insertkey=
false);
1414 QString
getKey(
bool head_val,QString intable=
"");
1481 int updateWithKey(QString key=
"",
bool all=
false,
bool update =
true,
bool tdisabled=
false);
1497 int saveRecord(
bool all=
false,
bool tdisabled=
false);
1512 int insertRecord(
bool insertkey=
false,
bool disable_tr=
false,
bool resetafterinsert=
true);
1580 QString getKeyValueAfterInsert(
void);
1582 QString specifyKey(QString tablename);
1586 #define FLOATTABLES_STS_UNDEF 0
1587 #define FLOATTABLES_STS_ALIVE 1
1588 #define FLOATTABLES_STS_NEW 2
1589 #define FLOATTABLES_STS_DELETED 3
1590 #define FLOATTABLES_STS_CANCELLED 4
1615 QList<HTable *>::iterator titer;
1616 QList<int>::iterator siter;
1736 int readDBTable(QString filter,
bool tdisabled=
false);
1763 QList<QStringList *> *values;
1766 QList<QStringList *>::iterator query_valiter;
1767 QStringList::iterator query_keyiter;
1798 virtual QList<QStringList *>*
getValues(
void) {
return values; }
1801 virtual QStringList*
getKeys(
void) {
return keys; }
1863 virtual int readList(QString filter=
"",
bool all=
true);
1930 virtual QList<QStringList *>*
getValues(
void) {
return values; }
1932 virtual QStringList*
getKeys(
void) {
return keys; }
1941 virtual int readList(QString filter=
"",
bool all=
true);
1945 virtual QString getSqlFieldValue(QString sqln);
2104 bool lastvalidate_result;
2105 bool permanentvalidate_result;
2106 QString manual_validate_error;
2154 HDataField(QString _sqlColumn,QString _explain,QString tit,
2155 QString _tailstr=
"",
bool _editable=
true);
2170 void setData(QString _sqlColumn,QString _explain,QString tit,
2171 QString _tailstr=
"",
bool _editable=
true);
2213 virtual int setValue (QVariant v,
bool sdisabled=
false);
2282 bool isSet(
void) {
if(
set)
return true;
else return false; }
2505 void addMark(QStringList pmarkers);
2575 void disableControl(
void);
2576 void enableControl(
void);
2604 HKey(QString sqlc,QString ex,QString tit,QString def);
2615 virtual int setValue (QVariant v,
bool sdisabled=
false);
2638 QString connected_table;
2645 HConnect(QString sqlc,QString connected_tablep);
2657 QString getConnectedTable(
void) {
return connected_table; }
2659 virtual int setValue (QVariant v,
bool sdisabled=
false);
2682 bool initial_selected;
2691 HSmallText(QString sqlc,QString ex,QString tit,QString t,QString def);
2703 virtual int setValue (QVariant v,
bool sdisabled=
false);
2744 HLargeText(QString sqlc,QString ex,QString tit,QString def);
2755 virtual int setValue (QVariant v,
bool sdisabled=
false);
2803 HCharHash(QString sqlc,QString ex,QString tit,QString t,QString def,
2804 QStringList k,QStringList v);
2816 virtual int setValue (QVariant v,
bool sdisabled=
false);
2866 HNumHash(QString sqlc,QString ex,QString tit,QString t,QString def,
2867 QStringList k,QStringList v);
2879 virtual int setValue (QVariant v,
bool sdisabled=
false);
2908 long int minimum,maximum;
2917 HNumber(QString sqlc,QString ex,QString tit,QString t,QString def);
2928 virtual int setValue (QVariant v,
bool sdisabled=
false);
2976 HStatic(QString ex,QString tit=
"",QString def=
"");
2987 virtual int setValue (QVariant v,
bool sdisabled=
false);
3041 virtual int setValue (QVariant v,
bool sdisabled=
false);
3064 double minimum,maximum;
3065 int dMminDf,dMmaxDf,dMgroup;
3074 HFloating(QString sqlc,QString ex,QString tit,QString t,QString def);
3085 virtual int setValue (QVariant v,
bool sdisabled=
false);
3117 void setDisplayMode(
int minDf,
int maxDf,
int groupDf) {dMminDf=minDf; dMmaxDf=maxDf; dMgroup=groupDf; }
3159 HDate(QString sqlc,QString ex,QString tit,QString def,
bool u_a=
true,
bool unk=
true);
3170 virtual int setValue (QVariant v,
bool sdisabled=
false);
3232 HTimestamp(QString sqlc,QString ex,QString tit,QString def,
bool c);
3244 virtual int setValue (QVariant v,
bool sdisabled=
false);
3261 void read_from_sql(
void) { readed =
true; }
3262 bool is_sqlreaded(
void) {
return readed; }
3271 KVPair(
void) { key =
""; value =
""; busy =
false; }
3329 QString connected_table;
3331 QString showed_field;
3333 QString showed_field_head;
3334 QString filter_part;
3336 QString popupdialog_title;
3341 bool readed_reftable;
3345 QStringList sepvalues;
3360 QString toolbarbutton_down_text;
3386 HSqlChoose(QString sqlc,QString ex,QString tit,QString def,
3387 QString ct,QString kf,QString sf,QString sfh,QString fp,QString op,
3388 QString inthash=
"",
bool easyf=
true);
3400 virtual int setValue (QVariant v,
bool sdisabled=
false);
3410 QString getConnectedTableName(
void) {
return connected_table; }
3493 void dataUpdatedSignal(
void);
3495 #ifdef PROGRESS_POSSIBILITY
3507 int nullhash (
const char *c);
3508 int charcodehash(
const char *c);
3509 int dropchar (
const char *c);
3516 struct HOneDataChange
3657 void setPosAndUser(QString pos,QString user) { curr_pos = pos; curr_user = user; }
3664 void setTablename(QString tablename) { curr_table = tablename; }
3665 void setChangedKey(QString changedkey) { curr_ckey = changedkey; }
3666 void addChange(QString fieldname,QString oldval,QString newval);
3667 void writeOut(
bool tdisabled =
false);
3675 QList<HOneDataChange> changes;
3683 #define HDYNELEMENT_STRING 0
3684 #define HDYNELEMENT_DOUBLE 1
3695 QString rowName,colName;
3697 QList<QString> labels;
3700 QString textual_value;
3701 double double_value;
3706 HDynTableElement(
int type,QString name,QString sqlname,QString rowName,QString colName,QString labels=
"");
3709 bool isNumeric(
void);
3710 bool isTextual(
void);
3712 void setDoubleValue(
double d);
3713 void setTextualValue(QString s);
3714 double getDoubleValue(
void);
3715 QString getTextualValue(
void);
3717 void addLabel(QString l);
3718 bool hasLabel(QString l);
3786 QList<HDynTableElement> elements;
3787 QList<HDynTableElement>::iterator internal_iterator;
3805 void defN(QString name,QString sqlname=
"",QString rowName=
"",QString colName=
"",QString labels=
"")
3806 { add(
HDynTableElement(HDYNELEMENT_DOUBLE,name,sqlname,rowName,colName,labels)); }
3814 void defS(QString name,QString sqlname=
"",QString rowName=
"",QString colName=
"",QString labels=
"")
3815 { add(
HDynTableElement(HDYNELEMENT_STRING,name,sqlname,rowName,colName,labels)); }
3822 void defT(
int type,QString name,QString sqlname=
"",QString rowName=
"",QString colName=
"",QString labels=
"")
3905 void emptyall(QString limitTo =
"");
3908 void zeroall(QString limitTo =
"");
3911 double max(QString limitTo =
"");
3914 double min(QString limitTo =
"");
3917 double sum(QString limitTo =
"");
3924 void addition(
double d,QString limitTo =
"");
3932 void divide(
double d,QString limitTo =
"");
3963 class HDynTableElementNameReferencer
3970 HDynTableElementNameReferencer(
HDynTable *ref,QString name)
3971 { this->ref = ref; this->name = name; }
3973 HDynTableElementNameReferencer operator=(
double value)
3975 HDynTableElementNameReferencer operator=(QString value)
3976 { ref->setElementValue(name,value);
return *
this; }
3978 {
return ref->getElementValueDouble(name); }
3980 {
return ref->getElementValueString(name); }
3982 HDynTableElementNameReferencer operator+=(
double value)
3983 { ref->setElementValue(name,ref->getElementValueDouble(name)+value);
return *
this; }
3984 HDynTableElementNameReferencer operator-=(
double value)
3985 { ref->setElementValue(name,ref->getElementValueDouble(name)-value);
return *
this; }
3986 HDynTableElementNameReferencer operator*=(
double value)
3987 { ref->setElementValue(name,ref->getElementValueDouble(name)*value);
return *
this; }
3988 HDynTableElementNameReferencer operator/=(
double value)
3989 { ref->setElementValue(name,ref->getElementValueDouble(name)/value);
return *
this; }
3995 HDynTableElementNameReferencer
operator[](QString name) {
return HDynTableElementNameReferencer(
this,name); }
4030 this->tablename = tablename;
4031 this->filterpart = filterpart;
4032 errorText =
"Error in HDynTableSqlConnector";
4039 this->tablename =
"";
4040 this->filterpart =
"";
4046 void insertSql(QString additionaldefpart=
"",QString additionalvaluepart=
"");
virtual QString sqlUpdate(void)
HDataField * nextFieldAll(void)
#define GSAFETEXT_YES_HAVE
QString getValueAsString(void)
HDataField * nextField(void)
void rereadNextInsertedKey(void)
virtual QString getSQLValue(void)
QStringList getExplainHeads(void)
virtual QString sqlUpdate(void)
void setCell(int row, int col, QVariant vdata)
double max(QString limitTo="")
QStringList & getKeys(void)
void resetSubselect(void)
void setGuidisabled(void)
void setGuiDisabledAllMarked(QString mark)
QSqlDatabase workDB(void)
bool isChanged(bool all=false)
~HRefreshAgentNetserver(void)
HNumber(QString sqlc, QString ex, QString tit, QString t, QString def)
virtual QString sqlCreateStringPart(QString switches="")
virtual HDataField * get_clone(void)
QString sqlInsertAll(void)
QString sqlSelectAll(QString tail="")
int getColumnPrintMaxWidth(int col)
void possible_unknown(void)
QString hsqli_booleantypename
void enableEasyForm(void)
int errorPassSlot(QString err)
HDataField * asColored(int r, int g, int b)
QString sqlSelectWkAll(QString tail="")
virtual QString sqlSelectHead(void)
void setMaulallyValidateError(QString message)
virtual QVariant getValue(void)
virtual QString sqlUpdate(void)
HRefreshAgentNetclient(QString server_ip)
void appendHPainDataMatrix(HPlainDataMatrix *tail)
QStringList & getSeparatedValues(void)
virtual int setDefval(QVariant v)
void setFunction(QString func)
virtual QString sqlInsertValue(void)
virtual HDataField * get_clone(void)
virtual QVariant getValue(void)
int insertRecordAll(bool disable_tr=false)
virtual QString getSQLValue(void)
void cloneSqlSettingsFrom(HSqlHandler *other)
static void setSqlMode(QString modename)
virtual int setValue(QVariant v, bool sdisabled=false)
virtual QString getSQLValueAsString(void)
virtual bool acceptSubselect(void)
int hsqli_largetext_varcharlength
void addRow(QList< QVariant > listdata, QString ctrl="")
virtual QString sqlInsertValue(void)
virtual QString sqlInsertHead(void)
void alternateActionOnRecord(QString key)
virtual QVariant dbValueToDispValue(QVariant v)
void setIndexedElementValue(int index, double d)
virtual int setDefval(QVariant v)
HFloating(QString sqlc, QString ex, QString tit, QString t, QString def)
HTable * createRecord(void)
virtual QString getSQLValueAsString(void)
virtual QVariant getValue(void)
void setMaximum(long int m)
void defN(QString name, QString sqlname="", QString rowName="", QString colName="", QString labels="")
QString getColumn(int col, QString separator)
QString currentElementColumnName(void)
static bool isConnected(void)
void blockReInitialize(QString hide_marker, QString ro_marker)
HTable * createRecordAsUndef(void)
virtual int setValue(QVariant v, bool sdisabled=false)
virtual QString sqlInsertHead(void)
static void setSqlModeBackToFirst(void)
void setPrintCellNoWrap(void)
QList< QVariant > currentRow(void)
QString getElementValueString(QString name, bool *found=NULL)
void clearSqlSynced(void)
int editBoxMaxWidth(void)
QString getFieldHeads(void)
HDataField * fieldBySqlName(QString sqln, bool all=false, QString containerSqlTable="")
void delRole(QString name)
HStatic(QString ex, QString tit="", QString def="")
int alternateActLine(void)
QString sqlCreateString(QString switches="")
QString getSubselect(void)
HTable * getTByField(QString field, QString key)
virtual HDataField * get_clone(void)
virtual bool acceptSubselect(void)
QStringList getShortTitleHeads(void)
void deepcopy_from(HDate *x)
void addition(double d, QString limitTo="")
virtual int setValue(QVariant v, bool sdisabled=false)
bool hasReadonlyMod(void)
virtual QStringList * getKeys(void)
QString sqlCreateString(QString switches="")
QString sqlUpdateAll(void)
void emptyall(QString limitTo="")
int alternateActLine(QString key)
virtual bool acceptFunction(void)
HPlainDataMatrix * submitNResultQuery(int N, QString q, QString err, bool tdisabled=false)
void setReadolnyAllMarked(QString mark)
virtual QString getSQLValue(void)
void deepcopy_from_htablebase(HTableBase *x)
void setTailText(QString tail)
virtual HDataField * get_clone(void)
void addRole(HDataFieldRole role)
void beginNode(QString n, QString parameters="")
virtual HDataField * get_clone(void)
virtual QString sqlInsertValue(void)
QString operator[](int i)
virtual QString getSQLValueAsString(void)
QString sqlTableName(void)
static HRefreshAgentNetclient * getHRefreshAgentNetclient(void)
virtual HDataField * get_clone(void)
void setMinimum(double m)
virtual QString getSQLValue(void)
QString dumpElements(void)
QVariant submit1ResultQuery(QString q, QString err, bool tdisabled=false)
virtual QString sqlSelectHead(void)
void sqlSynced(HDataChangeLogger *dclog=NULL, bool forcechange=false, bool forcelog=false)
virtual QString sqlInsertValue(void)
int(* hash)(const char *)
virtual QVariant dbValueToDispValue(QVariant v)
bool isMeldedWithNext(void)
void setHideAllMarked(QString mark)
HDataField * fieldByIndex(int i, bool all=false)
void addMark(QString mark)
virtual HDataField * get_clone(void)
QString getFunction(void)
void noMiddleStretch(void)
void setTitleText(QString titl)
bool submit0ResultQuery(QString q, QString err, bool tdisabled=false)
void setPosAndUser(QString pos, QString user)
void disableControlSlot(void)
HDynTableSqlConnector(HDynTable *dynt, QString tablename, QString filterpart="")
virtual QString lowerValidate(void)
long int getMaximum(void)
double getElementValueDoubleByRowColName(QString r, QString c, bool *found=NULL)
virtual bool acceptFunction(void)
double min(QString limitTo="")
void getnotify(QString tblname)
QVariant operator[](int i)
void setUser(QString user)
HKey(QString sqlc, QString ex, QString tit, QString def)
void value_is_unknown(void)
HDataField(QString _sqlColumn, QString _explain, QString tit, QString _tailstr="", bool _editable=true)
void resetValidateStatus()
virtual QString getSqlFieldValue(QString sqln)
QStringList & getValues(void)
QString getTitleText(void)
virtual QVariant getValue(void)
HSqlSingleInterface * myInterface(void)
void deepcopy_from(HFloating *x)
void setMaximum(double m)
void addGuienabledMod(void)
QString getContentAsHtml(QString params)
void setMinimum(long int m)
int countElements(QString limitTo="")
virtual int setValue(QVariant v, bool sdisabled=false)
virtual int setDefval(QVariant v)
QString hsqli_timestamptypename
virtual QString sqlCreateStringPart(QString switches="")
void refreshValuesKeys(bool updSignal=false)
virtual QString getSQLValue(void)
void removeCurrentRow(void)
int hsqli_varcharhkeylength
void setHeader(QList< QString > strlistdata)
void setSqlFieldValue(QString sqln, QVariant v, bool sdisable=false)
void setPopupDialogTitle(QString title)
bool hsqli_appendsqlerrormsg
virtual QString sqlSelectHead(void)
void addDependTableName(QString n)
HRefreshAgentNetserver(void)
virtual QVariant dbValueToDispValue(QVariant v)
virtual int setDefval(QVariant v)
virtual QVariant getValue(void)
QString getKeyOfValue(QString s)
virtual QString sqlUpdate(void)
void dataUpdatedSignal(void)
virtual QString getSQLValueAsString(void)
void deepcopy_from(HConnect *x)
virtual bool acceptFunction(void)
QString sqlTableName(void)
void divide(double d, QString limitTo="")
void removeSqlCooseButtons(void)
void setExtendedTitle(QString xt)
virtual QString sqlUpdate(void)
virtual QString sqlSelectHead(void)
void setAppendPrependColumn(int col, QString prepend, QString append)
void setHeaderCell(int col, QString strdata)
virtual QVariant dbValueToDispValue(QVariant v)
void addReadonlyMod(void)
QString currentElementValueString(void)
HDataField * asHide(void)
QString getElementSqlName(QString name)
QString getDefaultValue(void)
void blockReInitializeBase(QString hide_marker, QString ro_marker)
QSqlQuery * allocateQSqlQuery(void)
QStringList * queryNextValues(void)
virtual QString sqlCreateStringPart(QString switches="")
virtual QString sqlInsertValue(void)
virtual QString getSQLValue(void)
void deepcopy_from(HCheck *x)
HLargeText(QString sqlc, QString ex, QString tit, QString def)
void putRawData(QString data)
bool isInitialSelected(void)
virtual QVariant dbValueToDispValue(QVariant v)
virtual QVariant getValue(void)
void addToolButton(const QObject *receiver, QString text)
virtual QString getSQLValue(void)
bool getPermanentValidateStatus()
bool isPrintCellWrap(void)
virtual QString sqlSelectHead(void)
void replaceTextInColumn(int col, QString find, QString replace, bool parts=false)
QString hsqli_timestampnowvalue
HCheck(QString sqlc, QString ex, QString tit, QString t, QString def, QString ts=GSAFETEXT_YES_HAVE, QString fs=GSAFETEXT_NO_HAVENOT)
double sumCoulmnAsDouble(int col)
void deepcopy_from(HLargeText *x)
int returnToDefault(void)
virtual QString sqlUpdate(void)
static HRefreshAgent * getNotifyAgent(void)
QStringList * queryCurrValues(void)
QString currentElementName(void)
virtual QString sqlInsertValue(void)
virtual QString sqlInsertValue(void)
virtual int setValue(QVariant v, bool sdisabled=false)
void resetPopupDialogTitle(void)
QString queryCurrKey(void)
QString currentElementRowName(void)
QList< HDataFieldRole > roles
virtual bool acceptFunction(void)
void setColor(int r, int g, int b)
virtual QList< QStringList * > * getValues(void)
HDynTableElementNameReferencer operator[](QString name)
bool elementHasLabel(QString name, QString label, bool *found=NULL)
int returnToDefault(bool all=true)
virtual int setDefval(QVariant v)
QVariant getCell(int row, int col)
bool isNoMiddleStretch(void)
void setGuiSortIndicator(int i)
virtual QString sqlSelectHead(void)
void setColumnPrintWrap(int col, bool wrap)
QString hsqli_sequence_creation_string
virtual QString getSQLValueAsString(void)
bool hsqli_hkeytype_varchar_int
int readDBTable(QString filter, bool tdisabled=false)
void addRowStrCTRL(QString ctrl, QString d1="", QString d2="", QString d3="", QString d4="", QString d5="", QString d6="", QString d7="", QString d8="", QString d9="", QString d10="", QString d11="", QString d12="", QString d13="", QString d14="", QString d15="")
virtual int setValue(QVariant v, bool sdisabled=false)
void defT(int type, QString name, QString sqlname="", QString rowName="", QString colName="", QString labels="")
QString doubleToQString(double val, int min, int max, int group)
double dRound(double val, int mode)
void setCurrentElementValue(double d)
int refreshSqlValues(bool emitsignal=true, bool tdisabled=false)
void dataChangedNongui(void)
void resetNoMiddleStretch(void)
virtual QString getSQLValueAsString(void)
virtual int setValue(QVariant v, bool sdisabled=false)
bool hasGuidisabledMod(void)
virtual QString sqlUpdate(void)
virtual int setDefval(QVariant v)
virtual QString sqlSelectHead(void)
bool is_unknown_alive(void)
virtual QString sqlUpdate(void)
double getElementValueDouble(QString name, bool *found=NULL)
virtual int setValue(QVariant v, bool sdisabled=false)
double sum(QString limitTo="")
bool currentElementIsNumeric(void)
void removeExtraFunction(void)
QString getValueOfKey(QString s)
void setActiveKey(QString k)
void putCData(QString n, QString data, QString parameters="")
QString extrafunc_text[5]
virtual QString sqlInsertHead(void)
void setPrintCellWrap(void)
virtual int readList(QString filter="", bool all=true)
virtual int setDefval(QVariant v)
void useRole(QString name)
virtual QString sqlCreateStringPart(QString switches="")
int deleteRecord(HTable *d)
QString getHeaderItem(int col)
void sustraction(double d, QString limitTo="")
virtual QString sqlCreateStringPart(QString switches="")
HConnect(QString sqlc, QString connected_tablep)
void alternateActionOnRecord(QString key)
virtual QString sqlSelectHead(void)
virtual QString sqlCreateStringPart(QString switches="")
bool is_value_unknown(void)
virtual QString sqlInsertValue(void)
void setHashFunction(int(*nh)(const char *))
QStringList * deep_copy_stringlist(QStringList *target, QStringList *source)
virtual QString sqlInsertValue(void)
virtual int clearList(void)
int updateWithKey(QString key="", bool all=false, bool update=true, bool tdisabled=false)
QString getTailText(void)
virtual QString getSQLValue(void)
static HRefreshAgentNetserver * getHRefreshAgentNetserver(void)
virtual QVariant dbValueToDispValue(QVariant v)
QString sqlConcatenateToLocal(QString string)
void setDisplayMode(int minDf, int maxDf, int groupDf)
virtual QString lowerValidate(void)
void errorSignal(QString err)
void deepcopy_from(HSqlChoose *x)
QVariant getSqlFieldValue(QString sqln)
void setElementValueByRowColName(QString r, QString c, double value)
virtual QList< QStringList * > * getValues(void)
void setFilterPart(QString fp)
void setSubselect(QString subs)
virtual QString sqlCreateStringPart(QString switches="")
HDataField * staticFieldByTitle(QString title="")
QString hsqli_numbertypename
virtual void value_changed()
void deepcopy_from_htable(HTable *x)
QString concatenateCoulmn(int col, QString separator)
void setPrintCellWidth(int w)
void set_havetocheck(void)
virtual QString sqlInsertHead(void)
int disableReadonlyMask(void)
virtual int clearList(void)
HTable * nextRecord(void)
void setTableTitle(QString s)
void addField(HDataField *i)
virtual QString getSQLValueAsString(void)
virtual QString sqlSelectHead(void)
void setExplainText(QString expl)
virtual QVariant dbValueToDispValue(QVariant v)
QString validate(bool all=true)
virtual QString lowerValidate(void)
virtual QString getSQLValue(void)
QList< QVariant > getRow(int row)
virtual QVariant getValue(void)
void setStream(QTextStream *oo)
QVariant operator[](int i)
static void notify(QString tblname)
void clearNotValidValues(void)
HTable * getActiveTable(void)
void updateStaticDisplayElementsSignal(void)
void setRowControl(int row, QString ctrl)
QString queryNextKey(void)
virtual QVariant getValue(void)
virtual QString getSQLValueAsString(void)
int updateWithKeyAll(QString key="", bool update=true, bool tdisabled=false)
void delRole(QString name)
virtual QVariant getValue(void)
HTable * getTByKey(QString key)
void setColorAllMarked(QString mark, int r, int g, int b)
QVariant defvalParser(QString s)
void setCellStr(int row, int col, QString strdata)
void putEmptyNode(QString n, QString parameters="")
void addExtraFunction(int pos, const QObject *receiver, QString text)
virtual HDataField * get_clone(void)
QString getValueOfKey(QString s)
virtual QString getSQLValueAsString(void)
virtual QString sqlCreateStringPart(QString switches="")
virtual int setDefval(QVariant v)
HTimestamp(QString sqlc, QString ex, QString tit, QString def, bool c)
virtual HDataField * get_clone(void)
virtual int setValue(QVariant v, bool sdisabled=false)
bool hsqli_need_create_sequence_before
void setElementValue(QString name, double value)
bool hsqli_sqlchooseconstraint
virtual HDataField * get_clone(void)
QTextStream * getStream(void)
void removeHTMLTags(bool force_all=false)
int enableReadonlyMask(void)
const QObject * extrafunc_receiver[5]
QString sqlUpdate(bool all=false)
void disableEasyForm(void)
HFloatTables(HTable *baserec)
QString getIndexedValueString(int index, bool *found=NULL)
void setNotValidValues(QStringList nvl)
virtual QString sqlSelectHead(void)
QList< QString > currentRowStr(void)
void cloneSqlInterfaceSettingsFrom(HSqlInterface *other)
HTable * getTByNum(int idx)
virtual int setDefval(QVariant v)
bool hsqli_largetext_sizemustdefine
void deepcopy_from(HNumber *x)
virtual int readList(QString filter="", bool all=true)
virtual QVariant dbValueToDispValue(QVariant v)
HSqlChoose(QString sqlc, QString ex, QString tit, QString def, QString ct, QString kf, QString sf, QString sfh, QString fp, QString op, QString inthash="", bool easyf=true)
virtual QString sqlUpdate(void)
virtual QVariant getDispValue()
QString hsqli_currentModeName
QString getSpecDisplaySortMode(void)
virtual QString sqlCreateStringPart(QString switches="")
QString currentRowControl(void)
virtual QString getSQLValueAsString(void)
double getIndexedValueDouble(int index, bool *found=NULL)
HDate(QString sqlc, QString ex, QString tit, QString def, bool u_a=true, bool unk=true)
virtual QString sqlInsertHead(void)
virtual QString sqlCreateStringPart(QString switches="")
void addRowStr(QList< QString > strlistdata, QString ctrl="")
virtual QString getSQLValueAsString(void)
virtual QString sqlSelectHead(void)
virtual QString sqlSelectHead(void)
virtual QString sqlSelectHead(void)
int sumCoulmnAsInt(int col)
void connectionEstablished()
HPlainDataMatrix(int col)
~HRefreshAgentNetclient()
QString getExplainText(void)
virtual QString sqlCreateStringPart(QString switches="")
QList< QString > getRowStr(int row)
HCharHash(QString sqlc, QString ex, QString tit, QString t, QString def, QStringList k, QStringList v)
void markedRecordToNew(HTable *r)
virtual QVariant getValue(void)
virtual QString getSQLValue(void)
bool hasMark(QString mark)
void setInitialSelected(bool selected)
virtual QString getSQLValue(void)
static HSqlSingleInterface * currentDefaultSqlInterface(void)
QStringList currentElementLabels(void)
void multiplicate(double d, QString limitTo="")
void clearDataChangeLogger(void)
static void setCustomSqlDatabase(QString databaseName, QString sqlinterfacename="")
void setGuiEnabledAllMarked(QString mark)
void setShowAllMarked(QString mark)
int getPrintCellWidth(void)
virtual QString sqlInsertHead(void)
virtual int setValue(QVariant v, bool sdisabled=false)
virtual HDataField * get_clone(void)
virtual QString sqlInsertHead(void)
long int getMinimum(void)
void setEditableAllMarked(QString mark)
void putHead(QString enc, bool nullhead=false)
void clearSqlSynced(void)
virtual QString getSQLValueAsString(void)
virtual QString sqlCreateStringPart(QString switches="")
void insertSql(QString additionaldefpart="", QString additionalvaluepart="")
void replaceSameUnderCellToEmpty(int col)
void removeToolButton(void)
void deepcopy_from(HStatic *x)
virtual int setValue(QVariant v, bool sdisabled=false)
virtual int setDefval(QVariant v)
virtual QVariant getKnownValue(void)
void setColor(int r, int g, int b)
virtual int setValue(QVariant v, bool sdisabled=false)
void setHtmlCssText(QString css)
#define GSAFETEXT_NO_HAVENOT
bool hsqli_hastimestamptype
void dataModifiedSignal(void)
QByteArray recodeData(QString d)
int my_dtoa(double v, char *buffer, int bufflen, int min, int max, int group)
virtual QString sqlSelectHead(void)
int captureNotify(QString tblname)
int hsqli_hackconvert_stdsqlconcatenation_to_local
void actionOnRecord(QString key)
void setInernalHashFunction(QString hashname)
QStringList allMarker(void)
void enableControlSlot(void)
void setSpecDisplaySortMode(QString m)
int saveRecord(bool all=false, bool tdisabled=false)
virtual HDataField * get_clone(void)
void returnToDefaultAllMarked(QString mark)
virtual QString sqlInsertValue(void)
void defS(QString name, QString sqlname="", QString rowName="", QString colName="", QString labels="")
void setDataChangeLogger(HDataChangeLogger *dcl)
void sqlSynced(HDataChangeLogger *dclog=NULL, bool forcechange=false, bool forcelog=false)
virtual QVariant getValue(void)
void setLoggingAllMarked(QString mark)
static void setDefaultSqlDatabase(void)
virtual HDataField * get_clone(void)
virtual QVariant getValue(void)
QString indexedElementSqlName(int index)
HDataChangeLogger(HTable *logtable, QString startpos=GSAFETEXT_UNKNOWN, QString startuser=GSAFETEXT_UNKNOWN)
virtual QString getSQLValueAsString(void)
virtual bool acceptFunction(void)
virtual int setDefval(QVariant v)
void deepcopy_from(HCharHash *x)
virtual QString sqlUpdate(void)
void deepcopy_from(HNumHash *x)
int hsqli_charhash_varcharlength
void connectTable(HTableBase *ct, int type=INNER_JOIN, QString connconstraint="")
virtual QString sqlInsertHead(void)
void setValidator(QString v="")
virtual QString sqlInsertHead(void)
QString getCellStr(int row, int col)
bool isReallyChanged(void)
HFloatTablesAsHList(HFloatTables *memt, HList *templ=NULL, bool clone_struct_from_memt=false)
virtual QString sqlInsertValue(void)
virtual int setValue(QVariant v, bool sdisabled=false)
virtual QString getSQLValue(void)
virtual QString sqlInsertValue(void)
void setAllField(QString fname, QVariant value)
bool hasEditableMod(void)
void addEditableMod(void)
QString indexedElementName(int index)
virtual int setDefval(QVariant v)
QString sqlSelectWk(QString tail="", bool all=false)
static HSqlSingleInterface * getSqlInterface(QString interfacename)
QString hsqli_hkeyconstraint
QStringList getHeads(int what)
virtual QString sqlCreateStringPart(QString switches="")
virtual QVariant dbValueToDispValue(QVariant v)
virtual QString getSQLValue(void)
void setEditBoxMaxWidth(int max)
bool isReallyChanged(void)
void useRole(QString name)
virtual bool acceptFunction(void)
bool getColumnPrintWrap(int col)
virtual HDataField * get_clone(void)
QString getInsertedKey(void)
virtual QString getSQLValueAsString(void)
virtual bool acceptSubselect(void)
QStack< HTableBase * > * connectedTableBases
QString getKey(bool head_val, QString intable="")
void setData(QString _sqlColumn, QString _explain, QString tit, QString _tailstr="", bool _editable=true)
virtual int setDefval(QVariant v)
QString getPopupDialogTitle(void)
void clearAndFreeConnections(void)
static QString serverAddress()
virtual QVariant getValue(void)
QString getElementValueStringByRowColName(QString r, QString c, bool *found=NULL)
int getGuiSortIndicator(void)
void value_is_known(void)
virtual QString sqlInsertHead(void)
virtual bool acceptSubselect(void)
virtual QString sqlInsertHead(void)
HSmallText(QString sqlc, QString ex, QString tit, QString t, QString def)
void addNotValidValue(QString v)
virtual QVariant getValue(void)
virtual QString sqlInsertHead(void)
virtual QString getSQLValue(void)
virtual QString sqlInsertValue(void)
int saveRecordAll(bool tdisabled=false)
bool getLastValidateStatus()
#define GSAFETEXT_UNKNOWN
QString currentElementSqlName(void)
void deepcopy_from_hdatafield(HDataField *x)
QString sqlInsert(bool insertkey=false)
void deepcopy_from_hlist(HList *x)
void set_donthavetocheck(void)
HNumHash(QString sqlc, QString ex, QString tit, QString t, QString def, QStringList k, QStringList v)
void clearConnections(void)
void resetMeldWithNext(void)
int hsqli_smalltext_varcharlength
virtual int setValue(QVariant v, bool sdisabled=false)
QString sqlSelect(QString tail="", bool all=false, bool keypart=false)
void addRowStr(QString d1="", QString d2="", QString d3="", QString d4="", QString d5="", QString d6="", QString d7="", QString d8="", QString d9="", QString d10="", QString d11="", QString d12="", QString d13="", QString d14="", QString d15="")
virtual QString sqlInsertHead(void)
void impossible_unknown(void)
virtual QString sqlUpdate(void)
bool is_checkenabled(void)
QString hsqli_datetypename
double currentElementValueDouble(void)
virtual QString sqlUpdate(void)
virtual int setDefval(QVariant v)
void setColumnPrintMaxWidth(int col, int m)
virtual QString sqlUpdate(void)
void actionOnRecord(QString key)
int fieldCount(bool withconnect=false)
void deepcopy_from(HSmallText *x)
void addGuidisabledMod(void)
void zeroall(QString limitTo="")
virtual QString sqlInsertValue(void)
virtual bool acceptSubselect(void)
QByteArray recodeDataNoconvert(QString d)
QString hsqli_floattypename
int insertRecord(bool insertkey=false, bool disable_tr=false, bool resetafterinsert=true)
virtual QString sqlUpdate(void)
virtual bool acceptSubselect(void)
void deferredSqlRefresh(void)
virtual QString sqlCreateStringPart(QString switches="")
virtual QString sqlInsertHead(void)
virtual QStringList * getKeys(void)
static bool isRunning(void)
QString getKeyOfValue(QString s)
bool hasGuienabledMod(void)
HDataField * asConstant(void)
QList< QString > getHeader(void)
bool queryNextRecord(void)
void deepcopy_from(HTimestamp *x)
int saveDBTable(bool tdisabled=false)
void deepcopy_from(HKey *x)