aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-backend.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-07-11 06:36:49 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-07-11 06:47:29 +0800
commit10eab2350036e1c36377c93d31472125b3e7c8c7 (patch)
tree5e33457567b4fddf2f7cd6b795d0ca6e13624099 /shell/e-shell-backend.c
parent6e7f42e0a60659411f2e10dbf8e84c705f0498a4 (diff)
downloadgsoc2013-evolution-10eab2350036e1c36377c93d31472125b3e7c8c7.tar.gz
gsoc2013-evolution-10eab2350036e1c36377c93d31472125b3e7c8c7.tar.zst
gsoc2013-evolution-10eab2350036e1c36377c93d31472125b3e7c8c7.zip
Implement the shutdown protocol and stub in session management.
The shutdown protocol is modelled after online/offline preparation. Session management code is copied from libegg. Not yet used.
Diffstat (limited to 'shell/e-shell-backend.c')
-rw-r--r--shell/e-shell-backend.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/shell/e-shell-backend.c b/shell/e-shell-backend.c
index 9ee2edb4dc..c996d8ab01 100644
--- a/shell/e-shell-backend.c
+++ b/shell/e-shell-backend.c
@@ -370,67 +370,6 @@ e_shell_backend_start (EShellBackend *shell_backend)
}
/**
- * e_shell_backend_is_busy:
- * @shell_backend: an #EShellBackend
- *
- * Returns %TRUE if @shell_backend is busy and cannot be shutdown at
- * present. Each backend must define what "busy" means to them and
- * determine an appropriate response.
- *
- * XXX This function is likely to change or disappear. I'm toying with
- * the idea of just having it check whether there are any unfinished
- * #EActivity<!-- -->'s left, so we have a consistent and easily
- * testable definition of what "busy" means.
- *
- * Returns: %TRUE if the backend is busy
- **/
-gboolean
-e_shell_backend_is_busy (EShellBackend *shell_backend)
-{
- EShellBackendClass *class;
-
- g_return_val_if_fail (E_IS_SHELL_BACKEND (shell_backend), FALSE);
-
- class = E_SHELL_BACKEND_GET_CLASS (shell_backend);
-
- if (class->is_busy == NULL)
- return FALSE;
-
- return class->is_busy (shell_backend);
-}
-
-/**
- * e_shell_backend_shutdown:
- * @shell_backend: an #EShellBackend
- *
- * Alerts @shell_backend to begin shutdown procedures. If the backend is
- * busy and cannot immediately shut down, the function returns %FALSE.
- * A %TRUE response implies @shell_backend has successfully shut down.
- *
- * XXX This function is likely to change or disappear. I'm toying with
- * the idea of just having it check whether there are any unfinished
- * #EActivity<!-- -->'s left, so we have a consistent and easily
- * testable definition of what "busy" means.
- *
- * Returns: %TRUE if the backend has shut down, %FALSE if the backend is
- * busy and cannot immediately shut down
- */
-gboolean
-e_shell_backend_shutdown (EShellBackend *shell_backend)
-{
- EShellBackendClass *class;
-
- g_return_val_if_fail (E_IS_SHELL_BACKEND (shell_backend), TRUE);
-
- class = E_SHELL_BACKEND_GET_CLASS (shell_backend);
-
- if (class->shutdown == NULL)
- return TRUE;
-
- return class->shutdown (shell_backend);
-}
-
-/**
* e_shell_migrate:
* @shell_backend: an #EShellBackend
* @major: major part of version to migrate from