ipsservices/ipssosplugin/src/ipsplgsosbaseplugin.cpp
branchRCL_3
changeset 17 67369d1b217f
parent 16 b5fbb9b25d57
child 20 efd4f1afd43e
equal deleted inserted replaced
16:b5fbb9b25d57 17:67369d1b217f
  2601             timerCount--;
  2601             timerCount--;
  2602             j--;
  2602             j--;
  2603             }
  2603             }
  2604         }
  2604         }
  2605     }
  2605     }
  2606 
  2606 // ---------------------------------------------------------------------------
       
  2607 // finds and returns extension
       
  2608 // ---------------------------------------------------------------------------
       
  2609 //
       
  2610 CEmailExtension* CIpsPlgSosBasePlugin::ExtensionL( const TUid& aInterfaceUid )
       
  2611     {
       
  2612     FUNC_LOG;
       
  2613     
       
  2614     // search for settings extension
       
  2615     CEmailExtension* extension = CExtendableEmail::ExtensionL( aInterfaceUid );
       
  2616     
       
  2617     // if not found create settings extension
       
  2618     if ( extension == NULL && aInterfaceUid == KEmailSettingExtensionUid)
       
  2619         {
       
  2620         extension = new (ELeave) CEmailSettingsExtensionImpl(iSession);
       
  2621         CleanupStack::PushL( extension );
       
  2622         iExtensions.AddL( extension );
       
  2623         CleanupStack::Pop(); 
       
  2624         }
       
  2625     return extension;
       
  2626     }