From 2d35de355ea9f8f2437bc15fccb64321c7c530d5 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Wed, 10 Apr 2013 12:37:01 +0000 Subject: [PATCH] Reorganizando classes de apoio ao rexx --- po/pt_BR.po | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------- pw3270.cbp | 1 + src/plugins/rx3270/local.cc | 67 +------------------------------------------------------------------ src/plugins/rx3270/rx3270.cc | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/plugins/rx3270/rx3270.h | 1 + src/plugins/rx3270/rxapimain.cc | 38 -------------------------------------- src/plugins/rx3270/session.cc | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 277 insertions(+), 167 deletions(-) create mode 100644 src/plugins/rx3270/rx3270.cc create mode 100644 src/plugins/rx3270/session.cc diff --git a/po/pt_BR.po b/po/pt_BR.po index aec3b4c..b24e1f9 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: pw3270 5.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-04-08 16:21-0300\n" +"POT-Creation-Date: 2013-04-10 09:20-0300\n" "PO-Revision-Date: 2013-04-01 10:06-0300\n" "Last-Translator: Perry Werneck \n" "Language-Team: Português <>\n" @@ -200,7 +200,7 @@ msgstr "Sobre a segurança" msgid "Action failed" msgstr "Ação falhou" -#: ui/00default.xml:327 +#: ui/00default.xml:328 msgid "Add to copy" msgstr "Adicionar à cópia" @@ -208,7 +208,7 @@ msgstr "Adicionar à cópia" msgid "Add/Remove _CR at end of line" msgstr "Adicionar/Remover _CR no final da linha" -#: ui/00default.xml:395 +#: ui/00default.xml:396 msgid "Alert sound" msgstr "Aviso sonoro" @@ -238,7 +238,7 @@ msgstr "Divergência nos números de série da autoridade e emissor " msgid "Authority and subject key identifier mismatch" msgstr "Authority and subject key identifier mismatch" -#: ui/00default.xml:390 +#: ui/00default.xml:391 msgid "Auto-Reconnect" msgstr "Reconectar automaticamente" @@ -262,11 +262,11 @@ msgstr "Versão winsock inválida" msgid "Black" msgstr "Preto" -#: ui/00default.xml:388 +#: ui/00default.xml:389 msgid "Blank Fill" msgstr "Completar com espaços" -#: ui/00default.xml:381 +#: ui/00default.xml:382 msgid "Blinking Cursor" msgstr "Cursor piscante" @@ -274,7 +274,7 @@ msgstr "Cursor piscante" msgid "Blue" msgstr "Azul" -#: ui/00default.xml:391 +#: ui/00default.xml:392 msgid "Bold" msgstr "Negrito" @@ -486,7 +486,7 @@ msgstr "Tema de cores:" msgid "Color setup" msgstr "Configuração de cores" -#: ui/00default.xml:370 +#: ui/00default.xml:371 msgid "Colors" msgstr "Cores" @@ -494,7 +494,7 @@ msgstr "Cores" msgid "Complete" msgstr "Completo" -#: ui/00default.xml:380 +#: ui/00default.xml:381 msgid "Connect on startup" msgstr "Conectar ao iniciar" @@ -502,7 +502,7 @@ msgstr "Conectar ao iniciar" msgid "Connection reset by peer" msgstr "Conexão foi cancelada pelo servidor" -#: ui/00default.xml:324 +#: ui/00default.xml:325 msgid "Copy" msgstr "Copiar" @@ -510,11 +510,11 @@ msgstr "Copiar" msgid "Copy as HTML" msgstr "Copiar como HTML" -#: ui/00default.xml:325 +#: ui/00default.xml:326 msgid "Copy as table" msgstr "Copiar como tabela" -#: colors.c:418 ui/00default.xml:387 +#: colors.c:418 ui/00default.xml:388 msgid "Cross hair cursor" msgstr "Cursor mira" @@ -527,7 +527,7 @@ msgstr "Atual (%s)" msgid "Custom colors" msgstr "Cores personalizadas" -#: ui/00default.xml:328 +#: ui/00default.xml:329 msgid "Cut" msgstr "Recortar" @@ -567,7 +567,7 @@ msgstr "Mostrar atualizações de janela" msgid "Default" msgstr "Padrão" -#: ui/00default.xml:344 +#: ui/00default.xml:345 msgid "Delete field" msgstr "Apagar campo" @@ -615,15 +615,15 @@ msgstr "" "Apagar\n" "Campos" -#: ui/00default.xml:343 +#: ui/00default.xml:344 msgid "Erase input" msgstr "Apagar campos" -#: ui/00default.xml:345 +#: ui/00default.xml:346 msgid "Erase to end of field" msgstr "Apagar até o final do campo" -#: ui/00default.xml:346 +#: ui/00default.xml:347 msgid "Erase to end of line" msgstr "Apagar até o final da linha" @@ -670,7 +670,7 @@ msgstr "Erro ao resolver %s: %s" msgid "Event Trace" msgstr "Trace de eventos" -#: ui/rexx.xml:259 +#: ui/rexx.xml:260 msgid "External Rexx script" msgstr "External Rexx script" @@ -718,7 +718,7 @@ msgstr "Format error in certificate's notAfter field" msgid "Format error in certificate's notBefore field" msgstr "Format error in certificate's notBefore field" -#: ui/00default.xml:384 +#: ui/00default.xml:385 msgid "Full Screen" msgstr "Tela cheia" @@ -767,7 +767,7 @@ msgstr "HTTP Proxy: EOF inesperado" msgid "HTTP Proxy: unrecognized reply" msgstr "HTTP Proxy: Resposta desconhecida" -#: ui/00default.xml:405 +#: ui/00default.xml:406 msgid "Help" msgstr "Ajuda" @@ -828,7 +828,7 @@ msgstr "Comprimento de frame inválido" msgid "Informations" msgstr "Informações" -#: ui/00default.xml:400 +#: ui/00default.xml:401 msgid "Input method" msgstr "Método de entrada" @@ -875,7 +875,7 @@ msgstr "Sintaxe de proxy inválida" msgid "Invalid proxy type '%.*s'" msgstr "Tipo de proxy invalido '%.*s'" -#: ui/00default.xml:393 +#: ui/00default.xml:394 msgid "Keep selected" msgstr "Manter selecionado" @@ -908,7 +908,7 @@ msgstr "Faltando ']'" msgid "Model %d (%s)" msgstr "Modelo %d (%s)" -#: ui/00default.xml:382 +#: ui/00default.xml:383 msgid "Monocase" msgstr "Só Maiúsculas" @@ -944,7 +944,7 @@ msgstr "Erro de rede" msgid "Network startup error" msgstr "Erro ao iniciar a rede" -#: ui/00default.xml:452 +#: ui/00default.xml:453 msgid "Next field" msgstr "Próximo campo" @@ -1142,15 +1142,15 @@ msgstr "Erro de interpretação em %s" msgid "Passthru Proxy: send error" msgstr "Passthru Proxy: Erro ao enviar" -#: ui/00default.xml:329 +#: ui/00default.xml:330 msgid "Paste" msgstr "Colar" -#: ui/00default.xml:330 +#: ui/00default.xml:331 msgid "Paste next" msgstr "Colar próximo" -#: ui/00default.xml:333 +#: ui/00default.xml:334 msgid "Paste text file" msgstr "Colar arquivo texto" @@ -1158,7 +1158,7 @@ msgstr "Colar arquivo texto" msgid "Paste text file contents" msgstr "Colar conteúdo de arquivo texto" -#: ui/00default.xml:386 +#: ui/00default.xml:387 msgid "Paste with left margin" msgstr "Colar com margem esquerda" @@ -1174,7 +1174,7 @@ msgstr "Caminho para os arquivos de dados da aplicação" msgid "Pink" msgstr "Rosa" -#: ui/00default.xml:451 +#: ui/00default.xml:452 msgid "Previous field" msgstr "Campo anterior" @@ -1182,11 +1182,11 @@ msgstr "Campo anterior" msgid "Primary space:" msgstr "Primary space:" -#: ui/00default.xml:312 +#: ui/00default.xml:313 msgid "Print" msgstr "Imprimir" -#: ui/00default.xml:314 +#: ui/00default.xml:315 msgid "Print copy" msgstr "Imprimir cópia" @@ -1194,7 +1194,7 @@ msgstr "Imprimir cópia" msgid "Print operation failed" msgstr "Operação de impressão falhou" -#: ui/00default.xml:313 +#: ui/00default.xml:314 msgid "Print selected" msgstr "Imprimir seleção" @@ -1202,7 +1202,7 @@ msgstr "Imprimir seleção" msgid "Print selection box" msgstr "Imprimir marca de seleção" -#: print.c:754 ui/00default.xml:371 +#: print.c:754 ui/00default.xml:372 msgid "Print settings" msgstr "Configurações de impressão" @@ -1290,7 +1290,7 @@ msgstr "RPQ: can't resolve '%s': %s" msgid "RPQ: gethostbyname error" msgstr "RPQ: Erro em gethostbyname" -#: ui/00default.xml:317 +#: ui/00default.xml:318 msgid "Receive file" msgstr "Receber arquivo" @@ -1310,11 +1310,11 @@ msgstr "Vermelho" msgid "Reload buffer contents" msgstr "Recarregar conteúdo do buffer" -#: ui/00default.xml:338 +#: ui/00default.xml:339 msgid "Remove selection" msgstr "Remover seleção" -#: ui/00default.xml:339 +#: ui/00default.xml:340 msgid "Reselect" msgstr "Reselecionar" @@ -1322,11 +1322,11 @@ msgstr "Reselecionar" msgid "Reset" msgstr "Reset" -#: ui/00default.xml:385 +#: ui/00default.xml:386 msgid "Resize on alternate screen" msgstr "Mudar tamanho do terminal em tela alternativa" -#: ui/00default.xml:453 +#: ui/00default.xml:454 msgid "Return" msgstr "Return" @@ -1487,7 +1487,7 @@ msgstr "" "SSL_write:\n" "%s" -#: ui/00default.xml:309 +#: ui/00default.xml:310 msgid "Save copy" msgstr "Salvar cópia" @@ -1495,7 +1495,7 @@ msgstr "Salvar cópia" msgid "Save copy to file" msgstr "Salvar cópia para arquivo" -#: ui/00default.xml:307 +#: ui/00default.xml:308 msgid "Save screen" msgstr "Salvar tela" @@ -1503,7 +1503,7 @@ msgstr "Salvar tela" msgid "Save screen to file" msgstr "Salvar tela para arquivo" -#: ui/00default.xml:308 +#: ui/00default.xml:309 msgid "Save selected" msgstr "Salvar seleção" @@ -1515,11 +1515,11 @@ msgstr "Salvar seleção para arquivo" msgid "Screen Trace" msgstr "Trace de tela" -#: ui/00default.xml:377 +#: ui/00default.xml:378 msgid "Screen size" msgstr "Tamanho da tela" -#: ui/rexx.xml:259 +#: ui/rexx.xml:260 msgid "Scripts" msgstr "Scripts" @@ -1531,15 +1531,15 @@ msgstr "Secondary space:" msgid "Secure connection was successful." msgstr "Conexão segura efetuada com sucesso." -#: ui/00default.xml:337 +#: ui/00default.xml:338 msgid "Select Field" msgstr "Selecionar campo" -#: ui/00default.xml:336 +#: ui/00default.xml:337 msgid "Select all" msgstr "Selecionar tudo" -#: ui/00default.xml:389 +#: ui/00default.xml:390 msgid "Select by rectangles" msgstr "Seleção retangular" @@ -1551,7 +1551,7 @@ msgstr "Selecione arquivo a receber" msgid "Select file to send" msgstr "Selecione arquivo a enviar" -#: ui/00default.xml:374 +#: ui/00default.xml:375 msgid "Select font" msgstr "Selecione fonte" @@ -1575,7 +1575,7 @@ msgstr "Certificado auto assinado" msgid "Self signed certificate in certificate chain" msgstr "Certificado auto assinado na cadeia de certificados" -#: ui/00default.xml:318 +#: ui/00default.xml:319 msgid "Send file" msgstr "Enviar arquivo" @@ -1587,7 +1587,7 @@ msgstr "Enviar arquivo para o servidor" msgid "Send messages to syslog" msgstr "Enviar mensagens para o log do sistema" -#: ui/00default.xml:317 +#: ui/00default.xml:318 msgid "Send/Receive" msgstr "Enviar/Receber" @@ -1595,7 +1595,7 @@ msgstr "Enviar/Receber" msgid "Session name" msgstr "Nome da sessão" -#: ui/00default.xml:355 +#: ui/00default.xml:356 msgid "Set hostname" msgstr "Selecione servidor" @@ -1611,11 +1611,11 @@ msgstr "Desativa toggles" msgid "Set toggles ON" msgstr "Ativa toggles" -#: ui/00default.xml:370 +#: ui/00default.xml:371 msgid "Settings" msgstr "Configurações" -#: ui/00default.xml:392 +#: ui/00default.xml:393 msgid "Show Underline" msgstr "Mostrar sublinhado" @@ -1623,7 +1623,7 @@ msgstr "Mostrar sublinhado" msgid "Show test pattern" msgstr "Mostrar padrão de teste" -#: ui/00default.xml:394 +#: ui/00default.xml:395 msgid "Smart paste" msgstr "Colar inteligente" @@ -1902,7 +1902,7 @@ msgid "" "This version of %s was built without support for secure sockets layer (SSL)." msgstr "Esta versão do %s foi gerada sem suporte para conexões seguras (SSL)." -#: ui/00default.xml:411 +#: ui/00default.xml:412 msgid "Toolbar" msgstr "Barra de ferramentas" @@ -1910,7 +1910,7 @@ msgstr "Barra de ferramentas" msgid "Trace" msgstr "Trace" -#: ui/00default.xml:383 +#: ui/00default.xml:384 msgid "Track Cursor" msgstr "Mostrar posição do cursor" @@ -2117,7 +2117,7 @@ msgstr "Unsupported passthru host session" msgid "Unsupported socks 4 proxy" msgstr "Unsupported socks 4 proxy" -#: ui/00default.xml:396 +#: ui/00default.xml:397 msgid "Use +/- for field navigation" msgstr "Usar teclas +/- para navegar por campos" @@ -2158,7 +2158,7 @@ msgstr "Europa ocidental (ISO 8859-1)" msgid "White" msgstr "Branco" -#: ui/00default.xml:422 +#: ui/00default.xml:423 msgid "Window" msgstr "Janela" @@ -2226,11 +2226,11 @@ msgstr "_Procurar" msgid "_Color table:" msgstr "Tabela de cores:" -#: ui/00default.xml:365 +#: ui/00default.xml:366 msgid "_Connect" msgstr "_Conectar" -#: ui/00default.xml:366 +#: ui/00default.xml:367 msgid "_Disconnect" msgstr "_Desconectar" @@ -2238,7 +2238,7 @@ msgstr "_Desconectar" msgid "_Edit" msgstr "_Editar" -#: ui/rexx.xml:255 +#: ui/rexx.xml:256 msgid "_File" msgstr "_Arquivo" @@ -2266,11 +2266,11 @@ msgstr "Nome do _Host:" msgid "_Local file name:" msgstr "Arquivo _local:" -#: ui/00default.xml:355 +#: ui/00default.xml:356 msgid "_Network" msgstr "_Rede" -#: ui/00default.xml:380 +#: ui/00default.xml:381 msgid "_Options" msgstr "_Opções" @@ -2298,7 +2298,7 @@ msgstr "Arquivo _texto" msgid "_To" msgstr "_Para" -#: ui/rexx.xml:257 +#: ui/rexx.xml:258 msgid "_View" msgstr "_Exibir" diff --git a/pw3270.cbp b/pw3270.cbp index d2863ab..4af8d0e 100644 --- a/pw3270.cbp +++ b/pw3270.cbp @@ -288,6 +288,7 @@ + diff --git a/src/plugins/rx3270/local.cc b/src/plugins/rx3270/local.cc index 6585d64..1ffe0f4 100644 --- a/src/plugins/rx3270/local.cc +++ b/src/plugins/rx3270/local.cc @@ -114,69 +114,10 @@ /*--[ Globals ]--------------------------------------------------------------------------------------*/ - static bool plugin = false; - static rx3270 * defSession = NULL; - /*--[ Implement ]------------------------------------------------------------------------------------*/ -rx3270::rx3270(const char *local, const char *remote) +rx3270 * rx3270::create_local(void) { -#ifdef HAVE_ICONV - - if(strcmp(local,remote)) - { - // Local and remote charsets aren't the same, setup conversion - this->conv2Local = iconv_open(local, remote); - this->conv2Host = iconv_open(remote,local); - } - else - { - this->conv2Local = this->conv2Host = (iconv_t)(-1); - } -#endif - - if(!defSession) - defSession = this; -} - -rx3270::~rx3270() -{ -#ifdef HAVE_ICONV - - if(conv2Local != (iconv_t) (-1)) - iconv_close(conv2Local); - - if(conv2Host != (iconv_t) (-1)) - iconv_close(conv2Host); -#endif - - - if(defSession == this) - defSession = NULL; -} - -rx3270 * rx3270::create(const char *name) -{ - if(name && *name) - return create_remote(name); - return new dynamic(); -} - -char * rx3270::get_version(void) -{ - return strdup(PACKAGE_VERSION); -} - -char * rx3270::get_revision(void) -{ - return strdup(PACKAGE_REVISION); -} - -rx3270 * rx3270::get_default(void) -{ - if(defSession) - return defSession; - return new dynamic(); } @@ -200,12 +141,6 @@ static int get_datadir(LPSTR datadir) } #endif // WIN32 -void rx3270::set_plugin(void) -{ - trace("%s: Rexx API running as plugin",__FUNCTION__); - plugin = true; -} - extern "C" { diff --git a/src/plugins/rx3270/rx3270.cc b/src/plugins/rx3270/rx3270.cc new file mode 100644 index 0000000..3cb61a1 --- /dev/null +++ b/src/plugins/rx3270/rx3270.cc @@ -0,0 +1,159 @@ +/* + * "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., 59 Temple + * Place, Suite 330, Boston, MA, 02111-1307, USA + * + * Este programa está nomeado como rx3270.cc e possui - linhas de código. + * + * Contatos: + * + * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) + * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) + * + */ + + /* + * + * Reference: + * + * http://www.oorexx.org/docs/rexxpg/x2950.htm + * + */ + + #include "rx3270.h" + #include + #include + +#ifdef HAVE_SYSLOG + #include +#endif // HAVE_SYSLOG + + #include + +/*--[ Globals ]--------------------------------------------------------------------------------------*/ + + static bool plugin = false; + static rx3270 * defSession = NULL; + +/*--[ Implement ]------------------------------------------------------------------------------------*/ + +rx3270::rx3270(const char *local, const char *remote) +{ +#ifdef HAVE_ICONV + + if(strcmp(local,remote)) + { + // Local and remote charsets aren't the same, setup conversion + this->conv2Local = iconv_open(local, remote); + this->conv2Host = iconv_open(remote,local); + } + else + { + this->conv2Local = this->conv2Host = (iconv_t)(-1); + } +#endif + + if(!defSession) + defSession = this; +} + +rx3270::~rx3270() +{ +#ifdef HAVE_ICONV + + if(conv2Local != (iconv_t) (-1)) + iconv_close(conv2Local); + + if(conv2Host != (iconv_t) (-1)) + iconv_close(conv2Host); +#endif + + + if(defSession == this) + defSession = NULL; +} + +rx3270 * rx3270::create(const char *name) +{ + if(name && *name) + return create_remote(name); + return create_local(); +} + +char * rx3270::get_version(void) +{ + return strdup(PACKAGE_VERSION); +} + +char * rx3270::get_revision(void) +{ + return strdup(PACKAGE_REVISION); +} + +rx3270 * rx3270::get_default(void) +{ + if(defSession) + return defSession; + return create_local(); +} + +void rx3270::log(const char *fmt, ...) +{ + va_list arg_ptr; + va_start(arg_ptr, fmt); + this->logva(fmt,arg_ptr); + va_end(arg_ptr); +} + +void rx3270::logva(const char *fmt, va_list args) +{ +#ifdef HAVE_SYSLOG + openlog(PACKAGE_NAME, LOG_NDELAY, LOG_USER); + vsyslog(LOG_INFO,fmt,args); + closelog(); +#else + vfprintf(stderr,fmt,args); +#endif +} + +int rx3270::wait_for_text_at(int row, int col, const char *key, int timeout) +{ + time_t end = time(0)+timeout; + + while(time(0) < end) + { + if(!is_connected()) + return ENOTCONN; + + if(!cmp_text_at(row,col,key)) + return 0; + + iterate(); + } + + return ETIMEDOUT; +} + +void rx3270::set_plugin(void) +{ + plugin = true; +} + + + + diff --git a/src/plugins/rx3270/rx3270.h b/src/plugins/rx3270/rx3270.h index c382a70..e1334b7 100644 --- a/src/plugins/rx3270/rx3270.h +++ b/src/plugins/rx3270/rx3270.h @@ -133,6 +133,7 @@ static rx3270 * create(const char *name = NULL); static rx3270 * create_remote(const char *name); + static rx3270 * create_local(void); static rx3270 * get_default(void); static void set_plugin(void); diff --git a/src/plugins/rx3270/rxapimain.cc b/src/plugins/rx3270/rxapimain.cc index 340c8ee..ad59951 100644 --- a/src/plugins/rx3270/rxapimain.cc +++ b/src/plugins/rx3270/rxapimain.cc @@ -171,41 +171,3 @@ LIB3270_EXPORT RexxPackageEntry * RexxEntry RexxGetPackage(void) END_EXTERN_C() -void rx3270::log(const char *fmt, ...) -{ - va_list arg_ptr; - va_start(arg_ptr, fmt); - this->logva(fmt,arg_ptr); - va_end(arg_ptr); -} - -void rx3270::logva(const char *fmt, va_list args) -{ -#ifdef HAVE_SYSLOG - openlog(PACKAGE_NAME, LOG_NDELAY, LOG_USER); - vsyslog(LOG_INFO,fmt,args); - closelog(); -#else - vfprintf(stderr,fmt,args); -#endif -} - -int rx3270::wait_for_text_at(int row, int col, const char *key, int timeout) -{ - time_t end = time(0)+timeout; - - while(time(0) < end) - { - if(!is_connected()) - return ENOTCONN; - - if(!cmp_text_at(row,col,key)) - return 0; - - iterate(); - } - - return ETIMEDOUT; -} - - diff --git a/src/plugins/rx3270/session.cc b/src/plugins/rx3270/session.cc new file mode 100644 index 0000000..5bf74b6 --- /dev/null +++ b/src/plugins/rx3270/session.cc @@ -0,0 +1,52 @@ +/* + * "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., 59 Temple + * Place, Suite 330, Boston, MA, 02111-1307, USA + * + * Este programa está nomeado como session.cc e possui - linhas de código. + * + * Contatos: + * + * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) + * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) + * + */ + + #include + #include + + #include "rx3270.h" + #include + + +/*--[ Implement ]------------------------------------------------------------------------------------*/ + +session::session() +{ + this->hSession = lib3270_get_default_session_handle(); +} + +session::~session() +{ + +} + +const char * session::getVersion(void) +{ + return lib3270_get_version(); +} -- libgit2 0.21.2