aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.h
blob: 5c385268bd1ab2d513e3bc1d69baa3080e45f762 (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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */


#ifndef _FOLDER_BROWSER_H_
#define _FOLDER_BROWSER_H_

#include "mail-types.h"
#include <gtk/gtktable.h>
#include "camel/camel-stream.h"
#include <bonobo/bonobo-property-bag.h>
#include "message-list.h"
#include "mail-display.h"
#include "shell/Evolution.h"


#define FOLDER_BROWSER_TYPE        (folder_browser_get_type ())
#define FOLDER_BROWSER(o)          (GTK_CHECK_CAST ((o), FOLDER_BROWSER_TYPE, FolderBrowser))
#define FOLDER_BROWSER_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), FOLDER_BROWSER_TYPE, FolderBrowserClass))
#define IS_FOLDER_BROWSER(o)       (GTK_CHECK_TYPE ((o), FOLDER_BROWSER_TYPE))
#define IS_FOLDER_BROWSER_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), FOLDER_BROWSER_TYPE))


struct  _FolderBrowser {
    GtkTable parent;

    BonoboPropertyBag *properties;

    Evolution_Shell shell;

    /* This is a kludge for the toolbar problem. */
    int serial;

    /*
     * The current URI being displayed by the FolderBrowser
     */
    char        *uri;
    CamelFolder *folder;
    
    MessageList *message_list;
    GtkWidget   *message_list_w;
    MailDisplay *mail_display;
    GtkWidget   *vpaned;
    GtkWidget   *search_menu;
    GtkWidget   *search_entry;

    gboolean     preview_shown;

};


typedef struct {
    GtkTableClass parent_class;
} FolderBrowserClass;




GtkType        folder_browser_get_type (void);
GtkWidget     *folder_browser_new      (void);
gboolean       folder_browser_set_uri  (FolderBrowser *folder_browser,
                    const char *uri);
void           folder_browser_set_message_preview (FolderBrowser *folder_browser,
                           gboolean show_message_preview);

#endif /* _FOLDER_BROWSER_H_ */