* e-shell.c (struct _EShellPrivate): New member offline_handler. (offline_procedure_started_cb): New. (offline_procedure_finished_cb): New. (e_shell_go_offline): Implement (putting back the code that we had #if 0'ed out). (e_shell_go_online): Likewise. * e-shell-offline-handler.c, e-shell-offline-handler.h: Put back in, massage for the changes in the Offline interface. * e-shell-offline-sync.c, e-shell-offline-sync.h: Remove from CVS. * Evolution-Offline.idl (SyncFolderProgressListener): Remove. (Offline::SyncFolder): Remove. svn path=/trunk/; revision=23505
62 lines
1.7 KiB
Plaintext
62 lines
1.7 KiB
Plaintext
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
/*
|
|
* Interface to allow components to switch between on-line and off-line mode.
|
|
*
|
|
* Authors:
|
|
* Ettore Perazzoli <ettore@ximian.com>
|
|
*
|
|
* Copyright (C) 2001 Ximian, Inc.
|
|
*/
|
|
|
|
#include <Bonobo.idl>
|
|
|
|
module GNOME {
|
|
module Evolution {
|
|
|
|
struct Connection {
|
|
string hostName;
|
|
string type;
|
|
};
|
|
typedef sequence<Connection> ConnectionList;
|
|
|
|
interface OfflineProgressListener {
|
|
/* Update the shell about the progress of going off-line. The
|
|
operation is considered completed when the ConnectionList is empty. */
|
|
void updateProgress (in ConnectionList current_active_connections);
|
|
};
|
|
|
|
interface Offline : Bonobo::Unknown {
|
|
exception notPrepared {};
|
|
exception notSyncing {};
|
|
|
|
/* Whether the component is currently off-line. */
|
|
attribute boolean isOffline;
|
|
|
|
/* Ask the component to prepare to go into off-line mode. The
|
|
component must return a list of the current active connections.
|
|
After this call, the shell is expected to: (in order)
|
|
|
|
1. Invoke ::syncFolder for each of the component's folders that
|
|
need to be synchronized to disk for offline usage.
|
|
|
|
2. Either invoke ::goOffline (actually complete the operation
|
|
and go off-line) or ::goOnline (operation cancelled).
|
|
*/
|
|
void prepareForOffline (out ConnectionList active_connection_list);
|
|
|
|
/* Request the component to stop syncing the specified folder. This
|
|
has to happen after ::syncFolder. */
|
|
oneway void cancelSyncFolder (in Folder folder);
|
|
|
|
/* Ask the component to go into off-line mode. This always comes after
|
|
a ::prepareForOffline. */
|
|
void goOffline (in OfflineProgressListener listener)
|
|
raises (notPrepared);
|
|
|
|
/* Tell the component to go into on-line mode. */
|
|
void goOnline ();
|
|
};
|
|
|
|
};
|
|
};
|