aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.h
blob: b2778f0444a8d68491563e4d3968ec0aae8faa29 (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
#ifndef E_SHELL_H
#define E_SHELL_H

#include <bonobo/gnome-object.h>
#include "evolution.h"
#include "e-folder.h"
#include "e-shortcut.h"

#define E_SHELL_GOAD_ID         "GOADID:GNOME:Evolution:Shell:1.0"
#define E_SHELL_FACTORY_GOAD_ID "GOADID:GNOME:Evolution:ShellFactory:1.0"

#define E_SHELL_TYPE        (e_shell_get_type ())
#define E_SHELL(o)          (GTK_CHECK_CAST ((o), E_SHELL_TYPE, EShell))
#define E_SHELL_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), E_SHELL_TYPE, EShellClass))
#define E_IS_SHELL(o)       (GTK_CHECK_TYPE ((o), E_SHELL_TYPE))
#define E_IS_SHELL_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_SHELL_TYPE))

struct _EShell {
    GnomeObject base_object;

    /* A list of EShellViews */
    GSList *views;

    struct {
        EFolder *inbox;
        EFolder *outbox;
        EFolder *drafts;
        EFolder *calendar;
        EFolder *tasks;
        EFolder *summary;
        EFolder *contacts;
    } default_folders;

    EShortcutBarModel *shortcut_bar;
};

typedef struct {
    GnomeObjectClass parent_class;
} EShellClass;

EShell     *e_shell_new             (void);
void        e_shell_register_view   (EShell *eshell, EShellView *eshell_view);
void        e_shell_unregister_view (EShell *eshell, EShellView *eshell_view);

/*
 * New
 */
void e_shell_new_appointment       (EShell *eshell);
void e_shell_new_meeting_request   (EShell *eshell);
void e_shell_new_task              (EShell *eshell);
void e_shell_new_task_request      (EShell *eshell);
void e_shell_new_contact           (EShell *eshell);
void e_shell_new_mail_message      (EShell *eshell);
void e_shell_new_distribution_list (EShell *eshell);
void e_shell_new_journal_entry     (EShell *eshell);
void e_shell_new_note              (EShell *eshell);

void e_shell_quit                  (EShell *eshell);

#endif /* EVOLUTION_SHELL_H */