Commit ecc67a6498b8a4c132d54987b9a281a4b834d57f
1 parent
2cd54c20
Exists in
master
and in
1 other branch
Adding "setProperty" methods for legacy compatility.
Showing
2 changed files
with
18 additions
and
1 deletions
Show diff stats
client/src/include/lib3270/ipc.h
@@ -821,6 +821,23 @@ | @@ -821,6 +821,23 @@ | ||
821 | return getAttribute(name); | 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 | /// @brief Get lib3270 version. | 841 | /// @brief Get lib3270 version. |
825 | inline std::string getVersion() const { | 842 | inline std::string getVersion() const { |
826 | return session->getVersion(); | 843 | return session->getVersion(); |
client/src/testprogram/testprogram.cc
@@ -104,7 +104,7 @@ | @@ -104,7 +104,7 @@ | ||
104 | TN3270::Host host{session}; | 104 | TN3270::Host host{session}; |
105 | 105 | ||
106 | host.setTimeout(5); | 106 | host.setTimeout(5); |
107 | - // host.setProperty("crl_download",false); | 107 | + host.setProperty("crl_download",false); |
108 | 108 | ||
109 | //name="url"; | 109 | //name="url"; |
110 | 110 |