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

« back to all changes in this revision

Viewing changes to camel/camel-session.h

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-10-08 12:58:16 UTC
  • mfrom: (181.1.7 quantal)
  • Revision ID: package-import@ubuntu.com-20121008125816-i3n76e8c0m64e7xp
Tags: 3.6.0-0ubuntu2
* Fix LP: #1038047 part 1 - Don't abort in e_source_registry_new* when a
  problem occurs connecting to the Dbus service
  - add debian/patches/dont-abort-in-e_source_registry_new.patch
  - update debian/patches/series
* Fix LP: #1038047 part 2 - libedataserver depends on
  evolution-data-server-common to ensure that the GSettings schemas are
  present
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        CAMEL_SESSION_PASSPHRASE = 1 << 4
70
70
};
71
71
 
72
 
/**
73
 
 * CamelSessionLock:
74
 
 *
75
 
 * Since: 2.32
76
 
 **/
77
 
typedef enum {
78
 
        CAMEL_SESSION_SESSION_LOCK,
79
 
        CAMEL_SESSION_THREAD_LOCK
80
 
} CamelSessionLock;
81
 
 
82
72
struct _CamelSession {
83
73
        CamelObject parent;
84
74
        CamelSessionPrivate *priv;
132
122
                                                 GError **error);
133
123
        gboolean        (*lookup_addressbook)   (CamelSession *session,
134
124
                                                 const gchar *name);
135
 
        gboolean        (*forward_to)           (CamelSession *session,
136
 
                                                 CamelFolder *folder,
137
 
                                                 CamelMimeMessage *message,
138
 
                                                 const gchar *address,
139
 
                                                 GError **error);
140
125
        void            (*get_socks_proxy)      (CamelSession *session,
141
126
                                                 const gchar *for_host,
142
127
                                                 gchar **host_ret,
148
133
                                                 const gchar *mechanism,
149
134
                                                 GCancellable *cancellable,
150
135
                                                 GError **error);
 
136
        gboolean        (*forward_to_sync)      (CamelSession *session,
 
137
                                                 CamelFolder *folder,
 
138
                                                 CamelMimeMessage *message,
 
139
                                                 const gchar *address,
 
140
                                                 GCancellable *cancellable,
 
141
                                                 GError **error);
151
142
 
152
143
        /* Asynchronous I/O Methods (all have defaults) */
153
144
        void            (*authenticate)         (CamelSession *session,
160
151
        gboolean        (*authenticate_finish)  (CamelSession *session,
161
152
                                                 GAsyncResult *result,
162
153
                                                 GError **error);
 
154
        void            (*forward_to)           (CamelSession *session,
 
155
                                                 CamelFolder *folder,
 
156
                                                 CamelMimeMessage *message,
 
157
                                                 const gchar *address,
 
158
                                                 gint io_priority,
 
159
                                                 GCancellable *cancellable,
 
160
                                                 GAsyncReadyCallback callback,
 
161
                                                 gpointer user_data);
 
162
        gboolean        (*forward_to_finish)    (CamelSession *session,
 
163
                                                 GAsyncResult *result,
 
164
                                                 GError **error);
163
165
 
164
166
        /* Signals */
165
167
        void            (*job_started)          (CamelSession *session,
185
187
                                                 GError **error);
186
188
void            camel_session_remove_service    (CamelSession *session,
187
189
                                                 CamelService *service);
188
 
CamelService *  camel_session_get_service       (CamelSession *session,
 
190
CamelService *  camel_session_ref_service       (CamelSession *session,
189
191
                                                 const gchar *uid);
190
 
CamelService *  camel_session_get_service_by_url
 
192
CamelService *  camel_session_ref_service_by_url
191
193
                                                (CamelSession *session,
192
194
                                                 CamelURL *url,
193
195
                                                 CamelProviderType type);
247
249
                                                 gint len);
248
250
gboolean        camel_session_lookup_addressbook (CamelSession *session,
249
251
                                                 const gchar *name);
250
 
gboolean        camel_session_forward_to        (CamelSession *session,
251
 
                                                 CamelFolder *folder,
252
 
                                                 CamelMimeMessage *message,
253
 
                                                 const gchar *address,
254
 
                                                 GError **error);
255
 
void            camel_session_lock              (CamelSession *session,
256
 
                                                 CamelSessionLock lock);
257
 
void            camel_session_unlock            (CamelSession *session,
258
 
                                                 CamelSessionLock lock);
259
252
 
260
253
gboolean        camel_session_authenticate_sync (CamelSession *session,
261
254
                                                 CamelService *service,
273
266
                                                (CamelSession *session,
274
267
                                                 GAsyncResult *result,
275
268
                                                 GError **error);
 
269
gboolean        camel_session_forward_to_sync   (CamelSession *session,
 
270
                                                 CamelFolder *folder,
 
271
                                                 CamelMimeMessage *message,
 
272
                                                 const gchar *address,
 
273
                                                 GCancellable *cancellable,
 
274
                                                 GError **error);
 
275
void            camel_session_forward_to        (CamelSession *session,
 
276
                                                 CamelFolder *folder,
 
277
                                                 CamelMimeMessage *message,
 
278
                                                 const gchar *address,
 
279
                                                 gint io_priority,
 
280
                                                 GCancellable *cancellable,
 
281
                                                 GAsyncReadyCallback callback,
 
282
                                                 gpointer user_data);
 
283
gboolean        camel_session_forward_to_finish (CamelSession *session,
 
284
                                                 GAsyncResult *result,
 
285
                                                 GError **error);
276
286
 
277
287
G_END_DECLS
278
288