1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  *  Copyright © 2016 Igalia S.L.
4  *
5  *  This file is part of Epiphany.
6  *
7  *  Epiphany 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 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  Epiphany 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 Epiphany.  If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #pragma once
22 
23 #include <gtk/gtk.h>
24 
25 #include "ephy-security-levels.h"
26 
27 G_BEGIN_DECLS
28 
29 #define EPHY_TYPE_TITLE_WIDGET (ephy_title_widget_get_type ())
30 
31 G_DECLARE_INTERFACE (EphyTitleWidget, ephy_title_widget, EPHY, TITLE_WIDGET, GtkWidget)
32 
33 struct _EphyTitleWidgetInterface
34 {
35   GTypeInterface parent_iface;
36 
37   const char       *(*get_address)        (EphyTitleWidget  *widget);
38   void              (*set_address)        (EphyTitleWidget  *widget,
39                                            const char       *address);
40   EphySecurityLevel (*get_security_level) (EphyTitleWidget  *widget);
41   void              (*set_security_level) (EphyTitleWidget  *widget,
42                                            EphySecurityLevel security_level);
43 };
44 
45 const char       *ephy_title_widget_get_address        (EphyTitleWidget *widget);
46 
47 void              ephy_title_widget_set_address        (EphyTitleWidget *widget,
48                                                         const char      *address);
49 
50 EphySecurityLevel ephy_title_widget_get_security_level (EphyTitleWidget *widget);
51 
52 void              ephy_title_widget_set_security_level (EphyTitleWidget   *widget,
53                                                         EphySecurityLevel  security_level);
54 
55 G_END_DECLS
56