source: trunk/third/evolution/shell/Evolution-Offline.idl @ 16770

Revision 16770, 1.4 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16769, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2/*
3 * Interface to allow components to switch between on-line and off-line mode.
4 *
5 * Authors:
6 *   Ettore Perazzoli <ettore@ximian.com>
7 *
8 * Copyright (C) 2001 Ximian, Inc.
9 */
10
11#include <Bonobo.h>
12
13module GNOME {
14module Evolution {
15
16struct Connection {
17        string hostName;
18        string type;
19};
20typedef sequence<Connection> ConnectionList;
21
22interface OfflineProgressListener {
23        /* Update the shell about the progress of going off-line.  The
24           operation is considered completed when the ConnectionList is empty. */
25        void updateProgress (in ConnectionList current_active_connections);
26};
27
28interface Offline : Bonobo::Unknown {
29        /* Whether the component is currently off-line.  */
30        attribute boolean isOffline;
31
32        /* Ask the component to prepare to go into off-line mode.  The
33           component must return a list of the current active connections.
34           After this call, the shell is expected to either invoke
35           `::goOffline()' (actually complete the operation and go off-line) or
36           `::goOnline()' (operation cancelled).   */
37        void prepareForOffline (out ConnectionList active_connection_list);
38
39        /* Ask the component to go into off-line mode.  This always comes after
40           a `::prepareForOffline' only. */
41        void goOffline (in OfflineProgressListener listener);
42
43        /* Tell the component to go into on-line mode.  */
44        void goOnline ();
45};
46
47};
48};
Note: See TracBrowser for help on using the repository browser.