Драйверы торгового оборудования v.9
idisplay.h
См. документацию.
1 
3 #ifndef IDISPLAY_H
4 #define IDISPLAY_H
5 
6 #include "idtobase.h"
7 
8 namespace TED
9 {
10 
12 namespace Display
13 {
14 
16 #define DTO_IDISPLAY_VER1 3
17 
18 class IDisplay;
19 
21 enum Model
22 {
23  ModelNull = -1,
24  ModelEpson = 0,
26  ModelPD309 = 2,
27  ModelEutron = 11,
28  ModelIPOS = 12,
32 };
33 
36 {
37  Off = -1,
38  None = 0,
39  Auto,
41 };
42 
45 {
46  CP437 = 437,
47  CP866 = 866,
48  CP1251 = 1251
49 };
50 
51 }
52 }
53 
55 
61 extern "C" DTOSHARED_EXPORT TED::Display::IDisplay * DTOSHARED_CCA CreateDisplayInterface(int ver);
62 
64 
67 extern "C" DTOSHARED_EXPORT void DTOSHARED_CCA ReleaseDisplayInterface(TED::Display::IDisplay **iface);
68 
70 typedef TED::Display::IDisplay*(*CreateDisplayInterfacePtr)(int ver);
73 
74 namespace TED
75 {
76 
77 namespace Display
78 {
79 
81 class IDisplay : public IDTOBase
82 {
83 public:
84  friend DTOSHARED_EXPORT void DTOSHARED_CCA ::ReleaseDisplayInterface(IDisplay * *);
85  typedef ReleaseDisplayInterfacePtr ReleaseFunction;
86 
88 
91  virtual ReleaseDisplayInterfacePtr DTOSHARED_CCA get_ReleaseFunction() = 0;
92 
94 
105  virtual int DTOSHARED_CCA DisplayText(const wchar_t *text, int scrollType, int repeatTimeout, int unitTimeout) = 0;
106 
108 
115  virtual int DTOSHARED_CCA get_CurrentDeviceID(wchar_t *bfr, int bfrSize) = 0;
116 
118 
124  virtual int DTOSHARED_CCA put_CurrentDeviceID(const wchar_t *value) = 0;
125 
127 
131  virtual int DTOSHARED_CCA get_DeviceRows(int *value) = 0;
132 
134 
138  virtual int DTOSHARED_CCA get_DeviceColumns(int *value) = 0;
139 
141 
145  virtual int DTOSHARED_CCA get_CharacterSet(int *value) = 0;
146 
148 
156  virtual int DTOSHARED_CCA put_ClsPtr(void *value) = 0;
157 
158 protected:
159  IDisplay()
160  {
161  }
162  ~IDisplay()
163  {
164  }
165 
166 private:
167  IDisplay(const IDisplay&);
168  IDisplay& operator=(const IDisplay&);
169 };
170 
171 } // namespace Display
172 } // namespace TED
173 
174 #endif // IDISPLAY_H
virtual int DTOSHARED_CCA get_CharacterSet(int *value)=0
Возвращает кодировку дисплея.
DTOSHARED_EXPORT TED::Display::IDisplay *DTOSHARED_CCA CreateDisplayInterface(int ver)
Создает экземпляр драйвера дисплеев покупателя.
CodePage
Кодовая страница
Definition: idisplay.h:44
virtual int DTOSHARED_CCA put_CurrentDeviceID(const wchar_t *value)=0
Устанавливает идентификатор экземпляра драйвера.
void(* ReleaseDisplayInterfacePtr)(TED::Display::IDisplay **iface)
Тип функции ReleaseDisplayInterface().
Definition: idisplay.h:72
Базовый интерфейс для работы с драйверами
Definition: idtobase.h:28
DTOSHARED_EXPORT void DTOSHARED_CCA ReleaseDisplayInterface(TED::Display::IDisplay **iface)
Разрушает экземпляр драйвера дисплеев покупателя.
ScrollType
Тип прокрутки текста
Definition: idisplay.h:35
virtual int DTOSHARED_CCA DisplayText(const wchar_t *text, int scrollType, int repeatTimeout, int unitTimeout)=0
Выводит на дисплей текст
virtual int DTOSHARED_CCA put_ClsPtr(void *value)=0
Устанавливает дескриптор устройства вывода (для подключения через ККТ).
virtual int DTOSHARED_CCA get_DeviceColumns(int *value)=0
Возвращает количество столбцов дисплея.
virtual int DTOSHARED_CCA get_DeviceRows(int *value)=0
Возвращает количество строк экрана дисплея.
virtual int DTOSHARED_CCA get_CurrentDeviceID(wchar_t *bfr, int bfrSize)=0
Возвращает идентификатор экземпляра драйвера.
Интерфейс драйвера дисплеев покупателя (дДП)
Definition: idisplay.h:81
virtual ReleaseDisplayInterfacePtr DTOSHARED_CCA get_ReleaseFunction()=0
Возвращает указатель на функцию удаления интерфейса.
Model
Модель
Definition: idisplay.h:21