Changeset 2505

Show
Ignore:
Timestamp:
07/26/07 13:32:31
Author:
pvanhoof
Message:

Parallel retrieval of messages on POP

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docs/devel/reference/tmpl/tny-account-store.sgml

    r2501 r2505  
    4545 
    4646 
     47<!-- ##### SIGNAL TnyAccountStore::account-changed ##### --> 
     48<para> 
     49 
     50</para> 
     51 
     52@:  
     53@: 
     54 
     55@tnyaccountstore: the object which received the signal. 
     56@arg1:  
     57 
     58<!-- ##### SIGNAL TnyAccountStore::account-inserted ##### --> 
     59<para> 
     60 
     61</para> 
     62 
     63@:  
     64@: 
     65 
     66@tnyaccountstore: the object which received the signal. 
     67@arg1:  
     68 
     69<!-- ##### SIGNAL TnyAccountStore::account-removed ##### --> 
     70<para> 
     71 
     72</para> 
     73 
     74@:  
     75@: 
     76 
     77@tnyaccountstore: the object which received the signal. 
     78@arg1:  
     79 
     80<!-- ##### SIGNAL TnyAccountStore::accounts-reloaded ##### --> 
     81<para> 
     82 
     83</para> 
     84 
     85@: 
     86 
     87@tnyaccountstore: the object which received the signal. 
     88 
     89<!-- ##### SIGNAL TnyAccountStore::connecting-finished ##### --> 
     90<para> 
     91 
     92</para> 
     93 
     94@: 
     95 
     96@tnyaccountstore: the object which received the signal. 
     97 
     98<!-- ##### SIGNAL TnyAccountStore::connecting-started ##### --> 
     99<para> 
     100 
     101</para> 
     102 
     103@: 
     104 
     105@tnyaccountstore: the object which received the signal. 
     106 
     107<!-- ##### STRUCT TnyAccountStoreIface ##### --> 
     108<para> 
     109 
     110</para> 
     111 
     112@parent:  
     113@get_accounts_func:  
     114@get_cache_dir_func:  
     115@get_device_func:  
     116@alert_func:  
     117@find_account_func:  
     118@account_changed:  
     119@account_inserted:  
     120@account_removed:  
     121@accounts_reloaded:  
     122@connecting_started:  
     123@connecting_finished:  
     124 
     125<!-- ##### FUNCTION tny_get_accounts_request_type_get_type ##### --> 
     126<para> 
     127 
     128</para> 
     129 
     130@Returns:  
    47131 
    48132 
     133<!-- ##### FUNCTION tny_alert_type_get_type ##### --> 
     134<para> 
     135 
     136</para> 
     137 
     138@Returns:  
     139 
     140 
     141<!-- ##### FUNCTION tny_account_store_get_accounts ##### --> 
     142<para> 
     143 
     144</para> 
     145 
     146@self:  
     147@list:  
     148@types:  
     149 
     150 
     151<!-- ##### FUNCTION tny_account_store_get_cache_dir ##### --> 
     152<para> 
     153 
     154</para> 
     155 
     156@self:  
     157@Returns:  
     158 
     159 
     160<!-- ##### FUNCTION tny_account_store_get_device ##### --> 
     161<para> 
     162 
     163</para> 
     164 
     165@self:  
     166@Returns:  
     167 
     168 
     169<!-- ##### FUNCTION tny_account_store_alert ##### --> 
     170<para> 
     171 
     172</para> 
     173 
     174@self:  
     175@account:  
     176@type:  
     177@question:  
     178@error:  
     179@Returns:  
     180 
     181 
     182<!-- ##### FUNCTION tny_account_store_find_account ##### --> 
     183<para> 
     184 
     185</para> 
     186 
     187@self:  
     188@url_string:  
     189@Returns:  
     190 
     191 
  • trunk/docs/devel/reference/tmpl/tny-account.sgml

    r2501 r2505  
    2323</para> 
    2424 
     25 
     26<!-- ##### SIGNAL TnyAccount::connection-status-changed ##### --> 
     27<para> 
     28 
     29</para> 
     30 
     31@: 
     32 
     33@Param2:  
     34@Param2:  
    2535 
    2636<!-- ##### STRUCT TnyAccountIface ##### --> 
  • trunk/docs/devel/reference/tmpl/tny-async-worker-queue-task.sgml

    r2121 r2505  
    1818 
    1919 
    20 <!-- ##### STRUCT TnyAsyncWorkerQueueTask ##### --> 
    21 <para> 
    22  
    23 </para> 
    24  
    25  
  • trunk/docs/devel/reference/tmpl/tny-async-worker-queue.sgml

    r2121 r2505  
    1818 
    1919 
    20 <!-- ##### STRUCT TnyAsyncWorkerQueue ##### --> 
    21 <para> 
    22  
    23 </para> 
    24  
    25  
    26 <!-- ##### FUNCTION tny_async_worker_queue_new ##### --> 
    27 <para> 
    28  
    29 </para> 
    30  
    31 @r_queue:  
    32 @Returns:  
    33  
    34  
    35 <!-- ##### FUNCTION tny_async_worker_queue_new_from_scratch ##### --> 
    36 <para> 
    37  
    38 </para> 
    39  
    40 @Returns:  
    41  
    42  
  • trunk/docs/devel/reference/tmpl/tny-camel-pop-remote-msg-remove-strategy.sgml

    r2504 r2505  
    1010</para> 
    1111 
    12  
    1312<!-- ##### SECTION See_Also ##### --> 
    1413<para> 
    1514 
    1615</para> 
    17  
    1816 
    1917<!-- ##### SECTION Stability_Level ##### --> 
  • trunk/docs/devel/reference/tmpl/tny-device.sgml

    r2501 r2505  
    3232 
    3333 
     34<!-- ##### SIGNAL TnyDevice::connection-changed ##### --> 
     35<para> 
     36 
     37</para> 
     38 
     39@:  
     40@: 
     41 
     42@tnydevice: the object which received the signal. 
     43@arg1:  
     44 
     45<!-- ##### STRUCT TnyDeviceIface ##### --> 
     46<para> 
     47 
     48</para> 
     49 
     50@parent:  
     51@is_online_func:  
     52@force_online_func:  
     53@force_offline_func:  
     54@reset_func:  
     55@connection_changed:  
     56 
     57<!-- ##### FUNCTION tny_device_is_online ##### --> 
     58<para> 
     59 
     60</para> 
     61 
     62@self:  
     63@Returns:  
     64 
     65 
     66<!-- ##### FUNCTION tny_device_force_online ##### --> 
     67<para> 
     68 
     69</para> 
     70 
     71@self:  
     72 
     73 
     74<!-- ##### FUNCTION tny_device_force_offline ##### --> 
     75<para> 
     76 
     77</para> 
     78 
     79@self:  
     80 
     81 
     82<!-- ##### FUNCTION tny_device_reset ##### --> 
     83<para> 
     84 
     85</para> 
     86 
     87@self:  
     88 
     89 
  • trunk/docs/devel/reference/tmpl/tny-send-queue.sgml

    r2501 r2505  
    3333 
    3434</para> 
     35 
     36 
     37<!-- ##### SIGNAL TnySendQueue::error-happened ##### --> 
     38<para> 
     39 
     40</para> 
     41 
     42@tnysendqueue: the object which received the signal. 
     43@arg1:  
     44@arg2:  
     45@arg3:  
     46 
     47<!-- ##### SIGNAL TnySendQueue::msg-sending ##### --> 
     48<para> 
     49 
     50</para> 
     51 
     52@tnysendqueue: the object which received the signal. 
     53@arg1:  
     54@arg2:  
     55@arg3:  
     56@arg4:  
     57 
     58<!-- ##### SIGNAL TnySendQueue::msg-sent ##### --> 
     59<para> 
     60 
     61</para> 
     62 
     63@tnysendqueue: the object which received the signal. 
     64@arg1:  
     65@arg2:  
     66@arg3:  
     67@arg4:  
    3568 
    3669<!-- ##### STRUCT TnySendQueueIface ##### --> 
  • trunk/docs/devel/reference/tmpl/tny-shared.sgml

    r2501 r2505  
    4747</para> 
    4848 
    49 @:  
    50 @:  
     49@tnyaccountstore: the object which received the signal. 
     50@arg1:  
    5151 
    5252<!-- ##### SIGNAL TnyAccountStore::account-inserted ##### --> 
     
    5555</para> 
    5656 
    57 @:  
    58 @:  
     57@tnyaccountstore: the object which received the signal. 
     58@arg1:  
    5959 
    6060<!-- ##### SIGNAL TnyAccountStore::account-removed ##### --> 
     
    6363</para> 
    6464 
    65 @:  
    66 @:  
     65@tnyaccountstore: the object which received the signal. 
     66@arg1:  
    6767 
    6868<!-- ##### SIGNAL TnyAccountStore::accounts-reloaded ##### --> 
     
    7171</para> 
    7272 
    73 @:  
     73@tnyaccountstore: the object which received the signal. 
    7474 
    7575<!-- ##### SIGNAL TnyAccountStore::connecting-finished ##### --> 
     
    7878</para> 
    7979 
    80 @:  
     80@tnyaccountstore: the object which received the signal. 
    8181 
    8282<!-- ##### SIGNAL TnyAccountStore::connecting-started ##### --> 
     
    8585</para> 
    8686 
    87 @:  
     87@tnyaccountstore: the object which received the signal. 
    8888 
    8989<!-- ##### STRUCT TnyAccountStoreIface ##### --> 
     
    338338</para> 
    339339 
    340 @:  
    341 @:  
     340@tnydevice: the object which received the signal. 
     341@arg1:  
    342342 
    343343<!-- ##### STRUCT TnyDeviceIface ##### --> 
     
    364364</para> 
    365365 
    366 @:  
    367 @:  
     366@tnystoreaccount: the object which received the signal. 
     367@arg1:  
    368368 
    369369<!-- ##### STRUCT TnyStoreAccountIface ##### --> 
     
    613613</para> 
    614614 
    615 @tnysendqueue: the object which received the signal. 
    616 @arg1:  
    617 @arg2:  
    618 @arg3:  
     615@:  
     616@:  
     617@:  
     618@:  
    619619 
    620620<!-- ##### SIGNAL TnySendQueue::msg-sending ##### --> 
     
    623623</para> 
    624624 
    625 @tnysendqueue: the object which received the signal. 
    626 @arg1:  
    627 @arg2:  
    628 @arg3:  
    629 @arg4:  
     625@:  
     626@:  
     627@:  
     628@:  
     629@:  
    630630 
    631631<!-- ##### SIGNAL TnySendQueue::msg-sent ##### --> 
     
    634634</para> 
    635635 
    636 @tnysendqueue: the object which received the signal. 
    637 @arg1:  
    638 @arg2:  
    639 @arg3:  
    640 @arg4:  
     636@:  
     637@:  
     638@:  
     639@:  
     640@:  
    641641 
    642642<!-- ##### STRUCT TnySendQueueIface ##### --> 
  • trunk/docs/devel/reference/tmpl/tny-signals-marshal.sgml

    r2504 r2505  
    1010</para> 
    1111 
    12  
    1312<!-- ##### SECTION See_Also ##### --> 
    1413<para> 
    1514 
    1615</para> 
    17  
    1816 
    1917<!-- ##### SECTION Stability_Level ##### --> 
  • trunk/docs/devel/reference/tmpl/tny-store-account.sgml

    r2501 r2505  
    3131 
    3232 
     33<!-- ##### SIGNAL TnyStoreAccount::subscription-changed ##### --> 
     34<para> 
     35 
     36</para> 
     37 
     38@:  
     39@: 
     40 
     41@tnystoreaccount: the object which received the signal. 
     42@arg1:  
     43 
     44<!-- ##### STRUCT TnyStoreAccountIface ##### --> 
     45<para> 
     46 
     47</para> 
     48 
     49@parent:  
     50@subscription_changed:  
     51@subscribe_func:  
     52@unsubscribe_func:  
     53@find_folder_func:  
     54@delete_cache_func:  
     55 
     56<!-- ##### FUNCTION tny_store_account_subscribe ##### --> 
     57<para> 
     58 
     59</para> 
     60 
     61@self:  
     62@folder:  
     63 
     64 
     65<!-- ##### FUNCTION tny_store_account_unsubscribe ##### --> 
     66<para> 
     67 
     68</para> 
     69 
     70@self:  
     71@folder:  
     72 
     73 
     74<!-- ##### FUNCTION tny_store_account_find_folder ##### --> 
     75<para> 
     76 
     77</para> 
     78 
     79@self:  
     80@url_string:  
     81@err:  
     82@Returns:  
     83 
     84 
     85<!-- ##### FUNCTION tny_store_account_delete_cache ##### --> 
     86<para> 
     87 
     88</para> 
     89 
     90@self:  
     91 
     92 
  • trunk/docs/devel/reference/tmpl/tny-tp-mail-notifier.sgml

    r2504 r2505  
    1010</para> 
    1111 
    12  
    1312<!-- ##### SECTION See_Also ##### --> 
    1413<para> 
     
    1615</para> 
    1716 
    18  
    1917<!-- ##### SECTION Stability_Level ##### --> 
    2018 
    2119 
    22 <!-- ##### STRUCT TnyTpMailNotifier ##### --> 
    23 <para> 
    24  
    25 </para> 
    26  
    27  
    28 <!-- ##### FUNCTION tny_tp_mail_notifier_new ##### --> 
    29 <para> 
    30  
    31 </para> 
    32  
    33 @folder:  
    34 @Returns:  
    35  
    36  
  • trunk/libtinymail-camel/camel-lite/camel/providers/pop3/camel-pop3-folder.c

    r2503 r2505  
    11621162        CamelFolderSummary *summary = folder->summary; 
    11631163        CamelMessageInfoBase *mi; 
     1164        CamelPOP3Engine *mengine = NULL; 
    11641165 
    11651166        if (camel_disco_store_status (CAMEL_DISCO_STORE (pop3_store)) == CAMEL_DISCO_STORE_OFFLINE) 
     
    12121213                } 
    12131214 
    1214                 while ((i = camel_pop3_engine_iterate(pop3_store->engine, fi->cmd)) > 0) 
     1215                mengine = pop3_store->engine; 
     1216                camel_object_ref (mengine); 
     1217 
     1218                g_static_rec_mutex_unlock (pop3_store->eng_lock); 
     1219 
     1220                while ((i = camel_pop3_engine_iterate(mengine, fi->cmd)) > 0) 
    12151221                        ; 
    1216                 g_static_rec_mutex_unlock (pop3_store->eng_lock); 
    12171222 
    12181223                if (i == -1) 
     
    12201225 
    12211226                /* getting error code? */ 
    1222                 /*g_assert (fi->cmd->state == CAMEL_POP3_COMMAND_DATA);*/ 
     1227                /* g_assert (fi->cmd->state == CAMEL_POP3_COMMAND_DATA); */ 
    12231228 
    12241229                g_static_rec_mutex_lock (pop3_store->eng_lock); 
     1230 
     1231                camel_object_unref (mengine); 
    12251232 
    12261233                if (pop3_store->engine == NULL) { 
  • trunk/libtinymail/tny-account.c

    r2501 r2505  
    451451        g_assert (TNY_IS_ACCOUNT (self)); 
    452452        g_assert (url_string); 
    453         g_assert (strlen (url_string) > 0); 
    454         g_assert (strstr (url_string, "://") != NULL); 
     453        g_assert (strlen (url_string) > 0);  
    455454        g_assert (TNY_ACCOUNT_GET_IFACE (self)->set_url_string_func != NULL); 
    456455#endif