1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* e-shell-offline-handler.h |
---|
3 | * |
---|
4 | * Copyright (C) 2001 Ximian, Inc. |
---|
5 | * |
---|
6 | * This program is free software; you can redistribute it and/or |
---|
7 | * modify it under the terms of version 2 of the GNU General Public |
---|
8 | * License as published by the Free Software Foundation. |
---|
9 | * |
---|
10 | * This program is distributed in the hope that it will be useful, |
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
13 | * General Public License for more details. |
---|
14 | * |
---|
15 | * You should have received a copy of the GNU General Public |
---|
16 | * License along with this program; if not, write to the |
---|
17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
18 | * Boston, MA 02111-1307, USA. |
---|
19 | * |
---|
20 | * Author: Ettore Perazzoli <ettore@ximian.com> |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef _E_SHELL_OFFLINE_HANDLER_H_ |
---|
24 | #define _E_SHELL_OFFLINE_HANDLER_H_ |
---|
25 | |
---|
26 | #include <gtk/gtkobject.h> |
---|
27 | |
---|
28 | #include "e-component-registry.h" |
---|
29 | #include "e-shell-view.h" |
---|
30 | |
---|
31 | #ifdef __cplusplus |
---|
32 | extern "C" { |
---|
33 | #pragma } |
---|
34 | #endif /* __cplusplus */ |
---|
35 | |
---|
36 | #define E_TYPE_SHELL_OFFLINE_HANDLER (e_shell_offline_handler_get_type ()) |
---|
37 | #define E_SHELL_OFFLINE_HANDLER(obj) (GTK_CHECK_CAST ((obj), E_TYPE_SHELL_OFFLINE_HANDLER, EShellOfflineHandler)) |
---|
38 | #define E_SHELL_OFFLINE_HANDLER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_SHELL_OFFLINE_HANDLER, EShellOfflineHandlerClass)) |
---|
39 | #define E_IS_SHELL_OFFLINE_HANDLER(obj) (GTK_CHECK_TYPE ((obj), E_TYPE_SHELL_OFFLINE_HANDLER)) |
---|
40 | #define E_IS_SHELL_OFFLINE_HANDLER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), E_TYPE_SHELL_OFFLINE_HANDLER)) |
---|
41 | |
---|
42 | |
---|
43 | typedef struct _EShellOfflineHandler EShellOfflineHandler; |
---|
44 | typedef struct _EShellOfflineHandlerPrivate EShellOfflineHandlerPrivate; |
---|
45 | typedef struct _EShellOfflineHandlerClass EShellOfflineHandlerClass; |
---|
46 | |
---|
47 | struct _EShellOfflineHandler { |
---|
48 | GtkObject parent; |
---|
49 | |
---|
50 | EShellOfflineHandlerPrivate *priv; |
---|
51 | }; |
---|
52 | |
---|
53 | struct _EShellOfflineHandlerClass { |
---|
54 | GtkObjectClass parent_class; |
---|
55 | |
---|
56 | /* This signal is emitted when the offline procedure starts, i.e. the |
---|
57 | EShellOfflineHanlder starts contacting the components one-by-one |
---|
58 | telling them to be prepared to go off-line. */ |
---|
59 | void (* offline_procedure_started) (EShellOfflineHandler *offline_handler); |
---|
60 | |
---|
61 | /* This is emitted when the procedure is finished, and all the |
---|
62 | components are all either off-line (@now_offline is %TRUE) or |
---|
63 | on-line (@now_offline is %FALSE). */ |
---|
64 | void (* offline_procedure_finished) (EShellOfflineHandler *offline_hanlder, |
---|
65 | gboolean now_offline); |
---|
66 | }; |
---|
67 | |
---|
68 | |
---|
69 | GtkType e_shell_offline_handler_get_type (void); |
---|
70 | void e_shell_offline_handler_construct (EShellOfflineHandler *offline_handler, |
---|
71 | EShell *shell); |
---|
72 | EShellOfflineHandler *e_shell_offline_handler_new (EShell *shell); |
---|
73 | |
---|
74 | void e_shell_offline_handler_put_components_offline (EShellOfflineHandler *offline_handler, |
---|
75 | EShellView *parent_shell_view); |
---|
76 | |
---|
77 | #ifdef __cplusplus |
---|
78 | } |
---|
79 | #endif /* __cplusplus */ |
---|
80 | |
---|
81 | #endif /* _E_SHELL_OFFLINE_HANDLER_H_ */ |
---|