Changeset 520

Show
Ignore:
Timestamp:
06/14/06 15:40:04
Author:
pvanhoof
Message:

Interface warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail/tny-account-iface.c

    r410 r520  
    3333tny_account_iface_is_connected (TnyAccountIface *self) 
    3434{ 
     35#ifdef DEBUG 
     36        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->is_connected_func) 
     37                g_critical ("You must implement tny_account_iface_is_connected\n"); 
     38#endif 
     39 
    3540        return TNY_ACCOUNT_IFACE_GET_CLASS (self)->is_connected_func (self); 
    3641} 
     
    4954tny_account_iface_set_account_store (TnyAccountIface *self, const TnyAccountStoreIface *store) 
    5055{ 
     56#ifdef DEBUG 
     57        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_account_store_func) 
     58                g_critical ("You must implement tny_account_iface_set_account_store\n"); 
     59#endif 
     60 
    5161        TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_account_store_func (self, store); 
    5262        return; 
     
    6474tny_account_iface_get_account_store (TnyAccountIface *self) 
    6575{ 
     76#ifdef DEBUG 
     77        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_account_store_func) 
     78                g_critical ("You must implement tny_account_iface_get_account_store\n"); 
     79#endif 
     80 
    6681        return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_account_store_func (self); 
    6782} 
     
    7893tny_account_iface_get_id (TnyAccountIface *self) 
    7994{ 
     95#ifdef DEBUG 
     96        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_id_func) 
     97                g_critical ("You must implement tny_account_iface_get_id\n"); 
     98#endif 
     99 
    80100        return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_id_func (self); 
    81101} 
     
    92112tny_account_iface_set_name (TnyAccountIface *self, const gchar *name) 
    93113{ 
     114#ifdef DEBUG 
     115        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_name_func) 
     116                g_critical ("You must implement tny_account_iface_set_name\n"); 
     117#endif 
     118 
    94119        TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_name_func (self, name); 
    95120        return; 
     
    108133tny_account_iface_set_id (TnyAccountIface *self, const gchar *id) 
    109134{ 
     135#ifdef DEBUG 
     136        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_id_func) 
     137                g_critical ("You must implement tny_account_iface_set_id\n"); 
     138#endif 
     139 
    110140        TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_id_func (self, id); 
    111141        return; 
     
    126156tny_account_iface_set_forget_pass_func (TnyAccountIface *self, TnyForgetPassFunc forget_pass_func) 
    127157{ 
     158#ifdef DEBUG 
     159        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_forget_pass_func_func) 
     160                g_critical ("You must implement tny_account_iface_set_forget_pass_func\n"); 
     161#endif 
     162 
    128163        TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_forget_pass_func_func (self, forget_pass_func); 
    129164        return; 
     
    141176tny_account_iface_get_forget_pass_func (TnyAccountIface *self) 
    142177{ 
     178#ifdef DEBUG 
     179        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_forget_pass_func_func) 
     180                g_critical ("You must implement tny_account_iface_get_forget_pass_func\n"); 
     181#endif 
     182 
    143183        return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_forget_pass_func_func (self); 
    144184} 
     
    155195tny_account_iface_set_url_string (TnyAccountIface *self, const gchar *url_string) 
    156196{ 
     197#ifdef DEBUG 
     198        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_url_string_func) 
     199                g_critical ("You must implement tny_account_iface_set_url_string\n"); 
     200#endif 
     201 
    157202        TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_url_string_func (self, url_string); 
    158203        return; 
     
    171216tny_account_iface_set_proto (TnyAccountIface *self, const gchar *proto) 
    172217{ 
     218#ifdef DEBUG 
     219        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_proto_func) 
     220                g_critical ("You must implement tny_account_iface_set_proto\n"); 
     221#endif 
     222 
    173223        TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_proto_func (self, proto); 
    174224        return; 
     
    187237tny_account_iface_set_user (TnyAccountIface *self, const gchar *user) 
    188238{ 
     239#ifdef DEBUG 
     240        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_user_func) 
     241                g_critical ("You must implement tny_account_iface_set_user\n"); 
     242#endif 
     243 
    189244        TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_user_func (self, user); 
    190245        return; 
     
    203258tny_account_iface_set_hostname (TnyAccountIface *self, const gchar *host) 
    204259{ 
     260#ifdef DEBUG 
     261        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_hostname_func) 
     262                g_critical ("You must implement tny_account_iface_set_hostname\n"); 
     263#endif 
     264 
    205265        TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_hostname_func (self, host); 
    206266        return; 
     
    222282tny_account_iface_set_pass_func (TnyAccountIface *self, TnyGetPassFunc get_pass_func) 
    223283{ 
     284#ifdef DEBUG 
     285        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_pass_func_func) 
     286                g_critical ("You must implement tny_account_iface_set_pass_func\n"); 
     287#endif 
     288 
    224289        TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_pass_func_func (self, get_pass_func); 
    225290        return; 
     
    237302tny_account_iface_get_proto (TnyAccountIface *self) 
    238303{ 
     304#ifdef DEBUG 
     305        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_proto_func) 
     306                g_critical ("You must implement tny_account_iface_get_proto\n"); 
     307#endif 
     308 
    239309        return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_proto_func (self); 
    240310} 
     
    253323tny_account_iface_get_url_string (TnyAccountIface *self) 
    254324{ 
     325#ifdef DEBUG 
     326        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_url_string_func) 
     327                g_critical ("You must implement tny_account_iface_get_url_string\n"); 
     328#endif 
     329 
    255330        return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_url_string_func (self); 
    256331} 
     
    267342tny_account_iface_get_user (TnyAccountIface *self) 
    268343{ 
     344#ifdef DEBUG 
     345        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_user_func) 
     346                g_critical ("You must implement tny_account_iface_get_user\n"); 
     347#endif 
     348 
    269349        return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_user_func (self); 
    270350} 
     
    281361tny_account_iface_get_name (TnyAccountIface *self) 
    282362{ 
     363#ifdef DEBUG 
     364        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_name_func) 
     365                g_critical ("You must implement tny_account_iface_get_name\n"); 
     366#endif 
     367 
    283368        return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_name_func (self); 
    284369} 
     
    295380tny_account_iface_get_hostname (TnyAccountIface *self) 
    296381{ 
     382#ifdef DEBUG 
     383        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_hostname_func) 
     384                g_critical ("You must implement tny_account_iface_get_hostname\n"); 
     385#endif 
     386 
    297387        return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_hostname_func (self); 
    298388} 
     
    309399tny_account_iface_get_pass_func (TnyAccountIface *self) 
    310400{ 
     401#ifdef DEBUG 
     402        if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_pass_func_func) 
     403                g_critical ("You must implement tny_account_iface_get_pass_func\n"); 
     404#endif 
     405 
    311406        return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_pass_func_func (self); 
    312407} 
  • trunk/libtinymail/tny-account-store-iface.c

    r519 r520  
    5151#ifdef DEBUG 
    5252        if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->alert_func) 
    53                 g_warning (_("You must implement tny_account_store_iface_alert\n")); 
     53                g_critical ("You must implement tny_account_store_iface_alert\n"); 
    5454#endif 
    5555        return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->alert_func (self, type, prompt); 
     
    6767#ifdef DEBUG 
    6868        if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_device_func) 
    69                 g_warning (_("You must implement tny_account_store_iface_get_device\n")); 
     69                g_critical ("You must implement tny_account_store_iface_get_device\n"); 
    7070#endif 
    7171        return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_device_func (self); 
     
    8585#ifdef DEBUG 
    8686        if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_cache_dir_func) 
    87                 g_warning (_("You must implement tny_account_store_iface_get_cache_dir\n")); 
     87                g_critical ("You must implement tny_account_store_iface_get_cache_dir\n"); 
    8888#endif 
    8989        return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_cache_dir_func (self); 
     
    104104#ifdef DEBUG 
    105105        if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_transport_accounts_func) 
    106                 g_warning (_("You must implement tny_account_store_iface_get_transport_accounts\n")); 
     106                g_critical ("You must implement tny_account_store_iface_get_transport_accounts\n"); 
    107107#endif 
    108108        return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_transport_accounts_func (self); 
     
    123123#ifdef DEBUG 
    124124        if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->add_transport_account_func) 
    125                 g_warning (_("You must implement tny_account_store_iface_add_transport_account\n")); 
    126 #endif 
     125                g_critical ("You must implement tny_account_store_iface_add_transport_account\n"); 
     126#endif 
     127 
    127128        TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->add_transport_account_func (self, account); 
    128129        return; 
     
    143144#ifdef DEBUG 
    144145        if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_store_accounts_func) 
    145                 g_warning (_("You must implement tny_account_store_iface_get_store_accounts\n")); 
     146                g_critical ("You must implement tny_account_store_iface_get_store_accounts\n"); 
    146147#endif 
    147148        return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_store_accounts_func (self); 
     
    161162#ifdef DEBUG 
    162163        if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->add_store_account_func) 
    163                 g_warning (_("You must implement tny_account_store_iface_add_store_account\n")); 
     164                g_critical ("You must implement tny_account_store_iface_add_store_account\n"); 
    164165#endif 
    165166        TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->add_store_account_func (self, account); 
  • trunk/libtinymail/tny-device-iface.c

    r519 r520  
    4444#ifdef DEBUG 
    4545        if (!TNY_DEVICE_IFACE_GET_CLASS (self)->reset_func) 
    46                 g_warning (_("You must implement tny_device_iface_reset\n")); 
     46                g_critical ("You must implement tny_device_iface_reset\n"); 
    4747#endif 
    4848 
     
    6262#ifdef DEBUG 
    6363        if (!TNY_DEVICE_IFACE_GET_CLASS (self)->force_online_func) 
    64                 g_warning (_("You must implement tny_device_iface_force_online\n")); 
     64                g_critical ("You must implement tny_device_iface_force_online\n"); 
    6565#endif 
    6666 
     
    8080#ifdef DEBUG 
    8181        if (!TNY_DEVICE_IFACE_GET_CLASS (self)->force_offline_func) 
    82                 g_warning (_("You must implement tny_device_iface_force_offline\n")); 
     82                g_critical ("You must implement tny_device_iface_force_offline\n"); 
    8383#endif 
    8484 
     
    9898#ifdef DEBUG 
    9999        if (!TNY_DEVICE_IFACE_GET_CLASS (self)->is_online_func) 
    100                 g_warning (_("You must implement tny_device_iface_is_online\n")); 
     100                g_critical ("You must implement tny_device_iface_is_online\n"); 
    101101#endif 
    102102 
  • trunk/libtinymail/tny-iterator-iface.c

    r424 r520  
    3434tny_iterator_iface_next (TnyIteratorIface *self) 
    3535{ 
     36#ifdef DEBUG 
     37        if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->next_func) 
     38                g_critical ("You must implement tny_iterator_iface_next\n"); 
     39#endif 
     40 
    3641        return TNY_ITERATOR_IFACE_GET_CLASS (self)->next_func (self); 
    3742} 
     
    4954tny_iterator_iface_prev (TnyIteratorIface *self) 
    5055{ 
     56#ifdef DEBUG 
     57        if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->prev_func) 
     58                g_critical ("You must implement tny_iterator_iface_prev\n"); 
     59#endif 
     60 
    5161        return TNY_ITERATOR_IFACE_GET_CLASS (self)->prev_func (self); 
    5262} 
     
    6575tny_iterator_iface_first (TnyIteratorIface *self) 
    6676{ 
     77#ifdef DEBUG 
     78        if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->first_func) 
     79                g_critical ("You must implement tny_iterator_iface_first\n"); 
     80#endif 
     81 
    6782        return TNY_ITERATOR_IFACE_GET_CLASS (self)->first_func (self); 
    6883} 
     
    8196tny_iterator_iface_nth (TnyIteratorIface *self, guint nth) 
    8297{ 
     98#ifdef DEBUG 
     99        if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->nth_func) 
     100                g_critical ("You must implement tny_iterator_iface_nth\n"); 
     101#endif 
     102 
    83103        return TNY_ITERATOR_IFACE_GET_CLASS (self)->nth_func (self, nth); 
    84104} 
     
    97117tny_iterator_iface_current (TnyIteratorIface *self) 
    98118{ 
     119#ifdef DEBUG 
     120        if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->current_func) 
     121                g_critical ("You must implement tny_iterator_iface_current\n"); 
     122#endif 
     123 
    99124        return TNY_ITERATOR_IFACE_GET_CLASS (self)->current_func (self); 
    100125} 
     
    112137tny_iterator_iface_has_next (TnyIteratorIface *self) 
    113138{ 
     139#ifdef DEBUG 
     140        if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->has_next_func) 
     141                g_critical ("You must implement tny_iterator_iface_has_next\n"); 
     142#endif 
     143 
    114144        return TNY_ITERATOR_IFACE_GET_CLASS (self)->has_next_func (self); 
    115145} 
     
    127157tny_iterator_iface_get_list (TnyIteratorIface *self) 
    128158{ 
     159#ifdef DEBUG 
     160        if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->get_list_func) 
     161                g_critical ("You must implement tny_iterator_iface_get_list\n"); 
     162#endif 
     163 
    129164        return TNY_ITERATOR_IFACE_GET_CLASS (self)->get_list_func (self); 
    130165} 
  • trunk/libtinymail/tny-list-iface.c

    r491 r520  
    3131tny_list_iface_length (TnyListIface *self) 
    3232{ 
     33#ifdef DEBUG 
     34        if (!TNY_LIST_IFACE_GET_CLASS (self)->length_func) 
     35                g_critical ("You must implement tny_list_iface_length\n"); 
     36#endif 
     37 
    3338        TNY_LIST_IFACE_GET_CLASS (self)->length_func (self); 
    3439        return; 
     
    4045 * @item: the item to prepend 
    4146 * 
    42  * 
     47 * Implementors: if you have to choose, make this one the fast one 
    4348 **/ 
    4449void 
    4550tny_list_iface_prepend (TnyListIface *self, gpointer item) 
    4651{ 
     52#ifdef DEBUG 
     53        if (!TNY_LIST_IFACE_GET_CLASS (self)->prepend_func) 
     54                g_critical ("You must implement tny_list_iface_prepend\n"); 
     55#endif 
     56 
    4757        TNY_LIST_IFACE_GET_CLASS (self)->prepend_func (self, item); 
    4858        return; 
     
    5464 * @item: the item to append 
    5565 * 
    56  * 
     66 * Implementors: if you have to choose, make the prepend one the fast one 
    5767 **/ 
    5868void  
    5969tny_list_iface_append (TnyListIface *self, gpointer item) 
    6070{ 
     71#ifdef DEBUG 
     72        if (!TNY_LIST_IFACE_GET_CLASS (self)->append_func) 
     73                g_critical ("You must implement tny_list_iface_append\n"); 
     74#endif 
     75 
    6176        TNY_LIST_IFACE_GET_CLASS (self)->append_func (self, item); 
    6277        return; 
     
    7590tny_list_iface_remove (TnyListIface *self, gpointer item) 
    7691{ 
     92#ifdef DEBUG 
     93        if (!TNY_LIST_IFACE_GET_CLASS (self)->remove_func) 
     94                g_critical ("You must implement tny_list_iface_remove\n"); 
     95#endif 
     96 
    7797        TNY_LIST_IFACE_GET_CLASS (self)->remove_func (self, item); 
    7898        return; 
     
    89109tny_list_iface_create_iterator (TnyListIface *self) 
    90110{ 
     111#ifdef DEBUG 
     112        if (!TNY_LIST_IFACE_GET_CLASS (self)->create_iterator_func) 
     113                g_critical ("You must implement tny_list_iface_create_iterator\n"); 
     114#endif 
     115 
    91116        return TNY_LIST_IFACE_GET_CLASS (self)->create_iterator_func (self); 
    92117} 
     
    104129tny_list_iface_foreach (TnyListIface *self, GFunc func, gpointer user_data) 
    105130{ 
     131#ifdef DEBUG 
     132        if (!TNY_LIST_IFACE_GET_CLASS (self)->foreach_func) 
     133                g_critical ("You must implement tny_list_iface_foreach\n"); 
     134#endif 
     135 
    106136        TNY_LIST_IFACE_GET_CLASS (self)->foreach_func (self, func, user_data); 
    107137        return; 
     
    119149tny_list_iface_copy (TnyListIface *self) 
    120150{ 
     151#ifdef DEBUG 
     152        if (!TNY_LIST_IFACE_GET_CLASS (self)->copy_func) 
     153                g_critical ("You must implement tny_list_iface_copy\n"); 
     154#endif 
     155 
    121156        return TNY_LIST_IFACE_GET_CLASS (self)->copy_func (self); 
    122157} 
  • trunk/libtinymail/tny-msg-folder-iface.c

    r498 r520  
    3636tny_msg_folder_iface_expunge (TnyMsgFolderIface *self) 
    3737{ 
     38#ifdef DEBUG 
     39        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->expunge_func) 
     40                g_critical ("You must implement tny_msg_folder_iface_expunge\n"); 
     41#endif 
    3842        TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->expunge_func (self); 
    3943        return; 
     
    4549 * @header: the header of the message to remove 
    4650 * 
    47  * Remove a message from a folder 
     51 * Remove a message from a folder. This doesn't remove it from a #TnyListIface  
     52 * that would hold the headers (for example for a header summary view). 
    4853 **/ 
    4954void  
    5055tny_msg_folder_iface_remove_message (TnyMsgFolderIface *self, TnyMsgHeaderIface *header) 
    5156{ 
     57#ifdef DEBUG 
     58        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->remove_message_func) 
     59                g_critical ("You must implement tny_msg_folder_iface_remove_message\n"); 
     60#endif 
     61 
    5262        TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->remove_message_func (self, header); 
    5363        return; 
     
    6878tny_msg_folder_iface_refresh_async (TnyMsgFolderIface *self, TnyRefreshFolderCallback callback, TnyRefreshFolderStatusCallback status_callback, gpointer user_data) 
    6979{ 
     80#ifdef DEBUG 
     81        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->refresh_async_func) 
     82                g_critical ("You must implement tny_msg_folder_iface_refresh_async\n"); 
     83#endif 
     84 
    7085        TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->refresh_async_func (self, callback, status_callback, user_data); 
    7186        return; 
     
    8499tny_msg_folder_iface_refresh (TnyMsgFolderIface *self) 
    85100{ 
     101#ifdef DEBUG 
     102        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->refresh_func) 
     103                g_critical ("You must implement tny_msg_folder_iface_refresh\n"); 
     104#endif 
     105 
    86106        TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->refresh_func (self); 
    87107        return; 
     
    99119tny_msg_folder_iface_set_subscribed (TnyMsgFolderIface *self, const gboolean subscribed) 
    100120{ 
     121#ifdef DEBUG 
     122        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_subscribed_func) 
     123                g_critical ("You must implement tny_msg_folder_iface_set_subscribed\n"); 
     124#endif 
     125 
    101126        TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_subscribed_func (self, subscribed); 
    102127        return; 
     
    114139tny_msg_folder_iface_get_subscribed (TnyMsgFolderIface *self) 
    115140{ 
     141#ifdef DEBUG 
     142        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_subscribed_func) 
     143                g_critical ("You must implement tny_msg_folder_iface_get_subscribed\n"); 
     144#endif 
     145 
    116146        return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_subscribed_func (self); 
    117147} 
     
    128158tny_msg_folder_iface_get_unread_count (TnyMsgFolderIface *self) 
    129159{ 
     160#ifdef DEBUG 
     161        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_unread_count_func) 
     162                g_critical ("You must implement tny_msg_folder_iface_get_unread_count\n"); 
     163#endif 
     164 
    130165        return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_unread_count_func (self); 
    131166} 
     
    135170tny_msg_folder_iface_get_all_count (TnyMsgFolderIface *self) 
    136171{ 
     172#ifdef DEBUG 
     173        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_all_count_func) 
     174                g_critical ("You must implement tny_msg_folder_iface_get_all_count\n"); 
     175#endif 
     176 
    137177        return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_all_count_func (self); 
    138178} 
     
    149189tny_msg_folder_iface_get_account (TnyMsgFolderIface *self) 
    150190{ 
     191#ifdef DEBUG 
     192        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_account_func) 
     193                g_critical ("You must implement tny_msg_folder_iface_get_account\n"); 
     194#endif 
     195 
    151196        return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_account_func (self); 
    152197} 
     
    162207tny_msg_folder_iface_set_account (TnyMsgFolderIface *self, const TnyAccountIface *account) 
    163208{ 
     209#ifdef DEBUG 
     210        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_account_func) 
     211                g_critical ("You must implement tny_msg_folder_iface_set_account\n"); 
     212#endif 
     213 
    164214        TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_account_func (self, account); 
    165215 
     
    178228tny_msg_folder_iface_get_folders (TnyMsgFolderIface *self) 
    179229{ 
     230#ifdef DEBUG 
     231        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_folders_func) 
     232                g_critical ("You must implement tny_msg_folder_iface_get_folders\n"); 
     233#endif 
     234 
    180235        return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_folders_func (self); 
    181236} 
     
    194249tny_msg_folder_iface_get_message (TnyMsgFolderIface *self, const TnyMsgHeaderIface *header) 
    195250{ 
     251#ifdef DEBUG 
     252        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_message_func) 
     253                g_critical ("You must implement tny_msg_folder_iface_get_message\n"); 
     254#endif 
     255 
    196256        return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_message_func (self, header); 
    197257} 
     
    210270tny_msg_folder_iface_get_headers (TnyMsgFolderIface *self, TnyListIface *headers, gboolean refresh) 
    211271{ 
     272#ifdef DEBUG 
     273        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_headers_func) 
     274                g_critical ("You must implement tny_msg_folder_iface_get_headers\n"); 
     275#endif 
     276 
    212277        return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_headers_func (self, headers, refresh); 
    213278} 
     
    224289tny_msg_folder_iface_get_id (TnyMsgFolderIface *self) 
    225290{ 
     291#ifdef DEBUG 
     292        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_id_func) 
     293                g_critical ("You must implement tny_msg_folder_iface_get_id\n"); 
     294#endif 
     295 
    226296        return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_id_func (self); 
    227297} 
     
    238308tny_msg_folder_iface_get_name (TnyMsgFolderIface *self) 
    239309{ 
     310#ifdef DEBUG 
     311        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_name_func) 
     312                g_critical ("You must implement tny_msg_folder_iface_get_name\n"); 
     313#endif 
     314 
    240315        return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_name_func (self); 
    241316} 
     
    252327tny_msg_folder_iface_set_id (TnyMsgFolderIface *self, const gchar *id) 
    253328{ 
     329#ifdef DEBUG 
     330        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_id_func) 
     331                g_critical ("You must implement tny_msg_folder_iface_set_id\n"); 
     332#endif 
     333 
    254334        TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_id_func (self, id); 
    255335        return; 
     
    267347tny_msg_folder_iface_set_name (TnyMsgFolderIface *self, const gchar *name) 
    268348{ 
     349#ifdef DEBUG 
     350        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_name_func) 
     351                g_critical ("You must implement tny_msg_folder_iface_set_name\n"); 
     352#endif 
     353 
    269354        TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_name_func (self, name); 
    270355        return; 
     
    282367TnyMsgFolderType tny_msg_folder_iface_get_folder_type  (TnyMsgFolderIface *self) 
    283368{ 
     369#ifdef DEBUG 
     370        if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_folder_type_func) 
     371                g_critical ("You must implement tny_msg_folder_iface_get_folder_type\n"); 
     372#endif 
     373 
    284374        return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_folder_type_func (self); 
    285375} 
  • trunk/libtinymailui-gtk/tny-msg-header-list-model.c

    r496 r520  
    4141stack allocations)? It's probably a naïve manual optimization.*/ 
    4242 
    43  
    44 G_INLINE_FUNC void /* When sorting, this method is called a gazillion times */ 
     43#ifndef DEBUG 
     44G_INLINE_FUNC 
     45#endif 
     46void /* When sorting, this method is called a gazillion times */ 
    4547_tny_msg_header_list_iterator_travel_to_nth_nl (TnyMsgHeaderListIterator *self, guint cur, guint nth) 
    4648{ 
     
    230232} 
    231233 
    232 G_INLINE_FUNC gchar * 
     234#ifndef DEBUG 
     235G_INLINE_FUNC 
     236#endif 
     237gchar * 
    233238_get_readable_date (const time_t file_time_raw) 
    234239{ 
  • trunk/libtinymailui/tny-account-store-view-iface.c

    r387 r520  
    3434tny_account_store_view_iface_set_account_store (TnyAccountStoreViewIface *self, TnyAccountStoreIface *account_store) 
    3535{ 
     36#ifdef DEBUG 
     37        if (!TNY_ACCOUNT_STORE_VIEW_IFACE_GET_CLASS (self)->set_account_store_func) 
     38                g_critical ("You must implement tny_account_store_view_iface_set_account_store\n"); 
     39#endif 
    3640        TNY_ACCOUNT_STORE_VIEW_IFACE_GET_CLASS (self)->set_account_store_func (self, account_store); 
    3741        return; 
  • trunk/libtinymailui/tny-msg-header-view-iface.c

    r379 r520  
    3535tny_msg_header_view_iface_set_header (TnyMsgHeaderViewIface *self, TnyMsgHeaderIface *header) 
    3636{ 
     37#ifdef DEBUG 
     38        if (!TNY_MSG_HEADER_VIEW_IFACE_GET_CLASS (self)->set_header_func) 
     39                g_critical ("You must implement tny_msg_header_view_iface_set_header\n"); 
     40#endif 
     41 
    3742        TNY_MSG_HEADER_VIEW_IFACE_GET_CLASS (self)->set_header_func (self, header); 
    3843        return; 
  • trunk/libtinymailui/tny-msg-view-iface.c

    r519 r520  
    3535#ifdef DEBUG 
    3636        if (!TNY_MSG_VIEW_IFACE_GET_CLASS (self)->set_save_strategy_func) 
    37                 g_warning (_("You must implement tny_msg_view_iface_set_save_strategy\n")); 
     37                g_critical ("You must implement tny_msg_view_iface_set_save_strategy\n"); 
    3838#endif 
    3939 
     
    5656#ifdef DEBUG 
    5757        if (!TNY_MSG_VIEW_IFACE_GET_CLASS (self)->set_msg_func) 
    58                 g_warning (_("You must implement tny_msg_view_iface_set_msg\n")); 
     58                g_critical ("You must implement tny_msg_view_iface_set_msg\n"); 
    5959#endif 
    6060 
  • trunk/libtinymailui/tny-platform-factory-iface.c

    r519 r520  
    3333#ifdef DEBUG 
    3434        if (!TNY_PLATFORM_FACTORY_IFACE_GET_CLASS (self)->new_account_store_func) 
    35                 g_warning (_("You must implement tny_platform_factory_iface_new_account_store\n")); 
     35                g_critical ("You must implement tny_platform_factory_iface_new_account_store\n"); 
    3636#endif 
    3737 
     
    5050#ifdef DEBUG 
    5151        if (!TNY_PLATFORM_FACTORY_IFACE_GET_CLASS (self)->new_device_func) 
    52                 g_warning (_("You must implement tny_platform_factory_iface_new_device\n")); 
     52                g_critical ("You must implement tny_platform_factory_iface_new_device\n"); 
    5353#endif 
    5454 
     
    6767#ifdef DEBUG 
    6868        if (!TNY_PLATFORM_FACTORY_IFACE_GET_CLASS (self)->new_msg_view_func) 
    69                 g_warning (_("You must implement tny_platform_factory_iface_new_msg_view\n")); 
     69                g_warning ("You must implement tny_platform_factory_iface_new_msg_view\n"); 
    7070#endif 
    7171 
  • trunk/libtinymailui/tny-save-strategy-iface.c

    r519 r520  
    3434#ifdef DEBUG 
    3535        if (!TNY_SAVE_STRATEGY_IFACE_GET_CLASS (self)->save_func) 
    36                 g_warning (_("You must implement tny_save_strategy_iface_save\n")); 
     36                g_critical ("You must implement tny_save_strategy_iface_save\n"); 
    3737#endif 
    3838