Debian Codegraph @

subprojects/gtk-frdp/src/frdp-display.h

raw symbols SCIP
1 /* frdp-display.h
2 *
3 * Copyright (C) 2018 Felipe Borges <[email protected]>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #pragma once
20
21 #include <gtk/gtk.h>
22
23 G_BEGIN_DECLS
24
25 #define FRDP_TYPE_DISPLAY (frdp_display_get_type())
26
27 G_DECLARE_DERIVABLE_TYPE (FrdpDisplay, frdp_display, FRDP, DISPLAY, GtkDrawingArea)
28
29 typedef struct _FrdpDisplayPrivate FrdpDisplayPrivate;
30
31 struct _FrdpDisplayClass
32 {
33 GtkDrawingAreaClass parent_parent;
34
35 gboolean (*authenticate) (FrdpDisplay *self, gchar **username, gchar **password, gchar **domain);
36 };
37
38 GtkWidget *frdp_display_new (void);
39
40 void frdp_display_open_host (FrdpDisplay *display,
41 const gchar *host,
42 guint port);
43
44 gboolean frdp_display_is_open (FrdpDisplay *display);
45
46 void frdp_display_close (FrdpDisplay *display);
47
48 void frdp_display_set_scaling (FrdpDisplay *display,
49 gboolean scaling);
50
51 gboolean frdp_display_authenticate (FrdpDisplay *self,
52 gchar **username,
53 gchar **password,
54 gchar **domain);
55
56 guint frdp_display_certificate_verify_ex (FrdpDisplay *self,
57 const gchar *host,
58 guint16 port,
59 const gchar *common_name,
60 const gchar *subject,
61 const gchar *issuer,
62 const gchar *fingerprint,
63 guint32 flags);
64
65 guint frdp_display_certificate_change_verify_ex (FrdpDisplay *self,
66 const gchar *host,
67 guint16 port,
68 const gchar *common_name,
69 const gchar *subject,
70 const gchar *issuer,
71 const gchar *fingerprint,
72 const gchar *old_subject,
73 const gchar *old_issuer,
74 const gchar *old_fingerprint,
75 guint32 flags);
76
77 void frdp_display_certificate_verify_ex_finish (FrdpDisplay *self,
78 guint verification);
79
80 void frdp_display_certificate_change_verify_ex_finish (FrdpDisplay *self,
81 guint verification);
82
83 void frdp_display_authenticate_finish (FrdpDisplay *self,
84 gchar *username,
85 gchar *password,
86 gchar *domain);
87
88 gboolean frdp_display_is_keyboard_grabbed (FrdpDisplay *self);
89
90 GdkPixbuf *frdp_display_get_pixbuf (FrdpDisplay *display);
91
92 G_END_DECLS