emailservices/emailframework/src/CFSClientAPIRequestHandler.cpp
branchRCL_3
changeset 64 3533d4323edc
equal deleted inserted replaced
63:d189ee25cf9d 64:3533d4323edc
       
     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:  plugin request handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "emailtrace.h"
       
    20 #include "cfsclientapirequesthandler.h"
       
    21 #include "cfsmailrequestobserver.h"
       
    22 #include "emailclientpluginmanager.h"
       
    23 
       
    24 // ================= MEMBER FUNCTIONS ==========================================	
       
    25 // -----------------------------------------------------------------------------
       
    26 // CFSMailRequestHandler::CFSMailRequestHandler
       
    27 // -----------------------------------------------------------------------------
       
    28 CFSClientAPIRequestHandler::CFSClientAPIRequestHandler(  
       
    29     MEmailClientPluginManager* aPluginManager ) : iPluginManager(aPluginManager)
       
    30     {
       
    31     FUNC_LOG;
       
    32     }
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 // CFSMailRequestHandler::~CFSMailRequestHandler
       
    36 // -----------------------------------------------------------------------------
       
    37 
       
    38 CFSClientAPIRequestHandler::~CFSClientAPIRequestHandler()
       
    39     {
       
    40     FUNC_LOG;
       
    41     }
       
    42 
       
    43 // -----------------------------------------------------------------------------
       
    44 // CFSMailRequestHandler::NewL
       
    45 // -----------------------------------------------------------------------------
       
    46 CFSClientAPIRequestHandler* CFSClientAPIRequestHandler::NewL( 
       
    47     MEmailClientPluginManager* aPluginManager)
       
    48 {
       
    49     FUNC_LOG;
       
    50     CFSClientAPIRequestHandler* requestHandler = 
       
    51         new (ELeave) CFSClientAPIRequestHandler( aPluginManager );
       
    52     CleanupStack:: PushL(requestHandler);
       
    53     requestHandler->ConstructL( );
       
    54     CleanupStack:: Pop(requestHandler);
       
    55     return requestHandler;
       
    56 } 
       
    57 
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // CFSMailRequestHandler::ConstructL
       
    61 // -----------------------------------------------------------------------------
       
    62 void CFSClientAPIRequestHandler::ConstructL( )
       
    63 {
       
    64     FUNC_LOG;
       
    65 }
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 // CFSMailRequestHandler::GetPluginByUid
       
    69 // -----------------------------------------------------------------------------
       
    70 CFSMailPlugin* CFSClientAPIRequestHandler::GetPluginByUid(
       
    71     TFSMailMsgId aObjectId )
       
    72 	{
       
    73     FUNC_LOG;
       
    74     return iPluginManager->GetPluginByUid(aObjectId.PluginId());
       
    75 	}