diff --git a/client/ipcclient.cbp b/client/ipcclient.cbp index eb6d38d..cf95ed1 100644 --- a/client/ipcclient.cbp +++ b/client/ipcclient.cbp @@ -42,6 +42,7 @@ + diff --git a/client/src/core/actions.cc b/client/src/core/actions.cc new file mode 100644 index 0000000..5b744f9 --- /dev/null +++ b/client/src/core/actions.cc @@ -0,0 +1,55 @@ +/* + * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 + * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a + * aplicativos mainframe. Registro no INPI sob o nome G3270. + * + * Copyright (C) <2008> + * + * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob + * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela + * Free Software Foundation. + * + * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER + * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO + * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para + * obter mais detalhes. + * + * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este + * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin + * St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Este programa está nomeado como - e possui - linhas de código. + * + * Contatos: + * + * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) + * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) + * + */ + +/** + * @file src/os/linux/actions.cc + * + * @brief Implements methods for static action management. + * + * @author perry.werneck@gmail.com + * + */ + + #include + #include + +/*---[ Implement ]----------------------------------------------------------------------------------*/ + + std::vector TN3270::getActions() { + + std::vector actions; + + for(auto action = lib3270_get_actions(); action->name; action++) { + actions.push_back(action); + } + + return actions; + + } + diff --git a/client/src/core/linux/attribute.cc b/client/src/core/linux/attribute.cc index 3754aef..f141386 100644 --- a/client/src/core/linux/attribute.cc +++ b/client/src/core/linux/attribute.cc @@ -42,7 +42,7 @@ /*---[ Implement ]----------------------------------------------------------------------------------*/ - std::vector TN3270::getAttributes() noexcept { + std::vector TN3270::getAttributes() { std::vector attributes; diff --git a/client/src/include/lib3270/ipc.h b/client/src/include/lib3270/ipc.h index 0fe2771..3f63202 100644 --- a/client/src/include/lib3270/ipc.h +++ b/client/src/include/lib3270/ipc.h @@ -37,6 +37,7 @@ #include #include #include + #include #if defined(_WIN32) @@ -90,7 +91,13 @@ * @brief Get list of attributes. * */ - TN3270_PUBLIC std::vector getAttributes() noexcept; + TN3270_PUBLIC std::vector getAttributes(); + + /** + * @brief Get list of actions. + * + */ + TN3270_PUBLIC std::vector getActions(); class TN3270_PUBLIC Event { public: -- libgit2 0.21.2