30 #include <qstringlist.h> 33 #define round(x) floor(x+0.55555555) 44 # define Sleep(a) usleep((a)*1000) 50 #if defined(Q_OS_WIN32) && !defined(LIB_NO_DLL) 51 # define LIB_DLLIMPORT __declspec(dllimport) 52 # define LIB_DLLEXPORT __declspec(dllexport) 54 # define LIB_DLLIMPORT 55 # define LIB_DLLEXPORT 58 #if defined (Q_CC_MSVC) 59 #define TEMPLATE_EXTERN extern 61 #define TEMPLATE_EXTERN 64 #ifdef TRADEEQUIP_EXPORT 65 # define LIB_EXPORT LIB_DLLEXPORT 67 # define LIB_EXPORT LIB_DLLIMPORT 70 #ifdef TRADEEQUIP_EXPORT 71 # define LIB_TEMPLATE_EXTERN 73 # define LIB_TEMPLATE_EXTERN TEMPLATE_EXTERN 76 #if defined(Q_CC_MSVC) 77 # define vsnprintf _vsnprintf 95 template <
class U,
class V>
96 U min(
const U & a,
const V & b)
98 if (a<=(
const U&)b)
return a;
else return (
const U&)b;
101 template <
class U,
class V>
102 U max(
const U & a,
const V & b)
104 if (a>=(
const U&)b)
return a;
else return (
const U&)b;
111 #define CRERROR_NOTSUPPORTED 1 112 #define CRERROR_DEVICEERROR 2 113 #define CRERROR_INVALIDCALL 3 114 #define CRERROR_FATALDEVICEERROR 4 115 #define CRERROR_COMMERROR 5 144 ECT_NOCONNECTION =0x0,
158 CRO_SELLSTORNO = 0x4,
163 CRO_DISCOUNTPERCENT = 0x9,
174 Q_EXTERN_C LIB_EXPORT QStringList te_drivers(
const QString &baseClass = QString::null );
175 Q_EXTERN_C LIB_EXPORT
bool te_driverExists(
const QString &className,
const QString &baseClass = QString::null );
176 Q_EXTERN_C LIB_EXPORT
TEBase *te_createDriverObject(
const QString &className );
178 LIB_EXPORT QString te_MD5(
const QByteArray &data );
179 LIB_EXPORT QString te_MD5(
const QString &data );
180 LIB_EXPORT
int te_MD5_selftest();
183 extern void cr_message(QString logFile,
int msgtype,
const char *msgfmt,...);
185 extern void cfg_message(
int msgtype,
const char *msgfmt,...);
The TE class is a namespace for miscellaneous identifiers that need to be global-like in trade equipm...
Definition: teglobal.h:128
EquipmentConnectionType
Definition: teglobal.h:143
CaptureMode
Define connection capture mode for setCaptureMode()
Definition: teglobal.h:134
CashRegisterOperations
Definition: teglobal.h:153
The TEBase is base class for all trade equipment classes.
Definition: tebase.h:148