aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader.h
blob: bf8f9861459c4dc1c826b4d41cee1b24ab6ed3c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
 * e-mail-reader.h
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) version 3.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with the program; if not, see <http://www.gnu.org/licenses/>  
 *
 *
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
 *
 */

#ifndef E_MAIL_READER_H
#define E_MAIL_READER_H

#include <gtk/gtk.h>
#include <camel/camel-folder.h>
#include <mail/em-format-html-display.h>
#include <mail/message-list.h>
#include <shell/e-shell-module.h>

/* Standard GObject macros */
#define E_TYPE_MAIL_READER \
    (e_mail_reader_get_type ())
#define E_MAIL_READER(obj) \
    (G_TYPE_CHECK_INSTANCE_CAST \
    ((obj), E_TYPE_MAIL_READER, EMailReader))
#define E_IS_MAIL_READER(obj) \
    (G_TYPE_CHECK_INSTANCE_TYPE \
    ((obj), E_TYPE_MAIL_READER))
#define E_MAIL_READER_GET_IFACE(obj) \
    (G_TYPE_INSTANCE_GET_INTERFACE \
    ((obj), E_TYPE_MAIL_READER, EMailReaderIface))

/* Basename of the UI definition file. */
#define E_MAIL_READER_UI_DEFINITION "evolution-mail-reader.ui"

G_BEGIN_DECLS

typedef struct _EMailReader EMailReader;
typedef struct _EMailReaderIface EMailReaderIface;

struct _EMailReaderIface {
    GTypeInterface parent_iface;

    GtkActionGroup *
            (*get_action_group) (EMailReader *reader);
    gboolean    (*get_hide_deleted) (EMailReader *reader);
    EMFormatHTMLDisplay *
            (*get_html_display) (EMailReader *reader);
    MessageList *   (*get_message_list) (EMailReader *reader);
    EShellModule *  (*get_shell_module) (EMailReader *reader);
    GtkWindow * (*get_window)       (EMailReader *reader);

    void        (*set_folder)       (EMailReader *reader,
                         CamelFolder *folder,
                         const gchar *folder_uri);
    void        (*set_message)      (EMailReader *reader,
                         const gchar *uid,
                         gboolean mark_read);
};

GType       e_mail_reader_get_type      (void);
void        e_mail_reader_init      (EMailReader *reader);
void        e_mail_reader_changed       (EMailReader *reader);
GtkActionGroup *
        e_mail_reader_get_action_group  (EMailReader *reader);
gboolean    e_mail_reader_get_hide_deleted  (EMailReader *reader);
EMFormatHTMLDisplay *
        e_mail_reader_get_html_display  (EMailReader *reader);
MessageList *   e_mail_reader_get_message_list  (EMailReader *reader);
EShellModule *  e_mail_reader_get_shell_module  (EMailReader *reader);
GtkWindow * e_mail_reader_get_window    (EMailReader *reader);
void        e_mail_reader_set_folder    (EMailReader *reader,
                         CamelFolder *folder,
                         const gchar *folder_uri);
void        e_mail_reader_set_folder_uri    (EMailReader *reader,
                         const gchar *folder_uri);
void        e_mail_reader_set_message   (EMailReader *reader,
                         const gchar *uid,
                         gboolean mark_read);
void        e_mail_reader_create_charset_menu
                        (EMailReader *reader,
                         GtkUIManager *ui_manager,
                         guint merge_id);

G_END_DECLS

#endif /* E_MAIL_READER_H */
-22 16:50:07 +0800'>2004-12-223-21/+239 * - update nagios-plugins to 1.4.0 alpha2arved2004-12-0511-109/+57 * Add the missing patch files from the last commit.arved2004-12-024-0/+113 * Update nagios-plugins port to 1.4.0.alpha1.arved2004-12-028-156/+72 * Kris reports that the build failure was a local problem on pointyhat.linimon2004-11-211-4/+0 * BROKEN on 5.x: Does not compilekris2004-11-191-0/+4 * - Chase radiusclient shlib version bumppav2004-11-161-1/+1 * Fix check_ircd which fails due to perl taint checkssem2004-08-122-1/+11 * * Replace scripts/configure with OPTIONS [1]ade2004-07-274-143/+88 * Sync with new bsd.autotools.mkade2004-06-051-0/+1 * use USE_OPENLDAP.eik2004-05-012-4/+4 * - Fix parameters passed to /bin/ps which is used by check_procs and check_nagiospav2004-04-183-25/+60 * SIZEify (maintainer timeout)trevor2004-03-311-0/+1 * Whoa there, boy, that's a mighty big commit y'all have there...ade2004-03-141-1/+1 * - Fix dependencieskrion2004-03-122-5/+5 * Say hello to the new "net-mgmt" category. There are probably morewollman2004-02-231-1/+1 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-0/+1 * Fix non-default dependency on openldap2[012] which is broken by splitting.kuriyama2003-08-151-1/+1 * o Update to 1.3.1.kuriyama2003-08-035-9/+32 * MAINTAINER UPDATE: net/nagios-pluginsedwin2003-04-075-65/+18 * Point dependencies on net/openldap2 to net/openldap20edwin2003-02-241-1/+1 * De-pkg-comment.knu2003-02-212-1/+1 * Missed configure scripts in libpq version bump: chase lib version.seanc2003-01-051-1/+2 * Remove a file that somehow sneaked in; this is automatically generatedpetef2003-01-041-7/+0 * Update to 1.3.0.b2.petef2003-01-0410-113/+71 * Add nagios-plugins after repocopy from netsaint-plugins.kuriyama2002-07-2218-511/+386 * Bump PORTREVISION.kuriyama2002-06-246-0/+157 * Add USE_SUBMAKE, where it might be necessary.sobomax2002-03-251-0/+1 * Use $MASTER_SITE_SOURCEFORGE.kuriyama2001-12-181-1/+2 * Add $SCRIPTS_ENV for $WRKDIRPREFIX and $MKDIR.kuriyama2001-12-181-0/+2 * Unbreak on $WRKDIRPREFIX environment.kuriyama2001-12-181-0/+1 * Update netsaint to 0.0.7b8dwcjr2001-12-172-4/+4 * Fix mis-spelt ${.CURDIR}.kuriyama2001-12-131-3/+3 * upgrade netsaint -> 0.0.7b4, netsaint-plugins -> 1.2.9.4ijliao2001-05-177-79/+40 * - Enable OpenLDAP and PostgreSQL support.dirk2001-04-164-57/+181 * Fix check_ntp (FreeBSD has /usr/sbin/ntpdc instead of /usr/sbin/xntpdc).dirk2001-04-102-0/+12 * portlint3: FATAL: Makefile 60: variable LIB_DEPENDS is redefined.mharo2001-04-041-1/+1 * Update netsaint-plugins to 1.2.9.3. Don't depend on netsaint port asmharo2001-04-044-8/+56 * - upgrade to 1.2.9.2dirk2001-03-315-278/+169 * Netsaint-plugins needs automake to build.dirk2001-03-291-1/+2 * Update to 1.2.9.1.roam2001-03-145-110/+146 * distfile movedmharo2001-01-131-1/+1 * Release to the world all of my ports that I don't use, excluding KDE 1,will2001-01-091-1/+1