Remmina - The GTK+ Remote Desktop Client  v1.4.33
Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks. Remmina supports multiple network protocols in an integrated and consistent user interface. Currently RDP, VNC, NX, XDMCP and SSH are supported.
remmina_message_panel.h
Go to the documentation of this file.
1 /*
2  * Remmina - The GTK+ Remote Desktop Client
3  * Copyright (C) 2009-2011 Vic Lee
4  * Copyright (C) 2014-2015 Antenore Gatta, Fabio Castelli, Giovanni Panozzo
5  * Copyright (C) 2016-2023 Antenore Gatta, Giovanni Panozzo
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  *
22  * In addition, as a special exception, the copyright holders give
23  * permission to link the code of portions of this program with the
24  * OpenSSL library under certain conditions as described in each
25  * individual source file, and distribute linked combinations
26  * including the two.
27  * You must obey the GNU General Public License in all respects
28  * for all of the code used other than OpenSSL. * If you modify
29  * file(s) with this exception, you may extend this exception to your
30  * version of the file(s), but you are not obligated to do so. * If you
31  * do not wish to do so, delete this exception statement from your
32  * version. * If you delete this exception statement from all source
33  * files in the program, then also delete it here.
34  *
35  */
36 
37 #pragma once
38 
39 #include <gtk/gtk.h>
40 
41 G_BEGIN_DECLS
42 
43 #define REMMINA_TYPE_MESSAGE_PANEL (remmina_message_panel_get_type())
44 G_DECLARE_DERIVABLE_TYPE(RemminaMessagePanel, remmina_message_panel, REMMINA, MESSAGE_PANEL, GtkBox)
45 
46 struct _RemminaMessagePanelClass {
47  GtkBoxClass parent_class;
48  void (*response) (RemminaMessagePanel *mp, gint response_id);
49 };
50 
51 
52 /* Widgets ID for dialog fields */
53 enum {
64 };
65 
66 /* Callback function type to receive buttons notification */
67 typedef void (*RemminaMessagePanelCallback)(void *user_data, int button);
68 
69 RemminaMessagePanel *remmina_message_panel_new(void);
70 void remmina_message_panel_setup_progress(RemminaMessagePanel *mp, const gchar *message, RemminaMessagePanelCallback response_callback, gpointer response_callback_data);
71 void remmina_message_panel_setup_message(RemminaMessagePanel *mp, const gchar *message, RemminaMessagePanelCallback response_callback, gpointer response_callback_data);
72 void remmina_message_panel_setup_question(RemminaMessagePanel *mp, const gchar *message, RemminaMessagePanelCallback response_callback, gpointer response_callback_data);
73 void remmina_message_panel_setup_auth(RemminaMessagePanel *mp, RemminaMessagePanelCallback response_callback, gpointer response_callback_data, const gchar *title, const gchar *password_prompt, unsigned flags);
74 void remmina_message_panel_setup_auth_x509(RemminaMessagePanel *mp, RemminaMessagePanelCallback response_callback, gpointer response_callback_data);
75 void remmina_message_panel_focus_auth_entry(RemminaMessagePanel *mp);
76 void remmina_message_panel_field_set_string(RemminaMessagePanel *mp, int entryid, const gchar *text);
77 gchar *remmina_message_panel_field_get_string(RemminaMessagePanel *mp, int entryid);
78 void remmina_message_panel_field_set_switch(RemminaMessagePanel *mp, int entryid, gboolean state);
79 gboolean remmina_message_panel_field_get_switch_state(RemminaMessagePanel *mp, int entryid);
80 void remmina_message_panel_field_set_filename(RemminaMessagePanel *mp, int entryid, const gchar *filename);
81 gchar *remmina_message_panel_field_get_filename(RemminaMessagePanel *mp, int entryid);
82 void remmina_message_panel_response(RemminaMessagePanel *mp, gint response_id);
83 
84 
85 G_END_DECLS
void remmina_message_panel_field_set_string(RemminaMessagePanel *mp, int entryid, const gchar *text)
void remmina_message_panel_setup_question(RemminaMessagePanel *mp, const gchar *message, RemminaMessagePanelCallback response_callback, gpointer response_callback_data)
void remmina_message_panel_setup_message(RemminaMessagePanel *mp, const gchar *message, RemminaMessagePanelCallback response_callback, gpointer response_callback_data)
gboolean remmina_message_panel_field_get_switch_state(RemminaMessagePanel *mp, int entryid)
gchar * remmina_message_panel_field_get_string(RemminaMessagePanel *mp, int entryid)
void remmina_message_panel_setup_progress(RemminaMessagePanel *mp, const gchar *message, RemminaMessagePanelCallback response_callback, gpointer response_callback_data)
void remmina_message_panel_focus_auth_entry(RemminaMessagePanel *mp)
void remmina_message_panel_response(RemminaMessagePanel *mp, gint response_id)
RemminaMessagePanel * remmina_message_panel_new(void)
void remmina_message_panel_field_set_switch(RemminaMessagePanel *mp, int entryid, gboolean state)
gchar * remmina_message_panel_field_get_filename(RemminaMessagePanel *mp, int entryid)
void(* RemminaMessagePanelCallback)(void *user_data, int button)
void remmina_message_panel_setup_auth_x509(RemminaMessagePanel *mp, RemminaMessagePanelCallback response_callback, gpointer response_callback_data)
void remmina_message_panel_field_set_filename(RemminaMessagePanel *mp, int entryid, const gchar *filename)
void remmina_message_panel_setup_auth(RemminaMessagePanel *mp, RemminaMessagePanelCallback response_callback, gpointer response_callback_data, const gchar *title, const gchar *password_prompt, unsigned flags)
G_DECLARE_DERIVABLE_TYPE(RemminaMessagePanel, remmina_message_panel, REMMINA, MESSAGE_PANEL, GtkBox) struct _RemminaMessagePanelClass