Changeset 1541
- Timestamp:
- 02/02/07 16:36:51
- Files:
-
- trunk/ChangeLog (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-account.c (modified) (6 diffs)
- trunk/libtinymail-camel/tny-camel-account.h (modified) (2 diffs)
- trunk/libtinymail-camel/tny-camel-store-account.c (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-transport-account.c (modified) (1 diff)
- trunk/libtinymail-camel/tny-session-camel.c (modified) (1 diff)
- trunk/tests/shared/account-store.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
r1540 r1541 4 4 provider of camel-lite. This means that the POP3 support now supports 5 5 offline viewing E-mails 6 * Changed a silly internal libtinymail-camel API 7 8 * This was a major API change in libtinymail-camel 6 9 7 10 2007-01-31 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> trunk/libtinymail-camel/tny-camel-account.c
r1521 r1541 701 701 702 702 /** 703 * tny_camel_account_set_online _status:703 * tny_camel_account_set_online: 704 704 * @self: a #TnyCamelAccount object 705 * @o ffline: whether or not the account is offline705 * @online: whether or not the account is online 706 706 * @err: a #GError instance or NULL 707 707 * … … 710 710 **/ 711 711 void 712 tny_camel_account_set_online _status (TnyCamelAccount *self, gboolean offline, GError **err)713 { 714 TNY_CAMEL_ACCOUNT_GET_CLASS (self)->set_online_ status_func (self, offline, err);712 tny_camel_account_set_online (TnyCamelAccount *self, gboolean online, GError **err) 713 { 714 TNY_CAMEL_ACCOUNT_GET_CLASS (self)->set_online_func (self, online, err); 715 715 } 716 716 717 717 void 718 tny_camel_account_set_online_ status_default (TnyCamelAccount *self, gboolean offline, GError **err)718 tny_camel_account_set_online_default (TnyCamelAccount *self, gboolean online, GError **err) 719 719 { 720 720 TnyCamelAccountPriv *priv = TNY_CAMEL_ACCOUNT_GET_PRIVATE (self); … … 737 737 } 738 738 739 if (offline)740 camel_service_cancel_connect (priv->service); 739 /* if (offline) 740 camel_service_cancel_connect (priv->service); */ 741 741 742 742 if (CAMEL_IS_DISCO_STORE (priv->service)) { 743 if ( !offline) {743 if (online) { 744 744 camel_disco_store_set_status (CAMEL_DISCO_STORE (priv->service), 745 745 CAMEL_DISCO_STORE_ONLINE, &ex); … … 754 754 } else if (CAMEL_IS_OFFLINE_STORE (priv->service)) { 755 755 756 if ( !offline) {756 if (online) { 757 757 758 758 camel_offline_store_set_network_state (CAMEL_OFFLINE_STORE (priv->service), … … 768 768 } 769 769 770 if ( offline)770 if (!online) 771 771 camel_service_disconnect (CAMEL_SERVICE (priv->service), 772 772 TRUE, &ex); … … 913 913 914 914 class->add_option_func = tny_camel_account_add_option_default; 915 class->set_online_ status_func = tny_camel_account_set_online_status_default;915 class->set_online_func = tny_camel_account_set_online_default; 916 916 917 917 object_class->finalize = tny_camel_account_finalize; trunk/libtinymail-camel/tny-camel-account.h
r1498 r1541 75 75 76 76 void (*add_option_func) (TnyCamelAccount *self, const gchar *option); 77 void (*set_online_ status_func) (TnyCamelAccount *self, gboolean offline, GError **err);77 void (*set_online_func) (TnyCamelAccount *self, gboolean online, GError **err); 78 78 79 79 /* Abstract methods */ … … 85 85 void tny_camel_account_add_option (TnyCamelAccount *self, const gchar *option); 86 86 void tny_camel_account_set_session (TnyCamelAccount *self, TnySessionCamel *session); 87 void tny_camel_account_set_online _status (TnyCamelAccount *self, gboolean offline, GError **err);87 void tny_camel_account_set_online (TnyCamelAccount *self, gboolean online, GError **err); 88 88 89 89 G_END_DECLS trunk/libtinymail-camel/tny-camel-store-account.c
r1522 r1541 189 189 } else { 190 190 apriv->connected = TRUE; 191 /* tny_camel_account_set_online _status (self, !apriv->connected); */191 /* tny_camel_account_set_online (self, apriv->connected); */ 192 192 } 193 193 trunk/libtinymail-camel/tny-camel-transport-account.c
r1522 r1541 198 198 } else { 199 199 apriv->connected = TRUE; 200 tny_camel_account_set_online _status (self, !apriv->connected);200 tny_camel_account_set_online (self, apriv->connected); 201 201 } 202 202 trunk/libtinymail-camel/tny-session-camel.c
r1535 r1541 410 410 411 411 if (err == NULL) 412 tny_camel_account_set_online _status (TNY_CAMEL_ACCOUNT (data), !info->online, &err);412 tny_camel_account_set_online (TNY_CAMEL_ACCOUNT (data), info->online, &err); 413 413 414 414 if (err != NULL) trunk/tests/shared/account-store.c
r1521 r1541 112 112 tny_camel_account_set_session (TNY_CAMEL_ACCOUNT (account), me->session); 113 113 camel_session_set_online ((CamelSession*)me->session, me->force_online); 114 tny_camel_account_set_online _status (TNY_CAMEL_ACCOUNT (account), !me->force_online, NULL);114 tny_camel_account_set_online (TNY_CAMEL_ACCOUNT (account), me->force_online, NULL); 115 115 116 116 tny_account_set_proto (account, "imap"); … … 132 132 tny_camel_account_set_session (TNY_CAMEL_ACCOUNT (account), me->session); 133 133 camel_session_set_online ((CamelSession*)me->session, me->force_online); 134 tny_camel_account_set_online _status (TNY_CAMEL_ACCOUNT (account), !me->force_online, NULL);134 tny_camel_account_set_online (TNY_CAMEL_ACCOUNT (account), me->force_online, NULL); 135 135 136 136 tny_account_set_proto (account, "something");
