Files
evolution/shell/Evolution-Offline.idl
Ettore Perazzoli 8cdcac9e18 Rename NotPrepared to notPrepared and NotSyncing to notSyncing.
* Evolution-Offline.idl: Rename NotPrepared to notPrepared and
NotSyncing to notSyncing.

* evolution-storage.c (impl_Storage__get_folder_list): Renamed
from impl_Storage_get_folder_list().

* Evolution-Storage.idl: Don't typedef FolderList here.  Replace
`getFolderList' method with a readonly attribute.

* gui/e-itip-control.c (get_servers): use
GNOME_Evolution_Storage__get_folderList instead of
GNOME_Evolution_Storage_getFolderList since I have now changed
that to be an attribute instead of a method.

svn path=/trunk/; revision=16732
2002-05-09 15:44:03 +00:00

73 lines
2.1 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.h>
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 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;
/* 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 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 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'. */
void goOffline (in OfflineProgressListener listener)
raises (notPrepared);
/* Tell the component to go into on-line mode. */
void goOnline ();
};
};
};