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)
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
77# define vsnprintf _vsnprintf
95template <
class U,
class V>
96U min(
const U & a,
const V & b)
98 if (a<=(
const U&)b)
return a;
else return (
const U&)b;
101template <
class U,
class V>
102U 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,
174Q_EXTERN_C LIB_EXPORT QStringList te_drivers(
const QString &baseClass = QString::null );
175Q_EXTERN_C LIB_EXPORT
bool te_driverExists(
const QString &className,
const QString &baseClass = QString::null );
176Q_EXTERN_C LIB_EXPORT
TEBase *te_createDriverObject(
const QString &className );
178LIB_EXPORT QString te_MD5(
const QByteArray &data );
179LIB_EXPORT QString te_MD5(
const QString &data );
180LIB_EXPORT
int te_MD5_selftest();
183extern void cr_message(QString logFile,
int msgtype,
const char *msgfmt,...);
185extern void cfg_message(
int msgtype,
const char *msgfmt,...);
Определения teglobal.h:129
CaptureMode
Define connection capture mode for setCaptureMode()
Определения teglobal.h:135
CashRegisterOperations
Определения teglobal.h:153
EquipmentConnectionType
Определения teglobal.h:143