Add new ESource classes.
[platform/upstream/evolution-data-server.git] / libedataserver / e-source-enums.h
1 /*
2  * e-source-enums.h
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) version 3.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with the program; if not, see <http://www.gnu.org/licenses/>
16  *
17  */
18
19 #ifndef E_SOURCE_ENUMS_H
20 #define E_SOURCE_ENUMS_H
21
22 /**
23  * EMdnResponsePolicy:
24  * @E_MDN_RESPONSE_POLICY_NEVER:
25  *   Never respond to an MDN request.
26  * @E_MDN_RESPONSE_POLICY_ALWAYS:
27  *   Always respond to an MDN request.
28  * @E_MDN_RESPONSE_POLICY_ASK:
29  *   Ask the user before responding to an MDN request.
30  *
31  * Policy for responding to Message Disposition Notification requests
32  * (i.e. a Disposition-Notification-To header) when receiving messages.
33  * See RFC 2298 for more information about MDN requests.
34  *
35  * Since: 3.6
36  **/
37 typedef enum {
38         E_MDN_RESPONSE_POLICY_NEVER,
39         E_MDN_RESPONSE_POLICY_ALWAYS,
40         E_MDN_RESPONSE_POLICY_ASK
41 } EMdnResponsePolicy;
42
43 /**
44  * ESourceAuthenticationResult:
45  * @E_SOURCE_AUTHENTICATION_ERROR:
46  *   An error occurred while authenticating.
47  * @E_SOURCE_AUTHENTICATION_ACCEPTED:
48  *   Server requesting authentication accepted password.
49  * @E_SOURCE_AUTHENTICATION_REJECTED:
50  *   Server requesting authentication rejected password.
51  *
52  * Status codes used by the #ESourceAuthenticator interface.
53  *
54  * Since: 3.6
55  **/
56 typedef enum {
57         E_SOURCE_AUTHENTICATION_ERROR,
58         E_SOURCE_AUTHENTICATION_ACCEPTED,
59         E_SOURCE_AUTHENTICATION_REJECTED
60 } ESourceAuthenticationResult;
61
62 #endif /* E_SOURCE_ENUMS_H */