~ubuntu-branches/ubuntu/wily/evolution-data-server/wily

« back to all changes in this revision

Viewing changes to libedataserver/e-source-enums.h

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2015-07-20 13:34:59 UTC
  • mfrom: (1.1.126) (1.2.48 sid)
  • Revision ID: package-import@ubuntu.com-20150720133459-g6y46hnu5ewtoz08
Tags: 3.16.4-0ubuntu2
debian/patches/0001-Bug-752373-Monthly-events-do-not-recur-correctly.patch:
Cherry-pick patch from upstream to fix events not recurring correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * e-source-enums.h
3
3
 *
4
 
 * This library is free software you can redistribute it and/or modify it
 
4
 * This library is free software: you can redistribute it and/or modify it
5
5
 * under the terms of the GNU Lesser General Public License as published by
6
6
 * the Free Software Foundation.
7
7
 *
8
8
 * This library is distributed in the hope that it will be useful, but
9
9
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
 
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 
10
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
11
11
 * for more details.
12
12
 *
13
13
 * You should have received a copy of the GNU Lesser General Public License
14
 
 * along with this library; if not, see <http://www.gnu.org/licenses/>.
 
14
 * along with this library. If not, see <http://www.gnu.org/licenses/>.
15
15
 *
16
16
 */
17
17
 
69
69
 * ESourceAuthenticationResult:
70
70
 * @E_SOURCE_AUTHENTICATION_ERROR:
71
71
 *   An error occurred while authenticating.
 
72
 * @E_SOURCE_AUTHENTICATION_ERROR_SSL_FAILED:
 
73
 *   An SSL certificate check failed. Since: 3.16.
72
74
 * @E_SOURCE_AUTHENTICATION_ACCEPTED:
73
75
 *   Server requesting authentication accepted password.
74
76
 * @E_SOURCE_AUTHENTICATION_REJECTED:
75
77
 *   Server requesting authentication rejected password.
 
78
 * @E_SOURCE_AUTHENTICATION_REQUIRED:
 
79
 *   Server requesting authentication, but none was given.
76
80
 *
77
 
 * Status codes used by the #ESourceAuthenticator interface.
 
81
 * Status codes used by the #EBackend authentication wrapper.
78
82
 *
79
83
 * Since: 3.6
80
84
 **/
81
85
typedef enum {
82
86
        E_SOURCE_AUTHENTICATION_ERROR,
 
87
        E_SOURCE_AUTHENTICATION_ERROR_SSL_FAILED,
83
88
        E_SOURCE_AUTHENTICATION_ACCEPTED,
84
 
        E_SOURCE_AUTHENTICATION_REJECTED
 
89
        E_SOURCE_AUTHENTICATION_REJECTED,
 
90
        E_SOURCE_AUTHENTICATION_REQUIRED
85
91
} ESourceAuthenticationResult;
86
92
 
87
93
/**
99
105
        E_TRUST_PROMPT_RESPONSE_REJECT_TEMPORARILY = 3
100
106
} ETrustPromptResponse;
101
107
 
 
108
/**
 
109
 * ESourceConnectionStatus:
 
110
 * @E_SOURCE_CONNECTION_STATUS_DISCONNECTED:
 
111
 *   The source is currently disconnected from its (possibly remote) data store.
 
112
 * @E_SOURCE_CONNECTION_STATUS_AWAITING_CREDENTIALS:
 
113
 *   The source asked for credentials with a 'credentials-required' signal and
 
114
 *   is currently awaiting for them.
 
115
 * @E_SOURCE_CONNECTION_STATUS_SSL_FAILED:
 
116
 *   A user rejected SSL certificate trust for the connection.
 
117
 * @E_SOURCE_CONNECTION_STATUS_CONNECTING:
 
118
 *   The source is currently connecting to its (possibly remote) data store.
 
119
 * @E_SOURCE_CONNECTION_STATUS_CONNECTED:
 
120
 *   The source is currently connected to its (possibly remote) data store.
 
121
 *
 
122
 * Connection status codes used by the #ESource to indicate its connection state.
 
123
 * This is used in combination with authentication of the ESource. For example,
 
124
 * if there are multiple clients asking for a password and a user enters the password
 
125
 * in one of them, then the status will change into 'connecting', which is a signal
 
126
 * do close the password prompt in the other client, because the credentials had
 
127
 * been already provided.
 
128
 *
 
129
 * Since: 3.16
 
130
 **/
 
131
typedef enum {
 
132
        E_SOURCE_CONNECTION_STATUS_DISCONNECTED,
 
133
        E_SOURCE_CONNECTION_STATUS_AWAITING_CREDENTIALS,
 
134
        E_SOURCE_CONNECTION_STATUS_SSL_FAILED,
 
135
        E_SOURCE_CONNECTION_STATUS_CONNECTING,
 
136
        E_SOURCE_CONNECTION_STATUS_CONNECTED
 
137
} ESourceConnectionStatus;
 
138
 
 
139
/**
 
140
 * ESourceCredentialsReason:
 
141
 * @E_SOURCE_CREDENTIALS_REASON_UNKNOWN:
 
142
 *   A return value when there was no 'credentials-required' signal emitted yet,
 
143
 *   or a pair 'authenticate' signal had been received. This value should not
 
144
 *   be used in the call of 'credentials-required'.
 
145
 * @E_SOURCE_CREDENTIALS_REASON_REQUIRED:
 
146
 *   This is the first attempt to get credentials for the source. It's usually
 
147
 *   used right after the source is opened and the authentication continues with
 
148
 *   a stored credentials, if any.
 
149
 * @E_SOURCE_CREDENTIALS_REASON_REJECTED:
 
150
 *   The previously used credentials had been rejected by the server. That
 
151
 *   usually means that the user should be asked to provide/correct the credentials.
 
152
 * @E_SOURCE_CREDENTIALS_REASON_SSL_FAILED:
 
153
 *   A secured connection failed due to some server-side certificate issues.
 
154
 * @E_SOURCE_CREDENTIALS_REASON_ERROR:
 
155
 *   The server returned an error. It is not possible to connect to it
 
156
 *   at the moment usually.
 
157
 *
 
158
 * An ESource's authentication reason, used by an ESource::CredentialsRequired method.
 
159
 *
 
160
 * Since: 3.16
 
161
 **/
 
162
typedef enum {
 
163
        E_SOURCE_CREDENTIALS_REASON_UNKNOWN,
 
164
        E_SOURCE_CREDENTIALS_REASON_REQUIRED,
 
165
        E_SOURCE_CREDENTIALS_REASON_REJECTED,
 
166
        E_SOURCE_CREDENTIALS_REASON_SSL_FAILED,
 
167
        E_SOURCE_CREDENTIALS_REASON_ERROR
 
168
} ESourceCredentialsReason;
 
169
 
102
170
#endif /* E_SOURCE_ENUMS_H */