Commit ecc67a6498b8a4c132d54987b9a281a4b834d57f

Authored by Perry Werneck
1 parent 2cd54c20
Exists in master and in 1 other branch develop

Adding "setProperty" methods for legacy compatility.

client/src/include/lib3270/ipc.h
... ... @@ -821,6 +821,23 @@
821 821 return getAttribute(name);
822 822 }
823 823  
  824 + // Set properties.
  825 + inline void setProperty(const char *name, const int value) {
  826 + session->setProperty(name,value);
  827 + }
  828 +
  829 + inline void setProperty(const char *name, const unsigned int value) {
  830 + session->setProperty(name,value);
  831 + }
  832 +
  833 + inline void setProperty(const char *name, const bool value) {
  834 + session->setProperty(name,value);
  835 + }
  836 +
  837 + inline void setProperty(const char *name, const char *value) {
  838 + session->setProperty(name,value);
  839 + }
  840 +
824 841 /// @brief Get lib3270 version.
825 842 inline std::string getVersion() const {
826 843 return session->getVersion();
... ...
client/src/testprogram/testprogram.cc
... ... @@ -104,7 +104,7 @@
104 104 TN3270::Host host{session};
105 105  
106 106 host.setTimeout(5);
107   - // host.setProperty("crl_download",false);
  107 + host.setProperty("crl_download",false);
108 108  
109 109 //name="url";
110 110  
... ...