emailservices/emailframework/inc/CFSMailPluginInterface.inl
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Inline methods for class CFSMailPlugin. 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 // default constructor
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 inline CFSMailPlugin::CFSMailPlugin()
       
    24     {
       
    25 
       
    26     }
       
    27 // -----------------------------------------------------------------------------
       
    28 // destructor
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 inline CFSMailPlugin::~CFSMailPlugin()
       
    32     {
       
    33 		REComSession::DestroyedImplementation(iDtor_ID_Key);
       
    34     }
       
    35     
       
    36 // -----------------------------------------------------------------------------
       
    37 // CFSMailPlugin::ListImplementationsL
       
    38 // -----------------------------------------------------------------------------
       
    39 inline void CFSMailPlugin::ListImplementationsL(RPointerArray<CImplementationInformation>& aInfo)
       
    40     {
       
    41     
       
    42     REComSession::ListImplementationsL(KFSMailPluginInterface,aInfo);
       
    43 
       
    44     }
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // CFSMailPlugin::NewL
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 inline CFSMailPlugin* CFSMailPlugin::NewL(TUid aUid)
       
    51 	{
       
    52 
       
    53 		return static_cast<CFSMailPlugin*>(REComSession::CreateImplementationL(
       
    54 							aUid,_FOFF( CFSMailPlugin, iDtor_ID_Key)));
       
    55     }
       
    56     
       
    57 // -----------------------------------------------------------------------------
       
    58 // CFSMailPlugin::NewL
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 inline CFSMailPlugin* CFSMailPlugin::NewL()
       
    62 	{
       
    63 	
       
    64     //Set up the interface find for the default resolver.
       
    65     TEComResolverParams ResolverParams;
       
    66     ResolverParams.SetDataType( KFSPluginInterfaceImplementationType());
       
    67     ResolverParams.SetWildcardMatch( ETrue );        // Allow wildcard matching
       
    68         
       
    69     return REINTERPRET_CAST( CFSMailPlugin*, 
       
    70 				REComSession::CreateImplementationL( 
       
    71 						KFSMailPluginInterface, 
       
    72 						_FOFF( CFSMailPlugin, iDtor_ID_Key ),
       
    73 	          			ResolverParams ) );
       
    74 
       
    75     }
       
    76 
       
    77             
       
    78 // End of File