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.
rcw.h
Go to the documentation of this file.
1 /*
2  * Remmina - The GTK+ Remote Desktop Client
3  * Copyright (C) 2009 - 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 #include "remmina_file.h"
41 #include "remmina_message_panel.h"
42 
43 G_BEGIN_DECLS
44 
45 #define REMMINA_TYPE_CONNECTION_WINDOW (rcw_get_type())
46 #define RCW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), REMMINA_TYPE_CONNECTION_WINDOW, RemminaConnectionWindow))
47 #define RCW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), REMMINA_TYPE_CONNECTION_WINDOW, RemminaConnectionWindowClass))
48 #define REMMINA_IS_CONNECTION_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), REMMINA_TYPE_CONNECTION_WINDOW))
49 #define REMMINA_IS_CONNECTION_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), REMMINA_TYPE_CONNECTION_WINDOW))
50 #define RCW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), REMMINA_TYPE_CONNECTION_WINDOW, RemminaConnectionWindowClass))
51 
52 typedef struct _RemminaConnectionWindowPriv RemminaConnectionWindowPriv;
53 
54 typedef struct _RemminaConnectionWindow {
55  GtkWindow window;
58 
60  GtkWindowClass parent_class;
61  void (*toolbar_place)(RemminaConnectionWindow *gp);
63 
65 
66 typedef enum {
70 
71 GType rcw_get_type(void)
72 G_GNUC_CONST;
73 
74 /* Open a new connection window for a .remmina file */
75 gboolean rcw_open_from_filename(const gchar *filename);
76 /* Open a new connection window for a given RemminaFile struct. The struct will be freed after the call */
77 void rcw_open_from_file(RemminaFile *remminafile);
80 GtkWidget *rcw_open_from_file_full(RemminaFile *remminafile, GCallback disconnect_cb, gpointer data, guint *handler);
81 GtkWindow* rcw_get_gtkwindow(RemminaConnectionObject *cnnobj);
83 
84 void rco_destroy_message_panel(RemminaConnectionObject *cnnobj, RemminaMessagePanel *mp);
85 void rco_show_message_panel(RemminaConnectionObject *cnnobj, RemminaMessagePanel *mp);
86 void rco_get_monitor_geometry(RemminaConnectionObject *cnnobj, GdkRectangle *sz);
87 
88 
89 
90 #define MESSAGE_PANEL_SPINNER 0x00000001
91 #define MESSAGE_PANEL_OKBUTTON 0x00000002
92 
93 G_END_DECLS
void rcw_set_delete_confirm_mode(RemminaConnectionWindow *cnnwin, RemminaConnectionWindowOnDeleteConfirmMode mode)
Definition: rcw.c:4729
typedefG_BEGIN_DECLS struct _RemminaFile RemminaFile
Definition: types.h:44
GtkWindow * rcw_get_gtkwindow(RemminaConnectionObject *cnnobj)
Definition: rcw.c:4720
GtkWidget * rcw_open_from_file_full(RemminaFile *remminafile, GCallback disconnect_cb, gpointer data, guint *handler)
Definition: rcw.c:4523
void rco_destroy_message_panel(RemminaConnectionObject *cnnobj, RemminaMessagePanel *mp)
Deletes a RemminaMessagePanel from the current cnnobj and if it was visible, make visible the last re...
Definition: rcw.c:4739
RemminaConnectionWindowOnDeleteConfirmMode
Definition: rcw.h:66
struct _RemminaConnectionWindowPriv RemminaConnectionWindowPriv
Definition: rcw.h:52
struct _RemminaConnectionWindow RemminaConnectionWindow
void rcw_open_from_file(RemminaFile *remminafile)
Definition: rcw.c:4470
gboolean rcw_open_from_filename(const gchar *filename)
Definition: rcw.c:4422
GtkWindowClass parent_class
Definition: rcw.h:60
void rco_show_message_panel(RemminaConnectionObject *cnnobj, RemminaMessagePanel *mp)
Each cnnobj->page can have more than one RemminaMessagePanel, but 0 or 1 are visible.
Definition: rcw.c:4786
RemminaConnectionWindowPriv * priv
Definition: rcw.h:56
GType rcw_get_type(void) G_GNUC_CONST
gboolean rcw_delete(RemminaConnectionWindow *cnnwin)
Definition: rcw.c:650
struct _RemminaConnectionWindowClass RemminaConnectionWindowClass
RemminaConnectionWindow * cnnwin
Definition: rcw.c:164
GtkWidget * rcw_get_gtkviewport(RemminaConnectionObject *cnnobj)
Definition: rcw.c:4724
GtkWindow window
Definition: rcw.h:55
void rco_get_monitor_geometry(RemminaConnectionObject *cnnobj, GdkRectangle *sz)
Definition: rcw.c:1011