Commit 1dfbf5e348ac5be3db811c0ec3abfaa7b38b9a33
1 parent
5559de21
Exists in
master
and in
5 other branches
Mudando biblioteca cliente hllapi para usar a classe base para simplificar o desenvolvimento
Showing
4 changed files
with
18 additions
and
4 deletions
Show diff stats
pw3270.cbp
| @@ -271,9 +271,7 @@ | @@ -271,9 +271,7 @@ | ||
| 271 | <Unit filename="src/plugins/dbus3270/service.h" /> | 271 | <Unit filename="src/plugins/dbus3270/service.h" /> |
| 272 | <Unit filename="src/plugins/dbus3270/test.sh" /> | 272 | <Unit filename="src/plugins/dbus3270/test.sh" /> |
| 273 | <Unit filename="src/plugins/hllapi/Makefile.in" /> | 273 | <Unit filename="src/plugins/hllapi/Makefile.in" /> |
| 274 | - <Unit filename="src/plugins/hllapi/calls.c"> | ||
| 275 | - <Option compilerVar="CC" /> | ||
| 276 | - </Unit> | 274 | + <Unit filename="src/plugins/hllapi/calls.cc" /> |
| 277 | <Unit filename="src/plugins/hllapi/client.h" /> | 275 | <Unit filename="src/plugins/hllapi/client.h" /> |
| 278 | <Unit filename="src/plugins/hllapi/hllapi.c"> | 276 | <Unit filename="src/plugins/hllapi/hllapi.c"> |
| 279 | <Option compilerVar="CC" /> | 277 | <Option compilerVar="CC" /> |
src/include/pw3270/class.h
| @@ -162,6 +162,10 @@ | @@ -162,6 +162,10 @@ | ||
| 162 | virtual int pakey(int key) = 0; | 162 | virtual int pakey(int key) = 0; |
| 163 | virtual int quit(void) = 0; | 163 | virtual int quit(void) = 0; |
| 164 | 164 | ||
| 165 | + // Actions | ||
| 166 | + virtual int erase_eof(void) = 0; | ||
| 167 | + virtual int print(void) = 0; | ||
| 168 | + | ||
| 165 | // Field management | 169 | // Field management |
| 166 | virtual int get_field_start(int baddr = -1) = 0; | 170 | virtual int get_field_start(int baddr = -1) = 0; |
| 167 | virtual int get_field_len(int baddr = -1) = 0; | 171 | virtual int get_field_len(int baddr = -1) = 0; |
src/plugins/rx3270/Makefile.in
| @@ -29,7 +29,6 @@ | @@ -29,7 +29,6 @@ | ||
| 29 | MODULE_NAME=rx3270 | 29 | MODULE_NAME=rx3270 |
| 30 | DEPENDS=*.h ../../include/*.h ../../include/lib3270/*.h Makefile | 30 | DEPENDS=*.h ../../include/*.h ../../include/lib3270/*.h Makefile |
| 31 | PLUGIN_SRC=pluginmain.cc | 31 | PLUGIN_SRC=pluginmain.cc |
| 32 | -# EXTAPI_SRC=rxapimain.cc text.cc typed_routines.cc local.cc remote.cc rexx_methods.cc rx3270.cc exception.cc | ||
| 33 | EXTAPI_SRC=rxapimain.cc typed_routines.cc rexx_methods.cc | 32 | EXTAPI_SRC=rxapimain.cc typed_routines.cc rexx_methods.cc |
| 34 | 33 | ||
| 35 | #---[ Tools ]------------------------------------------------------------------ | 34 | #---[ Tools ]------------------------------------------------------------------ |
src/plugins/rx3270/pluginmain.cc
| @@ -114,6 +114,9 @@ | @@ -114,6 +114,9 @@ | ||
| 114 | int pfkey(int key); | 114 | int pfkey(int key); |
| 115 | int pakey(int key); | 115 | int pakey(int key); |
| 116 | 116 | ||
| 117 | + int erase_eof(void); | ||
| 118 | + int print(void); | ||
| 119 | + | ||
| 117 | int get_field_start(int baddr = -1); | 120 | int get_field_start(int baddr = -1); |
| 118 | int get_field_len(int baddr = -1); | 121 | int get_field_len(int baddr = -1); |
| 119 | int get_next_unprotected(int baddr = -1); | 122 | int get_next_unprotected(int baddr = -1); |
| @@ -743,3 +746,13 @@ string * plugin::get_display_charset(void) | @@ -743,3 +746,13 @@ string * plugin::get_display_charset(void) | ||
| 743 | { | 746 | { |
| 744 | return new string(lib3270_get_display_charset(hSession)); | 747 | return new string(lib3270_get_display_charset(hSession)); |
| 745 | } | 748 | } |
| 749 | + | ||
| 750 | +int plugin::erase_eof(void) | ||
| 751 | +{ | ||
| 752 | + return lib3270_eraseeof(hSession); | ||
| 753 | +} | ||
| 754 | + | ||
| 755 | +int plugin::print(void) | ||
| 756 | +{ | ||
| 757 | + return lib3270_print(hSession); | ||
| 758 | +} |