~ubuntu-branches/ubuntu/precise/evolution/precise

« back to all changes in this revision

Viewing changes to widgets/misc/e-port-entry.h

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2011-06-24 00:27:53 UTC
  • mfrom: (1.1.80 upstream)
  • Revision ID: james.westby@ubuntu.com-20110624002753-2vh1vjavlya7r103
Tags: 3.1.2-0ubuntu1
* New upstream release 3.1.2.
* debian/control: adjust Build-Depends to match new upstream requirements for
  the new release.
* debian/control: update evolution and evolution-dev Depends to require the
  right versions of e-d-s (>= 3.1, << 3.2), and drop libunique-3.0-dev.
* debian/control,
  debian/evolution.install: remove groupwise-features from the plugin list,
  it's now split out into a separate module.
* debian/patches/03_lpi.patch: refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
 
 
3
/*
 
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.
 
8
 *
 
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.
 
13
 *
 
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
 
17
 * USA
 
18
 *
 
19
 * Authors:
 
20
 *      Dan Vratil <dvratil@redhat.com>
 
21
 */
 
22
 
 
23
#ifndef E_PORT_ENTRY_H
 
24
#define E_PORT_ENTRY_H
 
25
 
 
26
#include <gtk/gtk.h>
 
27
#include <camel/camel.h>
 
28
 
 
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))
 
47
 
 
48
G_BEGIN_DECLS
 
49
 
 
50
typedef struct _EPortEntry EPortEntry;
 
51
typedef struct _EPortEntryClass EPortEntryClass;
 
52
typedef struct _EPortEntryPrivate EPortEntryPrivate;
 
53
 
 
54
struct _EPortEntry {
 
55
        GtkComboBox parent;
 
56
        EPortEntryPrivate *priv;
 
57
};
 
58
 
 
59
struct _EPortEntryClass {
 
60
        GtkComboBoxClass parent_class;
 
61
};
 
62
 
 
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
 
68
                                                (EPortEntry *pentry,
 
69
                                                 gchar *ssl);
 
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
 
74
                                                (EPortEntry *pentry,
 
75
                                                 gint index);
 
76
void            e_port_entry_activate_nonsecured_port
 
77
                                                (EPortEntry *pentry,
 
78
                                                 gint index);
 
79
 
 
80
G_END_DECLS
 
81
 
 
82
#endif /* E_PORT_ENTRY_H */