aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-shell-component-client.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-05-03 09:10:46 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-05-03 09:10:46 +0800
commit483ebae5399d6aa7d63e471ea6000021a4be94fb (patch)
tree8de0a4611e800febfffa59c25d3b9d806d380757 /shell/evolution-shell-component-client.c
parent0ac06ee5b0cf27803e037b8bb5f3998898200bd1 (diff)
downloadgsoc2013-evolution-483ebae5399d6aa7d63e471ea6000021a4be94fb.tar
gsoc2013-evolution-483ebae5399d6aa7d63e471ea6000021a4be94fb.tar.gz
gsoc2013-evolution-483ebae5399d6aa7d63e471ea6000021a4be94fb.tar.bz2
gsoc2013-evolution-483ebae5399d6aa7d63e471ea6000021a4be94fb.tar.lz
gsoc2013-evolution-483ebae5399d6aa7d63e471ea6000021a4be94fb.tar.xz
gsoc2013-evolution-483ebae5399d6aa7d63e471ea6000021a4be94fb.tar.zst
gsoc2013-evolution-483ebae5399d6aa7d63e471ea6000021a4be94fb.zip
Add interfaces to the shell to handle off-line operation, as well as a
first (unfinished/untested) implementation for them. svn path=/trunk/; revision=9653
Diffstat (limited to 'shell/evolution-shell-component-client.c')
-rw-r--r--shell/evolution-shell-component-client.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/shell/evolution-shell-component-client.c b/shell/evolution-shell-component-client.c
index 759e4f6ac4..db92d0efaf 100644
--- a/shell/evolution-shell-component-client.c
+++ b/shell/evolution-shell-component-client.c
@@ -53,6 +53,7 @@ struct _EvolutionShellComponentClientPrivate {
GNOME_Evolution_ShellComponentDnd_SourceFolder dnd_source_folder_interface;
GNOME_Evolution_ShellComponentDnd_DestinationFolder dnd_destination_folder_interface;
+ GNOME_Evolution_Offline offline_interface;
};
@@ -295,6 +296,11 @@ impl_destroy (GtkObject *object)
CORBA_Object_release (priv->dnd_destination_folder_interface, &ev);
}
+ if (priv->offline_interface != CORBA_OBJECT_NIL) {
+ Bonobo_Unknown_unref (priv->offline_interface, &ev);
+ CORBA_Object_release (priv->offline_interface, &ev);
+ }
+
CORBA_exception_free (&ev);
g_free (priv);
@@ -329,6 +335,7 @@ init (EvolutionShellComponentClient *shell_component_client)
priv->dnd_source_folder_interface = CORBA_OBJECT_NIL;
priv->dnd_destination_folder_interface = CORBA_OBJECT_NIL;
+ priv->offline_interface = CORBA_OBJECT_NIL;
shell_component_client->priv = priv;
}
@@ -453,6 +460,36 @@ evolution_shell_component_client_get_dnd_destination_interface (EvolutionShellCo
}
+/* Querying the offline interface. */
+
+GNOME_Evolution_Offline
+evolution_shell_component_client_get_offline_interface (EvolutionShellComponentClient *shell_component_client)
+{
+ EvolutionShellComponentClientPrivate *priv;
+ GNOME_Evolution_Offline interface;
+ CORBA_Environment ev;
+
+ priv = shell_component_client->priv;
+
+ if (priv->offline_interface != CORBA_OBJECT_NIL)
+ return priv->offline_interface;
+
+ CORBA_exception_init (&ev);
+
+ interface = Bonobo_Unknown_queryInterface (bonobo_object_corba_objref (BONOBO_OBJECT (shell_component_client)),
+ "IDL:GNOME/Evolution/ShellComponent/Offline:1.0",
+ &ev);
+
+ if (ev._major != CORBA_NO_EXCEPTION)
+ interface = CORBA_OBJECT_NIL;
+
+ CORBA_exception_free (&ev);
+
+ priv->offline_interface = interface;
+ return interface;
+}
+
+
/* Synchronous operations. */
EvolutionShellComponentResult