Changeset 519

Show
Ignore:
Timestamp:
06/14/06 15:16:33
Author:
pvanhoof
Message:

Warnings

Files:

Legend:

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

    r487 r519  
    4949tny_account_store_iface_alert (TnyAccountStoreIface *self, TnyAlertType type, const gchar *prompt) 
    5050{ 
     51#ifdef DEBUG 
     52        if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->alert_func) 
     53                g_warning (_("You must implement tny_account_store_iface_alert\n")); 
     54#endif 
    5155        return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->alert_func (self, type, prompt); 
    5256} 
     
    6165tny_account_store_iface_get_device (TnyAccountStoreIface *self) 
    6266{ 
     67#ifdef DEBUG 
     68        if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_device_func) 
     69                g_warning (_("You must implement tny_account_store_iface_get_device\n")); 
     70#endif 
    6371        return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_device_func (self); 
    6472} 
     
    7583tny_account_store_iface_get_cache_dir (TnyAccountStoreIface *self) 
    7684{ 
     85#ifdef DEBUG 
     86        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")); 
     88#endif 
    7789        return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_cache_dir_func (self); 
    7890} 
     
    90102tny_account_store_iface_get_transport_accounts (TnyAccountStoreIface *self) 
    91103{ 
     104#ifdef DEBUG 
     105        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")); 
     107#endif 
    92108        return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_transport_accounts_func (self); 
    93109} 
     
    105121tny_account_store_iface_add_transport_account (TnyAccountStoreIface *self, TnyTransportAccountIface *account) 
    106122{ 
     123#ifdef DEBUG 
     124        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 
    107127        TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->add_transport_account_func (self, account); 
    108128        return; 
     
    121141tny_account_store_iface_get_store_accounts (TnyAccountStoreIface *self) 
    122142{ 
     143#ifdef DEBUG 
     144        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#endif 
    123147        return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_store_accounts_func (self); 
    124148} 
     
    135159tny_account_store_iface_add_store_account (TnyAccountStoreIface *self, TnyStoreAccountIface *account) 
    136160{ 
     161#ifdef DEBUG 
     162        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#endif 
    137165        TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->add_store_account_func (self, account); 
    138166        return; 
  • trunk/libtinymail/tny-device-iface.c

    r505 r519  
    4242tny_device_iface_reset (TnyDeviceIface *self) 
    4343{ 
     44#ifdef DEBUG 
     45        if (!TNY_DEVICE_IFACE_GET_CLASS (self)->reset_func) 
     46                g_warning (_("You must implement tny_device_iface_reset\n")); 
     47#endif 
     48 
    4449        TNY_DEVICE_IFACE_GET_CLASS (self)->reset_func (self); 
    4550        return; 
     
    5560tny_device_iface_force_online (TnyDeviceIface *self) 
    5661{ 
     62#ifdef DEBUG 
     63        if (!TNY_DEVICE_IFACE_GET_CLASS (self)->force_online_func) 
     64                g_warning (_("You must implement tny_device_iface_force_online\n")); 
     65#endif 
     66 
    5767        TNY_DEVICE_IFACE_GET_CLASS (self)->force_online_func (self); 
    5868        return; 
     
    6878tny_device_iface_force_offline (TnyDeviceIface *self) 
    6979{ 
     80#ifdef DEBUG 
     81        if (!TNY_DEVICE_IFACE_GET_CLASS (self)->force_offline_func) 
     82                g_warning (_("You must implement tny_device_iface_force_offline\n")); 
     83#endif 
     84 
    7085        TNY_DEVICE_IFACE_GET_CLASS (self)->force_offline_func (self); 
    7186        return; 
     
    8196tny_device_iface_is_online (TnyDeviceIface *self) 
    8297{ 
     98#ifdef DEBUG 
     99        if (!TNY_DEVICE_IFACE_GET_CLASS (self)->is_online_func) 
     100                g_warning (_("You must implement tny_device_iface_is_online\n")); 
     101#endif 
     102 
    83103        return TNY_DEVICE_IFACE_GET_CLASS (self)->is_online_func (self); 
    84104} 
  • trunk/libtinymailui/tny-msg-view-iface.c

    r379 r519  
    3333tny_msg_view_iface_set_save_strategy (TnyMsgViewIface *self, TnySaveStrategyIface *strategy) 
    3434{ 
     35#ifdef DEBUG 
     36        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")); 
     38#endif 
     39 
    3540        TNY_MSG_VIEW_IFACE_GET_CLASS (self)->set_save_strategy_func (self, strategy); 
    3641        return; 
     
    4954tny_msg_view_iface_set_msg (TnyMsgViewIface *self, TnyMsgIface *msg) 
    5055{ 
     56#ifdef DEBUG 
     57        if (!TNY_MSG_VIEW_IFACE_GET_CLASS (self)->set_msg_func) 
     58                g_warning (_("You must implement tny_msg_view_iface_set_msg\n")); 
     59#endif 
     60 
    5161        TNY_MSG_VIEW_IFACE_GET_CLASS (self)->set_msg_func (self, msg); 
    5262        return; 
  • trunk/libtinymailui/tny-platform-factory-iface.c

    r408 r519  
    3131tny_platform_factory_iface_new_account_store (TnyPlatformFactoryIface *self) 
    3232{ 
     33#ifdef DEBUG 
     34        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")); 
     36#endif 
     37 
    3338        return TNY_PLATFORM_FACTORY_IFACE_GET_CLASS (self)->new_account_store_func (self); 
    3439} 
     
    4348tny_platform_factory_iface_new_device (TnyPlatformFactoryIface *self) 
    4449{ 
     50#ifdef DEBUG 
     51        if (!TNY_PLATFORM_FACTORY_IFACE_GET_CLASS (self)->new_device_func) 
     52                g_warning (_("You must implement tny_platform_factory_iface_new_device\n")); 
     53#endif 
     54 
    4555        return TNY_PLATFORM_FACTORY_IFACE_GET_CLASS (self)->new_device_func (self); 
    4656} 
     
    5565tny_platform_factory_iface_new_msg_view (TnyPlatformFactoryIface *self) 
    5666{ 
     67#ifdef DEBUG 
     68        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")); 
     70#endif 
     71 
    5772        return TNY_PLATFORM_FACTORY_IFACE_GET_CLASS (self)->new_msg_view_func (self); 
    5873} 
  • trunk/libtinymailui/tny-save-strategy-iface.c

    r379 r519  
    3232tny_save_strategy_iface_save (TnySaveStrategyIface *self, TnyMsgMimePartIface *part) 
    3333{ 
     34#ifdef DEBUG 
     35        if (!TNY_SAVE_STRATEGY_IFACE_GET_CLASS (self)->save_func) 
     36                g_warning (_("You must implement tny_save_strategy_iface_save\n")); 
     37#endif 
     38 
    3439        TNY_SAVE_STRATEGY_IFACE_GET_CLASS (self)->save_func (self, part); 
    3540        return;