Commit d1524662f7a979dd72313e1f794dcfccfec84d50
1 parent
688efc9c
Exists in
master
and in
1 other branch
Exporting methods to be used by the new hllapi module.
Showing
5 changed files
with
63 additions
and
0 deletions
Show diff stats
client/src/core/session.cc
client/src/include/ipc-client-internals.h
... | ... | @@ -181,6 +181,9 @@ |
181 | 181 | void getProperty(const char *name, std::string &value) const override; |
182 | 182 | void getProperty(const char *name, bool &value) const override; |
183 | 183 | |
184 | + // Set properties. | |
185 | + void setUnlockDelay(unsigned short delay = 350) override; | |
186 | + | |
184 | 187 | std::string getVersion() const override; |
185 | 188 | std::string getRevision() const override; |
186 | 189 | |
... | ... | @@ -217,6 +220,12 @@ |
217 | 220 | /// @brief Execute action by name. |
218 | 221 | TN3270::Session & action(const char *action_name) override; |
219 | 222 | |
223 | + /// @brief Wait. | |
224 | + TN3270::Session & wait(unsigned short seconds) override; | |
225 | + | |
226 | + /// @brief Wait for update. | |
227 | + TN3270::Session & wait_for_update(unsigned short seconds) override; | |
228 | + | |
220 | 229 | }; |
221 | 230 | |
222 | 231 | } |
... | ... | @@ -353,6 +362,9 @@ |
353 | 362 | std::string getVersion() const override; |
354 | 363 | std::string getRevision() const override; |
355 | 364 | |
365 | + // Set properties. | |
366 | + void setUnlockDelay(unsigned short delay = 350) override; | |
367 | + | |
356 | 368 | // Gets |
357 | 369 | std::string toString(int baddr, size_t len, char lf) const override; |
358 | 370 | std::string toString(int row, int col, size_t sz, char lf) const override; |
... | ... | @@ -386,6 +398,12 @@ |
386 | 398 | /// @brief Execute action by name. |
387 | 399 | TN3270::Session & action(const char *action_name) override; |
388 | 400 | |
401 | + /// @brief Wait. | |
402 | + TN3270::Session & wait(unsigned short seconds) override; | |
403 | + | |
404 | + /// @brief Wait for update. | |
405 | + TN3270::Session & wait_for_update(unsigned short seconds) override; | |
406 | + | |
389 | 407 | }; |
390 | 408 | |
391 | 409 | } | ... | ... |
client/src/session/local/session.cc
... | ... | @@ -469,6 +469,22 @@ |
469 | 469 | return *this; |
470 | 470 | } |
471 | 471 | |
472 | + /// @brief Wait. | |
473 | + TN3270::Session & Local::Session::wait(unsigned short seconds) { | |
474 | + | |
475 | + return *this; | |
476 | + } | |
477 | + | |
478 | + /// @brief Wait for update. | |
479 | + TN3270::Session & Local::Session::wait_for_update(unsigned short seconds) { | |
480 | + | |
481 | + return *this; | |
482 | + } | |
483 | + | |
484 | + void Local::Session::setUnlockDelay(unsigned short delay) { | |
485 | + lib3270_set_unlock_delay(hSession,delay); | |
486 | + } | |
487 | + | |
472 | 488 | } |
473 | 489 | |
474 | 490 | ... | ... |
client/src/session/remote/session.cc
... | ... | @@ -367,6 +367,22 @@ |
367 | 367 | return *this; |
368 | 368 | } |
369 | 369 | |
370 | + /// @brief Wait. | |
371 | + TN3270::Session & IPC::Session::wait(unsigned short seconds) { | |
372 | + | |
373 | + return *this; | |
374 | + } | |
375 | + | |
376 | + /// @brief Wait for update. | |
377 | + TN3270::Session & IPC::Session::wait_for_update(unsigned short seconds) { | |
378 | + | |
379 | + return *this; | |
380 | + } | |
381 | + | |
382 | + void IPC::Session::setUnlockDelay(unsigned short delay) { | |
383 | + | |
384 | + } | |
385 | + | |
370 | 386 | } |
371 | 387 | |
372 | 388 | ... | ... |
common/src/include/lib3270/ipc.h
... | ... | @@ -268,6 +268,10 @@ |
268 | 268 | return this->getConnectionState() == state; |
269 | 269 | } |
270 | 270 | |
271 | + // Set properties. | |
272 | + virtual void setUnlockDelay(unsigned short delay = 350) = 0; | |
273 | + void setCharSet(const char *charset); | |
274 | + | |
271 | 275 | // Set contents. |
272 | 276 | |
273 | 277 | /// @brief Set field at current posicion, jumps to next writable field. |
... | ... | @@ -318,6 +322,12 @@ |
318 | 322 | /// @brief Execute action by name. |
319 | 323 | virtual Session & action(const char *action_name) = 0; |
320 | 324 | |
325 | + /// @brief Wait. | |
326 | + virtual Session & wait(unsigned short seconds) = 0; | |
327 | + | |
328 | + /// @brief Wait for update. | |
329 | + virtual Session & wait_for_update(unsigned short seconds) = 0; | |
330 | + | |
321 | 331 | }; |
322 | 332 | |
323 | 333 | /// @brief TN3270 Host | ... | ... |