blob: f6c15348ad693b2156ba5260ceda6b59b21a12a4 (
plain) (
blame)
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
88
89
90
91
92
93
94
95
|
/* Evolution Mail Interface
*
* Copyright (C) 2005 Novell, Inc.
*
* Authors: Michael Zucchi <notzed@novell.com>
*/
#ifndef _EVOLUTION_DATASERVER_MAIL_IDL_
#define _EVOLUTION_DATASERVER_MAIL_IDL_
#include <Bonobo.idl>
module GNOME {
module Evolution {
module Mail {
exception NOT_SUPPORTED {
string why;
};
interface Folder;
typedef sequence<Folder> Folders;
interface Store;
typedef sequence<Store> Stores;
interface Session;
/* ********************************************************************** */
// NB: tiny subset of omg properties service
typedef string PropertyName;
typedef sequence <PropertyName> PropertyNames;
struct Property {
PropertyName name;
any value;
};
typedef sequence <Property> Properties;
/* ********************************************************************** */
// ??
interface Listener {
void storeAdded(in Store store);
void storeRemoved(in Store store);
void folderAdded(in Store store, in Folder folder);
void folderRemoved(in Store store, in Folder folder);
};
/* ********************************************************************** */
interface Session : Bonobo::Unknown {
boolean getProperties(in PropertyNames names, out Properties props);
Stores getStores(in string pattern);
void addListener(in Listener listener);
void removeListener(in Listener listener);
};
interface Store : Bonobo::Unknown {
boolean getProperties(in PropertyNames names, out Properties props);
Folders getFolders(in string pattern)
raises (NOT_SUPPORTED);
void sendMessage(in Bonobo::Stream msg, in string from, in string recipients)
raises (NOT_SUPPORTED);
};
struct Message {
string uid;
string subject;
string to;
string from;
};
typedef sequence <Message> Messages;
interface MessageIterator : Bonobo::Unknown {
Messages next(in long limit);
};
interface Folder : Bonobo::Unknown {
boolean getProperties(in PropertyNames names, out Properties props);
MessageIterator getMessages(in string pattern);
Bonobo::Stream getMessage(in string uid);
// void appendMessage(in MessageInfo info, in Bonobo::Stream msg);
};
};
};
};
#endif
|