aboutsummaryrefslogtreecommitdiffstats
path: root/shell/Evolution-Offline.idl
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-05-08 04:49:34 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-05-08 04:49:34 +0800
commitbee907db63256e377ab58b38d312603bf1a9ff4a (patch)
tree7b465090217723f3a9ab6c6398922f91a4aec3ea /shell/Evolution-Offline.idl
parentb1b0801c8fb4bcceb7f89b3162ab2ec13a43f44e (diff)
downloadgsoc2013-evolution-bee907db63256e377ab58b38d312603bf1a9ff4a.tar
gsoc2013-evolution-bee907db63256e377ab58b38d312603bf1a9ff4a.tar.gz
gsoc2013-evolution-bee907db63256e377ab58b38d312603bf1a9ff4a.tar.bz2
gsoc2013-evolution-bee907db63256e377ab58b38d312603bf1a9ff4a.tar.lz
gsoc2013-evolution-bee907db63256e377ab58b38d312603bf1a9ff4a.tar.xz
gsoc2013-evolution-bee907db63256e377ab58b38d312603bf1a9ff4a.tar.zst
gsoc2013-evolution-bee907db63256e377ab58b38d312603bf1a9ff4a.zip
New interface SyncFolderProgressListener. (Offline::cancelSyncFolder):
* Evolution-Offline.idl: New interface SyncFolderProgressListener. (Offline::cancelSyncFolder): New. (Offline::syncFolder): New. svn path=/trunk/; revision=16713
Diffstat (limited to 'shell/Evolution-Offline.idl')
-rw-r--r--shell/Evolution-Offline.idl28
1 files changed, 26 insertions, 2 deletions
diff --git a/shell/Evolution-Offline.idl b/shell/Evolution-Offline.idl
index 377132daa3..282b9fdf17 100644
--- a/shell/Evolution-Offline.idl
+++ b/shell/Evolution-Offline.idl
@@ -25,7 +25,18 @@ interface OfflineProgressListener {
void updateProgress (in ConnectionList current_active_connections);
};
+interface SyncFolderProgressListener {
+ /* Report that syncing is progressed @percent %. */
+ void updateProgress (in float percent);
+
+ /* Report an error. */
+ void reportFailure (in string message);
+};
+
interface Offline : Bonobo::Unknown {
+ exception NotPrepared {};
+ exception NotSyncing {};
+
/* Whether the component is currently off-line. */
attribute boolean isOffline;
@@ -36,9 +47,22 @@ interface Offline : Bonobo::Unknown {
`::goOnline()' (operation cancelled). */
void prepareForOffline (out ConnectionList active_connection_list);
+ /* Request the component to sync the specified folder. This has to
+ happen after ::prepareForOffline. */
+ void syncFolder (in Folder folder,
+ in SyncFolderProgressListener listener)
+ raises (notPrepared);
+
+ /* Request the component to stop syncing the specified folder. This
+ has to happen after ::syncFolder. */
+ void cancelSyncFolder (in string evolution_uri,
+ in string physical_uri)
+ raises (notSyncing);
+
/* Ask the component to go into off-line mode. This always comes after
- a `::prepareForOffline' only. */
- void goOffline (in OfflineProgressListener listener);
+ a `::prepareForOffline'. */
+ void goOffline (in OfflineProgressListener listener)
+ raises (notPrepared);
/* Tell the component to go into on-line mode. */
void goOnline ();