pw3270.h
4.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
* "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> <Banco do Brasil S.A.>
*
* 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 pw3270.h e possui - linhas de código.
*
* Contatos:
*
* perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
* erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
* licinio@bb.com.br (Licínio Luis Branco)
* kraucer@bb.com.br (Kraucer Fernandes Mazuco)
*
*/
#ifndef PW3270_H_INCLUDED
#include <gtk/gtk.h>
#include <lib3270.h>
#define PW3270_H_INCLUDED 1
// pw3270 window
G_BEGIN_DECLS
#define GTK_TYPE_PW3270 (pw3270_get_type ())
#define GTK_PW3270(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PW3270, pw3270))
#define GTK_PW3270_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PW3270, pw3270Class))
#define GTK_IS_PW3270(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PW3270))
#define GTK_IS_PW3270_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PW3270))
#define GTK_PW3270_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PW3270, pw3270Class))
typedef struct _pw3270 pw3270;
typedef struct _pw3270Class pw3270Class;
LIB3270_EXPORT GtkWidget * pw3270_new(const gchar *host, const gchar *systype, unsigned short colors);
LIB3270_EXPORT void pw3270_set_url(GtkWidget *widget, const gchar *uri);
LIB3270_EXPORT const gchar * pw3270_get_url(GtkWidget *widget);
LIB3270_EXPORT void pw3270_connect(GtkWidget *widget);
LIB3270_EXPORT gboolean pw3270_get_toggle(GtkWidget *widget, LIB3270_TOGGLE ix);
LIB3270_EXPORT gboolean pw3270_set_toggle_by_name(GtkWidget *widget, const gchar *name, gboolean flag);
LIB3270_EXPORT H3270 * pw3270_get_session(GtkWidget *widget);
LIB3270_EXPORT GtkWidget * pw3270_get_terminal_widget(GtkWidget *widget);
LIB3270_EXPORT GtkWidget * pw3270_get_toplevel(void);
LIB3270_EXPORT void pw3270_save_window_size(GtkWidget *widget, const gchar *name);
LIB3270_EXPORT void pw3270_restore_window(GtkWidget *widget, const gchar *name);
LIB3270_EXPORT const gchar * pw3270_get_session_name(GtkWidget *widget);
LIB3270_EXPORT void pw3270_set_session_name(GtkWidget *widget, const gchar *name);
LIB3270_EXPORT void pw3270_set_oversize(GtkWidget *widget, const gchar *oversize);
LIB3270_EXPORT void pw3270_set_host_type(GtkWidget *widget, const gchar *name);
LIB3270_EXPORT int pw3270_set_session_color_type(GtkWidget *widget, unsigned short color_type);
// LIB3270_EXPORT gchar * pw3270_get_filename(GtkWidget *widget, const gchar *group, const gchar *key, GtkFileFilter **filter, const gchar *title);
LIB3270_EXPORT gchar * pw3270_get_string(GtkWidget *widget, const gchar *group, const gchar *key, const gchar *def);
LIB3270_EXPORT void pw3270_set_string(GtkWidget *widget, const gchar *group, const gchar *key, const gchar *val);
LIB3270_EXPORT gint pw3270_get_integer(GtkWidget *widget, const gchar *group, const gchar *key, gint def);
LIB3270_EXPORT void pw3270_set_integer(GtkWidget *widget, const gchar *group, const gchar *key, gint val);
LIB3270_EXPORT gboolean pw3270_get_boolean(GtkWidget *widget, const gchar *group, const gchar *key, gboolean def);
LIB3270_EXPORT void pw3270_set_boolean(GtkWidget *widget, const gchar *group, const gchar *key, gint val);
LIB3270_EXPORT gchar * pw3270_get_datadir(const gchar *first_element, ...);
LIB3270_EXPORT void pw3270_set_host_charset(GtkWidget *widget, const gchar *name);
LIB3270_EXPORT void pw3270_remap_from_xml(GtkWidget *widget, const gchar *name);
LIB3270_EXPORT void pw3270_set_action_state(GtkAction *action, gboolean on);
LIB3270_EXPORT int pw3270_print(GtkWidget *widget, GObject *action, GtkPrintOperationAction oper, LIB3270_CONTENT_OPTION src);
LIB3270_EXPORT gboolean pw3270_set_keyboard_action(GtkWidget *widget, const gchar *key_name, GtkAction *action);
#ifdef HAVE_GTKMAC
#include <gtk-mac-bundle.h>
LIB3270_EXPORT GtkMacBundle * pw3270_get_bundle(void);
#endif
G_END_DECLS
#endif // PW3270_H_INCLUDED