1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* evolution-shell-component-client.h |
---|
3 | * |
---|
4 | * Copyright (C) 2000 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 |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef EVOLUTION_SHELL_COMPONENT_CLIENT_H |
---|
24 | #define EVOLUTION_SHELL_COMPONENT_CLIENT_H |
---|
25 | |
---|
26 | #include <bonobo/bonobo-object-client.h> |
---|
27 | #include <bonobo/bonobo-ui-container.h> |
---|
28 | #include <bonobo/bonobo-ui-component.h> |
---|
29 | |
---|
30 | #include "evolution-shell-component.h" |
---|
31 | |
---|
32 | #ifdef cplusplus |
---|
33 | extern "C" { |
---|
34 | #pragma } |
---|
35 | #endif /* cplusplus */ |
---|
36 | |
---|
37 | #define EVOLUTION_TYPE_SHELL_COMPONENT_CLIENT (evolution_shell_component_client_get_type ()) |
---|
38 | #define EVOLUTION_SHELL_COMPONENT_CLIENT(obj) (GTK_CHECK_CAST ((obj), EVOLUTION_TYPE_SHELL_COMPONENT_CLIENT, EvolutionShellComponentClient)) |
---|
39 | #define EVOLUTION_SHELL_COMPONENT_CLIENT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), EVOLUTION_TYPE_SHELL_COMPONENT_CLIENT, EvolutionShellComponentClientClass)) |
---|
40 | #define EVOLUTION_IS_SHELL_COMPONENT_CLIENT(obj) (GTK_CHECK_TYPE ((obj), EVOLUTION_TYPE_SHELL_COMPONENT_CLIENT)) |
---|
41 | #define EVOLUTION_IS_SHELL_COMPONENT_CLIENT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), EVOLUTION_TYPE_SHELL_COMPONENT_CLIENT)) |
---|
42 | |
---|
43 | |
---|
44 | typedef struct _EvolutionShellComponentClient EvolutionShellComponentClient; |
---|
45 | typedef struct _EvolutionShellComponentClientPrivate EvolutionShellComponentClientPrivate; |
---|
46 | typedef struct _EvolutionShellComponentClientClass EvolutionShellComponentClientClass; |
---|
47 | |
---|
48 | struct _EvolutionShellComponentClient { |
---|
49 | BonoboObjectClient parent; |
---|
50 | |
---|
51 | EvolutionShellComponentClientPrivate *priv; |
---|
52 | }; |
---|
53 | |
---|
54 | struct _EvolutionShellComponentClientClass { |
---|
55 | BonoboObjectClientClass parent_class; |
---|
56 | }; |
---|
57 | |
---|
58 | typedef void (* EvolutionShellComponentClientCallback) (EvolutionShellComponentClient *shell_component_client, |
---|
59 | EvolutionShellComponentResult result, |
---|
60 | void *data); |
---|
61 | |
---|
62 | |
---|
63 | /* Construction. */ |
---|
64 | GtkType evolution_shell_component_client_get_type (void); |
---|
65 | void evolution_shell_component_client_construct (EvolutionShellComponentClient *shell_component_client, |
---|
66 | const char *id, |
---|
67 | CORBA_Object corba_object); |
---|
68 | EvolutionShellComponentClient *evolution_shell_component_client_new (const char *id, |
---|
69 | CORBA_Environment *optional_ev); |
---|
70 | |
---|
71 | /* Properties. */ |
---|
72 | |
---|
73 | const char *evolution_shell_component_client_get_id (EvolutionShellComponentClient *shell_component_client); |
---|
74 | |
---|
75 | /* Querying DnD interfaces. */ |
---|
76 | |
---|
77 | GNOME_Evolution_ShellComponentDnd_SourceFolder |
---|
78 | evolution_shell_component_client_get_dnd_source_interface (EvolutionShellComponentClient *shell_component_client); |
---|
79 | GNOME_Evolution_ShellComponentDnd_DestinationFolder |
---|
80 | evolution_shell_component_client_get_dnd_destination_interface (EvolutionShellComponentClient *shell_component_client); |
---|
81 | |
---|
82 | /* Querying the offline interface. */ |
---|
83 | GNOME_Evolution_Offline |
---|
84 | evolution_shell_component_client_get_offline_interface (EvolutionShellComponentClient *shell_component_client); |
---|
85 | |
---|
86 | /* Synchronous operations. */ |
---|
87 | |
---|
88 | EvolutionShellComponentResult evolution_shell_component_client_set_owner (EvolutionShellComponentClient *shell_component_client, |
---|
89 | GNOME_Evolution_Shell shell, |
---|
90 | const char *evolution_homedir); |
---|
91 | EvolutionShellComponentResult evolution_shell_component_client_unset_owner (EvolutionShellComponentClient *shell_component_client, |
---|
92 | GNOME_Evolution_Shell shell); |
---|
93 | EvolutionShellComponentResult evolution_shell_component_client_create_view (EvolutionShellComponentClient *shell_component_client, |
---|
94 | BonoboUIComponent *uih, |
---|
95 | const char *physical_uri, |
---|
96 | const char *type_string, |
---|
97 | const char *view_info, |
---|
98 | BonoboControl **control_return); |
---|
99 | |
---|
100 | EvolutionShellComponentResult evolution_shell_component_client_handle_external_uri (EvolutionShellComponentClient *shell_component_client, |
---|
101 | const char *uri); |
---|
102 | |
---|
103 | /* Asyncronous operations. */ |
---|
104 | void evolution_shell_component_client_async_create_folder (EvolutionShellComponentClient *shell_component_client, |
---|
105 | const char *physical_uri, |
---|
106 | const char *type, |
---|
107 | EvolutionShellComponentClientCallback callback, |
---|
108 | void *data); |
---|
109 | void evolution_shell_component_client_async_remove_folder (EvolutionShellComponentClient *shell_component_client, |
---|
110 | const char *physical_uri, |
---|
111 | const char *type, |
---|
112 | EvolutionShellComponentClientCallback callback, |
---|
113 | void *data); |
---|
114 | void evolution_shell_component_client_async_xfer_folder (EvolutionShellComponentClient *shell_component_client, |
---|
115 | const char *source_physical_uri, |
---|
116 | const char *destination_physical_uri, |
---|
117 | const char *type, |
---|
118 | gboolean remove_source, |
---|
119 | EvolutionShellComponentClientCallback callback, |
---|
120 | void *data); |
---|
121 | |
---|
122 | void evolution_shell_component_client_populate_folder_context_menu (EvolutionShellComponentClient *shell_component_client, |
---|
123 | BonoboUIContainer *container, |
---|
124 | const char *physical_uri, |
---|
125 | const char *type); |
---|
126 | void evolution_shell_component_client_unpopulate_folder_context_menu (EvolutionShellComponentClient *shell_component_client, |
---|
127 | BonoboUIContainer *container, |
---|
128 | const char *physical_uri, |
---|
129 | const char *type); |
---|
130 | |
---|
131 | void evolution_shell_component_client_request_quit (EvolutionShellComponentClient *shell_component_client, |
---|
132 | EvolutionShellComponentClientCallback callback, |
---|
133 | void *data); |
---|
134 | |
---|
135 | #ifdef cplusplus |
---|
136 | } |
---|
137 | #endif /* cplusplus */ |
---|
138 | |
---|
139 | #endif /* EVOLUTION_SHELL_COMPONENT_CLIENT_H */ |
---|