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 | 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