23 #ifdef ENABLE_XBASE_SUPPORT
28 whoami =
"HXBaseRecordSync";
32 HXBaseRecordSync::~HXBaseRecordSync(
void)
39 fieldconn.push_back(HFieldPairs(htablefieldsqlname,xbasefieldname));
49 QList<HFieldPairs>::iterator i;
50 for(i=fieldconn.begin();i!=fieldconn.end();++i)
57 sdebug(QString(
"ERROR in HXBaseRecordSync::syncHTableToXBase :\n"
58 "Can't find datafield in HTable with name \"%1\" (Passed with assign) SKIPPING!")
59 .arg(i->gsafefieldname));
64 if(gsafetype ==
"HKey" ||
65 gsafetype ==
"HSmallText" ||
66 gsafetype ==
"HLargeText" ||
67 gsafetype ==
"HCharHash" ||
68 gsafetype ==
"HSqlChoose" )
71 if(gsafetype ==
"HNumHash" ||
72 gsafetype ==
"HNumber" )
75 if(gsafetype ==
"HFloating")
78 if(gsafetype ==
"HDate")
81 if(gsafetype ==
"HCheck")
84 if(gsafetype ==
"HTimestamp")
87 if(gsafetype ==
"HStatic")
96 QList<HFieldPairs>::iterator i;
97 for(i=fieldconn.begin();i!=fieldconn.end();++i)
105 sdebug(QString(
"ERROR in HXBaseRecordSync::syncXBaseToHTable :\n"
106 "Can't find datafield in HTable with name \"%1\" (Passed with assign) SKIPPING!")
107 .arg(i->gsafefieldname));
113 if(gsafetype ==
"HKey" ||
114 gsafetype ==
"HSmallText" ||
115 gsafetype ==
"HLargeText" ||
116 gsafetype ==
"HCharHash" ||
117 gsafetype ==
"HSqlChoose" )
120 if(gsafetype ==
"HNumHash" ||
121 gsafetype ==
"HNumber" )
124 if(gsafetype ==
"HFloating")
127 if(gsafetype ==
"HDate")
130 if(gsafetype ==
"HCheck")
133 if(gsafetype ==
"HTimestamp")
136 if(gsafetype ==
"HStatic")
146 #endif // ENABLE_XBASE_SUPPORT
HDataField * fieldBySqlName(QString sqln, bool all=false, QString containerSqlTable="")
virtual int setValue(QVariant v, bool sdisabled=false)
long getFieldDecimal(QString fname)
void assign(QString htablefieldsqlname, QString xbasefieldname)
QDate getFieldDate(QString fname)
bool getFieldBool(QString fname)
int setFieldFloat(QString fname, double val)
int syncHTableToXBase(HTable *record, HXBaseFileWriter *dbf)
QString getFieldStr(QString fname)
int setFieldBool(QString fname, bool logical)
int setFieldDecimal(QString fname, long decimal)
virtual QVariant getValue(void)
int setFieldDate(QString fname, QDate date)
double getFieldFloat(QString fname)
int setFieldStr(QString fname, QString str)
int syncXBaseToHTable(HXBaseFileReader *dbf, HTable *record)