emailservices/emailframework/src/CFSFWImplementation.cpp
changeset 0 8466d47a6819
child 8 e1b6206813b4
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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: This file implements class CFSFWImplementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "emailtrace.h"
       
    20 #include "CFSFWImplementation.h"
       
    21 //<cmail>
       
    22 #include "CFSMailPlugin.h"
       
    23 //</cmail>
       
    24 #include "CFSMailPluginManager.h"
       
    25 
       
    26 // ================= MEMBER FUNCTIONS ==========================================
       
    27 // -----------------------------------------------------------------------------
       
    28 // CFSFWImplementation::CFSFWImplementation
       
    29 // -----------------------------------------------------------------------------
       
    30 CFSFWImplementation::CFSFWImplementation()
       
    31 {
       
    32     FUNC_LOG;
       
    33 	iPluginManager = NULL;
       
    34 }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CFSFWImplementation::~CFSFWImplementation
       
    38 // -----------------------------------------------------------------------------
       
    39 CFSFWImplementation::~CFSFWImplementation()
       
    40 {
       
    41     FUNC_LOG;
       
    42 	delete iPluginManager;
       
    43 }
       
    44 // -----------------------------------------------------------------------------
       
    45 // CFSFWImplementation::NewLC
       
    46 // -----------------------------------------------------------------------------
       
    47 CFSFWImplementation* CFSFWImplementation::NewLC(TInt aConfiguration)
       
    48 {
       
    49     FUNC_LOG;
       
    50   CFSFWImplementation* impl = new (ELeave) CFSFWImplementation();
       
    51   CleanupStack:: PushL(impl);
       
    52   impl->ConstructL(aConfiguration);
       
    53   return impl;
       
    54 } 
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // CFSFWImplementation::NewL
       
    58 // -----------------------------------------------------------------------------
       
    59 CFSFWImplementation* CFSFWImplementation::NewL(TInt aConfiguration)
       
    60 {
       
    61     FUNC_LOG;
       
    62   CFSFWImplementation* impl =  CFSFWImplementation::NewLC(aConfiguration);
       
    63   CleanupStack:: Pop(impl);
       
    64   return impl;
       
    65 }
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 // CFSFWImplementation::ConstructL
       
    69 // -----------------------------------------------------------------------------
       
    70 void CFSFWImplementation::ConstructL(TInt aConfiguration)
       
    71 {
       
    72     FUNC_LOG;
       
    73 	// create plugin manager
       
    74 	iPluginManager = CFSMailPluginManager::NewL(aConfiguration);
       
    75 }
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // CFSFWImplementation::GetPluginManager
       
    79 // -----------------------------------------------------------------------------
       
    80 CFSMailPluginManager& CFSFWImplementation::GetPluginManager( )
       
    81 {
       
    82     FUNC_LOG;
       
    83 	return *iPluginManager;
       
    84 }
       
    85