File: Evolution-Offline.idl

package info (click to toggle)
evolution 2.0.4-2sarge3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 86,600 kB
  • ctags: 29,239
  • sloc: ansic: 282,229; sh: 11,353; xml: 7,480; makefile: 3,293; perl: 1,591
file content (53 lines) | stat: -rw-r--r-- 1,478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* -*- 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
	 * either invoke ::goOffline (actually complete the operation
	 * and go off-line) or ::goOnline (operation cancelled).
	 */
	void prepareForOffline (out ConnectionList active_connection_list);

	/* 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 ();
};

};
};