evolution-data-server r9356 - in trunk: calendar calendar/backends/groupwise calendar/libedata-cal docs/reference/addressbook/libebook/tmpl docs/reference/calendar/libedata-cal docs/reference/calendar/libedata-cal/tmpl docs/reference/camel docs/reference/camel/tmpl servers/google/libgdata-google
- From: mbarnes svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9356 - in trunk: calendar calendar/backends/groupwise calendar/libedata-cal docs/reference/addressbook/libebook/tmpl docs/reference/calendar/libedata-cal docs/reference/calendar/libedata-cal/tmpl docs/reference/camel docs/reference/camel/tmpl servers/google/libgdata-google
- Date: Sat, 16 Aug 2008 04:22:45 +0000 (UTC)
Author: mbarnes
Date: Sat Aug 16 04:22:45 2008
New Revision: 9356
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9356&view=rev
Log:
2008-08-15 Matthew Barnes <mbarnes redhat com>
* calendar/backends/groupwise/e-cal-backend-groupwise.c:
Fix a call to a non-existent ECalBackend function name.
* servers/google/libgdata-google/gdata-google-service.c
(gdata_google_service_authenticate):
Apparently this is public API now, since it's called from
google_book_connect_to_google(). Declare it as such.
* docs/reference: Fix the usual oversights.
Modified:
trunk/calendar/ChangeLog
trunk/calendar/backends/groupwise/e-cal-backend-groupwise.c
trunk/calendar/libedata-cal/e-cal-backend.c
trunk/docs/reference/addressbook/libebook/tmpl/e-book-types.sgml
trunk/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
trunk/docs/reference/calendar/libedata-cal/tmpl/e-cal-backend.sgml
trunk/docs/reference/camel/camel-sections.txt
trunk/docs/reference/camel/tmpl/camel-folder-summary.sgml
trunk/docs/reference/camel/tmpl/camel-imap-folder.sgml
trunk/docs/reference/camel/tmpl/camel-imap-message-cache.sgml
trunk/docs/reference/camel/tmpl/camel-imap-store.sgml
trunk/docs/reference/camel/tmpl/camel-offline-store.sgml
trunk/docs/reference/camel/tmpl/camel-string-utils.sgml
trunk/docs/reference/camel/tmpl/camel-vee-folder.sgml
trunk/docs/reference/camel/tmpl/camel-vee-summary.sgml
trunk/servers/google/libgdata-google/ChangeLog
trunk/servers/google/libgdata-google/gdata-google-service.c
trunk/servers/google/libgdata-google/gdata-google-service.h
Modified: trunk/calendar/backends/groupwise/e-cal-backend-groupwise.c
==============================================================================
--- trunk/calendar/backends/groupwise/e-cal-backend-groupwise.c (original)
+++ trunk/calendar/backends/groupwise/e-cal-backend-groupwise.c Sat Aug 16 04:22:45 2008
@@ -246,7 +246,7 @@
forward = FALSE;
}
- e_cal_backend_view_progress_start (E_CAL_BACKEND (cbgw));
+ e_cal_backend_notify_view_progress_start (E_CAL_BACKEND (cbgw));
while (!done) {
Modified: trunk/calendar/libedata-cal/e-cal-backend.c
==============================================================================
--- trunk/calendar/libedata-cal/e-cal-backend.c (original)
+++ trunk/calendar/libedata-cal/e-cal-backend.c Sat Aug 16 04:22:45 2008
@@ -1206,7 +1206,7 @@
}
/**
- * e_cal_backend_view_progress_start
+ * e_cal_backend_notify_view_progress_start
* @backend: A calendar backend.
*
* This methods has to be used before e_cal_backend_notify_view_progress.
Modified: trunk/docs/reference/addressbook/libebook/tmpl/e-book-types.sgml
==============================================================================
--- trunk/docs/reference/addressbook/libebook/tmpl/e-book-types.sgml (original)
+++ trunk/docs/reference/addressbook/libebook/tmpl/e-book-types.sgml Sat Aug 16 04:22:45 2008
@@ -61,6 +61,7 @@
@E_BOOK_ERROR_OFFLINE_UNAVAILABLE:
@E_BOOK_ERROR_OTHER_ERROR:
@E_BOOK_ERROR_INVALID_SERVER_VERSION:
+ E_BOOK_ERROR_UNSUPPORTED_AUTHENTICATION_METHOD:
<!-- ##### ENUM EBookViewStatus ##### -->
<para>
Modified: trunk/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
==============================================================================
--- trunk/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt (original)
+++ trunk/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt Sat Aug 16 04:22:45 2008
@@ -168,6 +168,7 @@
e_cal_backend_notify_auth_required
e_cal_backend_notify_error
e_cal_backend_notify_view_done
+e_cal_backend_notify_view_progress_start
e_cal_backend_notify_view_progress
e_cal_backend_notify_readonly
e_cal_backend_notify_cal_address
Modified: trunk/docs/reference/calendar/libedata-cal/tmpl/e-cal-backend.sgml
==============================================================================
--- trunk/docs/reference/calendar/libedata-cal/tmpl/e-cal-backend.sgml (original)
+++ trunk/docs/reference/calendar/libedata-cal/tmpl/e-cal-backend.sgml Sat Aug 16 04:22:45 2008
@@ -460,6 +460,14 @@
@status:
+<!-- ##### FUNCTION e_cal_backend_notify_view_progress_start ##### -->
+<para>
+
+</para>
+
+ backend:
+
+
<!-- ##### FUNCTION e_cal_backend_notify_view_progress ##### -->
<para>
Modified: trunk/docs/reference/camel/camel-sections.txt
==============================================================================
--- trunk/docs/reference/camel/camel-sections.txt (original)
+++ trunk/docs/reference/camel/camel-sections.txt Sat Aug 16 04:22:45 2008
@@ -211,6 +211,7 @@
camel_db_end_transaction
camel_db_abort_transaction
camel_db_clear_folder_summary
+camel_db_rename_folder
camel_db_delete_folder
camel_db_delete_uid
camel_db_delete_uids
@@ -231,7 +232,9 @@
camel_db_count_junk_not_deleted_message_info
camel_db_camel_mir_free
camel_db_create_vfolder
+camel_db_recreate_vfolder
camel_db_delete_uid_from_vfolder
+camel_db_delete_uid_from_vfolder_transaction
camel_db_get_vuids_from_vfolder
camel_db_add_to_vfolder
camel_db_add_to_vfolder_transaction
@@ -241,6 +244,7 @@
camel_db_sqlize_string
camel_db_free_sqlized_string
camel_db_get_column_name
+camel_db_migrate_vfolders_to_14
</SECTION>
<SECTION>
@@ -514,6 +518,7 @@
camel_folder_summary_index
camel_folder_summary_uid
camel_folder_summary_uid_from_index
+camel_folder_summary_check_uid
camel_folder_summary_array
camel_folder_summary_encode_token
camel_folder_summary_decode_token
@@ -2207,6 +2212,7 @@
<TITLE>CamelOfflineStore</TITLE>
CamelOfflineStore
camel_offline_store_set_network_state
+camel_offline_store_get_network_state
camel_offline_store_prepare_for_offline
<SUBSECTION Standard>
CAMEL_OFFLINE_STORE
@@ -2244,6 +2250,9 @@
camel_imap_folder_selected
camel_imap_folder_changed
camel_imap_folder_fetch_data
+imap_append_resyncing
+imap_transfer_resyncing
+imap_expunge_uids_resyncing
<SUBSECTION Standard>
CAMEL_IMAP_FOLDER
CAMEL_IS_IMAP_FOLDER
@@ -2256,6 +2265,29 @@
</SECTION>
<SECTION>
+<FILE>camel-imap-journal</FILE>
+<TITLE>CamelImapJournal</TITLE>
+CamelOfflineAction
+CamelIMAPJournalEntry
+CamelIMAPJournal
+camel_imap_journal_new
+camel_imap_journal_log
+camel_imap_journal_uidmap_add
+camel_imap_journal_uidmap_lookup
+camel_imap_journal_close_folders
+<SUBSECTION Standard>
+CAMEL_TYPE_IMAP_JOURNAL
+CAMEL_IMAP_JOURNAL
+CAMEL_IMAP_JOURNAL_CLASS
+CAMEL_IS_IMAP_JOURNAL
+CAMEL_IS_IMAP_JOURNAL_CLASS
+CAMEL_IMAP_JOURNAL_GET_CLASS
+CamelIMAPJournalClass
+<SUBSECTION Private>
+camel_imap_journal_get_type
+</SECTION>
+
+<SECTION>
<FILE>camel-imap-message-cache</FILE>
<TITLE>CamelImapMessageCache</TITLE>
CamelImapMessageCache
@@ -2269,6 +2301,7 @@
camel_imap_message_cache_remove
camel_imap_message_cache_clear
camel_imap_message_cache_copy
+camel_imap_message_cache_delete
<SUBSECTION Standard>
CAMEL_IMAP_MESSAGE_CACHE
CAMEL_IS_IMAP_MESSAGE_CACHE
@@ -2333,6 +2366,7 @@
CAMEL_IMAP_STORE_FILTER_INBOX
CAMEL_IMAP_STORE_FILTER_JUNK
CAMEL_IMAP_STORE_FILTER_JUNK_INBOX
+CAMEL_IMAP_STORE_CHECK_LSUB
CAMEL_IMAP_FOLDER_MARKED
CAMEL_IMAP_FOLDER_UNMARKED
CamelImapServerLevel
@@ -2355,6 +2389,7 @@
IMAP_PARAM_FILTER_JUNK
IMAP_PARAM_FILTER_JUNK_INBOX
IMAP_PARAM_SUBSCRIPTIONS
+IMAP_PARAM_CHECK_LSUB
IMAP_FETCH_ALL_HEADERS
IMAP_FETCH_MAILING_LIST_HEADERS
IMAP_FETCH_MINIMAL_HEADERS
@@ -3743,6 +3778,7 @@
camel_pstring_add
camel_pstring_strdup
camel_pstring_free
+camel_pstring_peek
</SECTION>
<SECTION>
Modified: trunk/docs/reference/camel/tmpl/camel-folder-summary.sgml
==============================================================================
--- trunk/docs/reference/camel/tmpl/camel-folder-summary.sgml (original)
+++ trunk/docs/reference/camel/tmpl/camel-folder-summary.sgml Sat Aug 16 04:22:45 2008
@@ -128,7 +128,6 @@
@CAMEL_MESSAGE_NOTJUNK:
@CAMEL_MESSAGE_FORWARDED:
@CAMEL_MESSAGE_FOLDER_FLAGGED:
- CAMEL_MESSAGE_DB_DIRTY:
@CAMEL_MESSAGE_JUNK_LEARN:
@CAMEL_MESSAGE_USER:
@@ -533,6 +532,16 @@
@Returns:
+<!-- ##### FUNCTION camel_folder_summary_check_uid ##### -->
+<para>
+
+</para>
+
+ s:
+ uid:
+ Returns:
+
+
<!-- ##### FUNCTION camel_folder_summary_array ##### -->
<para>
Modified: trunk/docs/reference/camel/tmpl/camel-imap-folder.sgml
==============================================================================
--- trunk/docs/reference/camel/tmpl/camel-imap-folder.sgml (original)
+++ trunk/docs/reference/camel/tmpl/camel-imap-folder.sgml Sat Aug 16 04:22:45 2008
@@ -78,3 +78,38 @@
@Returns:
+<!-- ##### FUNCTION imap_append_resyncing ##### -->
+<para>
+
+</para>
+
+ folder:
+ message:
+ info:
+ appended_uid:
+ ex:
+
+
+<!-- ##### FUNCTION imap_transfer_resyncing ##### -->
+<para>
+
+</para>
+
+ source:
+ uids:
+ dest:
+ transferred_uids:
+ delete_originals:
+ ex:
+
+
+<!-- ##### FUNCTION imap_expunge_uids_resyncing ##### -->
+<para>
+
+</para>
+
+ folder:
+ uids:
+ ex:
+
+
Modified: trunk/docs/reference/camel/tmpl/camel-imap-message-cache.sgml
==============================================================================
--- trunk/docs/reference/camel/tmpl/camel-imap-message-cache.sgml (original)
+++ trunk/docs/reference/camel/tmpl/camel-imap-message-cache.sgml Sat Aug 16 04:22:45 2008
@@ -136,3 +136,13 @@
@ex:
+<!-- ##### FUNCTION camel_imap_message_cache_delete ##### -->
+<para>
+
+</para>
+
+ path:
+ ex:
+ Returns:
+
+
Modified: trunk/docs/reference/camel/tmpl/camel-imap-store.sgml
==============================================================================
--- trunk/docs/reference/camel/tmpl/camel-imap-store.sgml (original)
+++ trunk/docs/reference/camel/tmpl/camel-imap-store.sgml Sat Aug 16 04:22:45 2008
@@ -117,6 +117,13 @@
+<!-- ##### MACRO CAMEL_IMAP_STORE_CHECK_LSUB ##### -->
+<para>
+
+</para>
+
+
+
<!-- ##### MACRO CAMEL_IMAP_FOLDER_MARKED ##### -->
<para>
@@ -273,6 +280,13 @@
+<!-- ##### MACRO IMAP_PARAM_CHECK_LSUB ##### -->
+<para>
+
+</para>
+
+
+
<!-- ##### MACRO IMAP_FETCH_ALL_HEADERS ##### -->
<para>
Modified: trunk/docs/reference/camel/tmpl/camel-offline-store.sgml
==============================================================================
--- trunk/docs/reference/camel/tmpl/camel-offline-store.sgml (original)
+++ trunk/docs/reference/camel/tmpl/camel-offline-store.sgml Sat Aug 16 04:22:45 2008
@@ -35,6 +35,16 @@
@ex:
+<!-- ##### FUNCTION camel_offline_store_get_network_state ##### -->
+<para>
+
+</para>
+
+ store:
+ ex:
+ Returns:
+
+
<!-- ##### FUNCTION camel_offline_store_prepare_for_offline ##### -->
<para>
Modified: trunk/docs/reference/camel/tmpl/camel-string-utils.sgml
==============================================================================
--- trunk/docs/reference/camel/tmpl/camel-string-utils.sgml (original)
+++ trunk/docs/reference/camel/tmpl/camel-string-utils.sgml Sat Aug 16 04:22:45 2008
@@ -108,3 +108,12 @@
@s:
+<!-- ##### FUNCTION camel_pstring_peek ##### -->
+<para>
+
+</para>
+
+ str:
+ Returns:
+
+
Modified: trunk/docs/reference/camel/tmpl/camel-vee-folder.sgml
==============================================================================
--- trunk/docs/reference/camel/tmpl/camel-vee-folder.sgml (original)
+++ trunk/docs/reference/camel/tmpl/camel-vee-folder.sgml Sat Aug 16 04:22:45 2008
@@ -30,6 +30,7 @@
@search:
@parent_vee_store:
@hashes:
+ loaded:
<!-- ##### MACRO CAMEL_UNMATCHED_NAME ##### -->
<para>
Modified: trunk/docs/reference/camel/tmpl/camel-vee-summary.sgml
==============================================================================
--- trunk/docs/reference/camel/tmpl/camel-vee-summary.sgml (original)
+++ trunk/docs/reference/camel/tmpl/camel-vee-summary.sgml Sat Aug 16 04:22:45 2008
@@ -31,6 +31,7 @@
@info:
@summary:
+ old_flags:
<!-- ##### FUNCTION camel_vee_summary_new ##### -->
<para>
Modified: trunk/servers/google/libgdata-google/gdata-google-service.c
==============================================================================
--- trunk/servers/google/libgdata-google/gdata-google-service.c (original)
+++ trunk/servers/google/libgdata-google/gdata-google-service.c Sat Aug 16 04:22:45 2008
@@ -150,68 +150,6 @@
return TRUE;
}
-static gboolean
-gdata_google_service_authenticate (GDataGoogleService *service, GError **error)
-{
- GDataGoogleServicePrivate *priv;
- GDataGoogleServiceAuth *auth;
- SoupMessage *msg;
- GHashTable *request_form;
- gchar *request_body;
- gchar *token = NULL;
-
- priv = GDATA_GOOGLE_SERVICE_GET_PRIVATE(service);
- auth = (GDataGoogleServiceAuth *)priv->auth;
-
- request_form = g_hash_table_new (g_str_hash, g_str_equal);
- g_hash_table_insert (request_form, "Email", auth->username);
- g_hash_table_insert (request_form, "Passwd", auth->password);
- g_hash_table_insert (request_form, "service", priv->name);
- g_hash_table_insert (request_form, "source", priv->agent);
- g_hash_table_insert (request_form, "accountType", "HOSTED_OR_GOOGLE");
- request_body = soup_form_encode_urlencoded (request_form);
- g_hash_table_destroy (request_form);
-
- msg = soup_message_new(SOUP_METHOD_POST, GOOGLE_CLIENT_LOGIN);
- soup_message_set_http_version(msg, SOUP_HTTP_1_0);
- soup_message_set_request (msg, "application/x-www-form-urlencoded",
- SOUP_MEMORY_TAKE,
- request_body, strlen(request_body));
-
- soup_session_send_message (priv->soup_session, msg);
-
- if (msg->status_code != 200) {
- g_set_error (error, SOUP_HTTP_ERROR,
- msg->status_code, msg->reason_phrase);
- g_object_unref(msg);
- return (NULL != token);
- }
- if (msg->response_body->data && strlen (msg->response_body->data) > 0) {
- gchar *auth_begin = NULL;
- gchar *auth_end = NULL;
-
- auth_begin = strstr(msg->response_body->data, "Auth=");
-
- if (!auth_begin) {
- return (NULL != token);
- }
-
- auth_end = strstr(auth_begin, "\n") - 5;
-
- if (auth_begin && strlen(auth_begin) > 5) {
- token = g_strndup(auth_begin + strlen("Auth="), auth_end - auth_begin);
- }
- }
-
- auth->token = token;
- if (NULL == token) {
- g_set_error (error, GDATA_GOOGLE_ERROR,
- -1, "GData protocol error");
- }
-
- return (NULL != token);
-}
-
/**
*
@@ -732,3 +670,64 @@
NULL);
}
+gboolean
+gdata_google_service_authenticate (GDataGoogleService *service, GError **error)
+{
+ GDataGoogleServicePrivate *priv;
+ GDataGoogleServiceAuth *auth;
+ SoupMessage *msg;
+ GHashTable *request_form;
+ gchar *request_body;
+ gchar *token = NULL;
+
+ priv = GDATA_GOOGLE_SERVICE_GET_PRIVATE(service);
+ auth = (GDataGoogleServiceAuth *)priv->auth;
+
+ request_form = g_hash_table_new (g_str_hash, g_str_equal);
+ g_hash_table_insert (request_form, "Email", auth->username);
+ g_hash_table_insert (request_form, "Passwd", auth->password);
+ g_hash_table_insert (request_form, "service", priv->name);
+ g_hash_table_insert (request_form, "source", priv->agent);
+ g_hash_table_insert (request_form, "accountType", "HOSTED_OR_GOOGLE");
+ request_body = soup_form_encode_urlencoded (request_form);
+ g_hash_table_destroy (request_form);
+
+ msg = soup_message_new(SOUP_METHOD_POST, GOOGLE_CLIENT_LOGIN);
+ soup_message_set_http_version(msg, SOUP_HTTP_1_0);
+ soup_message_set_request (msg, "application/x-www-form-urlencoded",
+ SOUP_MEMORY_TAKE,
+ request_body, strlen(request_body));
+
+ soup_session_send_message (priv->soup_session, msg);
+
+ if (msg->status_code != 200) {
+ g_set_error (error, SOUP_HTTP_ERROR,
+ msg->status_code, msg->reason_phrase);
+ g_object_unref(msg);
+ return (NULL != token);
+ }
+ if (msg->response_body->data && strlen (msg->response_body->data) > 0) {
+ gchar *auth_begin = NULL;
+ gchar *auth_end = NULL;
+
+ auth_begin = strstr(msg->response_body->data, "Auth=");
+
+ if (!auth_begin) {
+ return (NULL != token);
+ }
+
+ auth_end = strstr(auth_begin, "\n") - 5;
+
+ if (auth_begin && strlen(auth_begin) > 5) {
+ token = g_strndup(auth_begin + strlen("Auth="), auth_end - auth_begin);
+ }
+ }
+
+ auth->token = token;
+ if (NULL == token) {
+ g_set_error (error, GDATA_GOOGLE_ERROR,
+ -1, "GData protocol error");
+ }
+
+ return (NULL != token);
+}
Modified: trunk/servers/google/libgdata-google/gdata-google-service.h
==============================================================================
--- trunk/servers/google/libgdata-google/gdata-google-service.h (original)
+++ trunk/servers/google/libgdata-google/gdata-google-service.h Sat Aug 16 04:22:45 2008
@@ -65,6 +65,7 @@
/**API******/
GDataGoogleService * gdata_google_service_new(const gchar *serviceName, const gchar *agent);
+gboolean gdata_google_service_authenticate (GDataGoogleService *service, GError **error);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]