|  |  |  | Evolution Connector for Microsoft Exchange Programmer’s Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
| E2kContext (private)E2kContext (private) — private E2kContext methods | 
SoupMessage * e2k_soup_message_new (E2kContext *ctx,const gchar *uri,const gchar *method); SoupMessage * e2k_soup_message_new_full (E2kContext *ctx,const gchar *uri,const gchar *method,const gchar *content_type,SoupMemoryUse use,const gchar *body,gsize length); void e2k_context_queue_message (E2kContext *ctx,SoupMessage *msg,SoupSessionCallback callback,gpointer user_data); E2kHTTPStatus e2k_context_send_message (E2kContext *ctx,E2kOperation *op,SoupMessage *msg); gboolean e2k_context_fba (E2kContext *ctx,SoupMessage *failed_msg); time_t e2k_context_get_last_timestamp (E2kContext *ctx);
These are the important libexchange-internal E2kContext methods. (In
fact, e2k_soup_message_new() and e2k_context_send_message() are
currently also used by mail-stub-exchange.c.)
SoupMessage * e2k_soup_message_new (E2kContext *ctx,const gchar *uri,const gchar *method);
Creates a new SoupMessage for ctx.
| 
 | the context | 
| 
 | the URI | 
| 
 | the HTTP method | 
| Returns : | a new SoupMessage, set up for connector use | 
SoupMessage * e2k_soup_message_new_full (E2kContext *ctx,const gchar *uri,const gchar *method,const gchar *content_type,SoupMemoryUse use,const gchar *body,gsize length);
Creates a new SoupMessage with the given body.
| 
 | the context | 
| 
 | the URI | 
| 
 | the HTTP method | 
| 
 | MIME Content-Type of body | 
| 
 | use policy of body | 
| 
 | request body | 
| 
 | length of body | 
| Returns : | a new SoupMessagewith a request body, set up for
connector use | 
void e2k_context_queue_message (E2kContext *ctx,SoupMessage *msg,SoupSessionCallback callback,gpointer user_data);
Asynchronously queues msg in ctx's session.
| 
 | the context | 
| 
 | the message to queue | 
| 
 | callback to invoke when msgis done | 
| 
 | data for callback | 
E2kHTTPStatus e2k_context_send_message (E2kContext *ctx,E2kOperation *op,SoupMessage *msg);
Synchronously sends msg in ctx's session.
| 
 | the context | 
| 
 | an E2kOperation to use for cancellation | 
| 
 | the message to send | 
| Returns : | the HTTP status of the message | 
gboolean e2k_context_fba (E2kContext *ctx,SoupMessage *failed_msg);
Attempts to synchronously perform Exchange 2003 forms-based authentication.
| 
 | the context | 
| 
 | a message that received a 440 status code | 
| Returns : | FALSEif authentication failed,TRUEif it
succeeded, in which casefailed_msgcan be requeued. | 
time_t              e2k_context_get_last_timestamp      (E2kContext *ctx);
Returns a time_t corresponding to the last "Date" header
received from the server.
| 
 | the context | 
| Returns : | the timestamp |