~ubuntu-branches/ubuntu/raring/evolution-indicator/raring-proposed

« back to all changes in this revision

Viewing changes to src/e-shell.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-06-22 15:32:35 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100622153235-xs7iddnqwmt2c6ym
Tags: 0.2.10-0ubuntu1
* New upstream release:
  - Work with evolution 2.30.2 (Francesco Marella)
* debian/patches/01_no_debug_spamming.patch:
  - refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *
3
 
 * This program is free software; you can redistribute it and/or
4
 
 * modify it under the terms of the GNU Lesser General Public
5
 
 * License as published by the Free Software Foundation; either
6
 
 * version 2 of the License, or (at your option) version 3.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
 
 * Lesser General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU Lesser General Public
14
 
 * License along with the program; if not, see <http://www.gnu.org/licenses/>  
15
 
 *
16
 
 *
17
 
 * Authors:
18
 
 *              Michel Zucchi <notzed@ximian.com>
19
 
 *              Neil Jagdish Patel <neil.patel@canonical.com> (copy-and-paste counts too!)
20
 
 *
21
 
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
22
 
 *
23
 
 */
24
 
 
25
 
/*
26
 
 *
27
 
 * THIS IS A MAJOR HACK -- DO NOT EMAIL ME ABOUT HOW MAJOR OF A HACK IT REALLY
28
 
 * IS. I'M ALREADY LOSING SLEEP OVER IT.
29
 
 *
30
 
 * IF YOU HAVE ISSUES WITH THIS CODE, FEEL FREE TO ADD _PROPER_ PLUGIN SUPPORT
31
 
 * TO EVOLUTION, OR AT LEAST A DBUS INTERFACE.
32
 
 *
33
 
 * -- 
34
 
 * this message was brought to you by Holiday Inn coffee and a cold
35
 
 * Berlin morning 
36
 
 *
37
 
 */
38
 
 
39
 
#ifndef _MY_HACKY_E_SHELL_H_
40
 
#define _MY_HACKY_E_SHELL_H_
41
 
 
42
 
#include <e-util/e-config.h>
43
 
#include <mail/em-utils.h>
44
 
#include <mail/em-event.h>
45
 
#include <mail/em-folder-tree-model.h>
46
 
#include <shell/evolution-config-control.h>
47
 
#include <shell/e-component-view.h>
48
 
#include <shell/es-event.h>
49
 
 
50
 
typedef struct _EShell EShell;
51
 
typedef struct _EShellPrivate EShellPrivate;
52
 
typedef enum _EShellLineStatus EShellLineStatus;
53
 
 
54
 
enum _EShellLineStatus {
55
 
        E_SHELL_LINE_STATUS_ONLINE,
56
 
        E_SHELL_LINE_STATUS_GOING_OFFLINE, /* NB: really means changing state in either direction */
57
 
        E_SHELL_LINE_STATUS_OFFLINE,
58
 
        E_SHELL_LINE_STATUS_FORCED_OFFLINE
59
 
};
60
 
 
61
 
struct _EShellPrivate {
62
 
        /* IID for registering the object on OAF.  */
63
 
        char *iid;
64
 
 
65
 
        GList *windows;
66
 
 
67
 
        /* EUriSchemaRegistry *uri_schema_registry; FIXME */
68
 
        void *component_registry;
69
 
 
70
 
        /* Names for the types of the folders that have maybe crashed.  */
71
 
        /* FIXME TODO */
72
 
        GList *crash_type_names; /* char * */
73
 
 
74
 
        /* Line status and controllers  */
75
 
        EShellLineStatus line_status;
76
 
        int line_status_pending;
77
 
        EShellLineStatus line_status_working;
78
 
        void *line_status_listener;
79
 
 
80
 
        /* Settings Dialog */
81
 
        union {
82
 
                GtkWidget *widget;
83
 
                gpointer pointer;
84
 
        } settings_dialog;
85
 
 
86
 
        /* If we're quitting and things are still busy, a timeout handler */
87
 
        guint quit_timeout;
88
 
 
89
 
        /* Whether the shell is succesfully initialized.  This is needed during
90
 
           the start-up sequence, to avoid CORBA calls to do make wrong things
91
 
           to happen while the shell is initializing.  */
92
 
        unsigned int is_initialized : 1;
93
 
 
94
 
        /* Wether the shell is working in "interactive" mode or not.
95
 
           (Currently, it's interactive IIF there is at least one active
96
 
           view.)  */
97
 
        unsigned int is_interactive : 1;
98
 
 
99
 
        /* Whether quit has been requested, and the shell is now waiting for
100
 
           permissions from all the components to quit.  */
101
 
        unsigned int preparing_to_quit : 1;
102
 
 
103
 
        /* Whether we are recovering from a crash in the previous session. */
104
 
        unsigned int crash_recovery : 1;
105
 
};
106
 
 
107
 
struct _EShell {
108
 
        BonoboObject parent;
109
 
 
110
 
        EShellPrivate *priv;
111
 
};
112
 
 
113
 
#endif