1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Library General Public License as
6
* published by the Free Software Foundation; either version 2 of the
7
* License, or (at your option) any later version.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
20
* Dan Vratil <dvratil@redhat.com>
23
#ifndef E_PORT_ENTRY_H
24
#define E_PORT_ENTRY_H
27
#include <camel/camel.h>
29
/* Standard GObject macros */
30
#define E_TYPE_PORT_ENTRY \
31
(e_port_entry_get_type ())
32
#define E_PORT_ENTRY(obj) \
33
(G_TYPE_CHECK_INSTANCE_CAST \
34
((obj), E_TYPE_PORT_ENTRY, EPortEntry))
35
#define E_PORT_ENTRY_CLASS(cls) \
36
(G_TYPE_CHECK_CLASS_CAST \
37
((cls), E_TYPE_PORT_ENTRY, EPortEntryClass))
38
#define E_IS_PORT_ENTRY(obj) \
39
(G_TYPE_CHECK_INSTANCE_TYPE \
40
((obj), E_TYPE_PORT_ENTRY))
41
#define E_IS_PORT_ENTRY_CLASS(cls) \
42
(G_TYPE_CHECK_CLASS_TYPE \
43
((cls), E_TYPE_PORT_ENTRY))
44
#define E_PORT_ENTRY_GET_CLASS(obj) \
45
(G_TYPE_INSTANCE_GET_CLASS \
46
((obj), E_TYPE_PORT_ENTRY, EPortEntryClass))
50
typedef struct _EPortEntry EPortEntry;
51
typedef struct _EPortEntryClass EPortEntryClass;
52
typedef struct _EPortEntryPrivate EPortEntryPrivate;
56
EPortEntryPrivate *priv;
59
struct _EPortEntryClass {
60
GtkComboBoxClass parent_class;
63
GType e_port_entry_get_type (void) G_GNUC_CONST;
64
GtkWidget * e_port_entry_new (void);
65
void e_port_entry_set_camel_entries (EPortEntry *pentry,
66
CamelProviderPortEntry *entries);
67
void e_port_entry_security_port_changed
70
gint e_port_entry_get_port (EPortEntry *pentry);
71
void e_port_entry_set_port (EPortEntry *pentry, gint port);
72
gboolean e_port_entry_is_valid (EPortEntry *pentry);
73
void e_port_entry_activate_secured_port
76
void e_port_entry_activate_nonsecured_port
82
#endif /* E_PORT_ENTRY_H */