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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* folder.idl
* Copyright (C) 2000 Helix Code, Inc.
* Author: Christopher James Lahey <clahey@helixcode.com>
*
* Based on original from Matt Loper.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
module Evolution {
interface FolderListener {
enum CallStatus {
Success,
RepositoryOffline,
PermissionDenied,
WrongFolderType,
WrongFolderDomain,
FolderNotFound
};
void folder_listener_ready (in CallStatus status,
in Folder folder);
void respond_add_subfolder (in CallStatus status,
in Folder folder);
void respond_move_subfolder (in CallStatus status);
void respond_delete_subfolder (in CallStatus status);
/* This signals that some piece of data has changed.
The name or icon has changed. */
void signal_name_changed(in Folder folder);
void signal_icon_changed(in Folder folder);
/* This says a child/children has been added. */
void signal_subfolder_added(in FolderList folders);
/* This says a child has been removed. */
void signal_subfolder_removed(in Folder folder);
};
interface Folder {
void set_listener (in FolderListener listener);
/*
* get a bonobo control for this view; a client won't
* use the goad_id gathered in the above function, b/c
* only the wombat knows how to do that, by surfing
* the physical evolution directory structure
*/
Bonobo::control get_control();
/*
* You must know what interface to query_interface()
* for once you get a data source!
*/
Bonobo::Unknown get_data_source();
char *get_name();
char *get_icon();
void add_subfolder (in string data_source_id,
in string control_id,
in string viewable_name);
void move_subfolder (in Folder subfolder);
void delete_subfolder (in Folder subfolder);
};
interface Wombat {
void get_root_folder(FolderListener listener);
};
};
|