emailservices/emailframework/src/CFSClientAPIRequestHandler.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:  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 	// store pointer to TLS
       
    34 	TInt err = Dll::SetTls(static_cast<TAny*>(this));
       
    35 }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // CFSMailRequestHandler::~CFSMailRequestHandler
       
    39 // -----------------------------------------------------------------------------
       
    40 
       
    41 CFSClientAPIRequestHandler::~CFSClientAPIRequestHandler()
       
    42     {
       
    43     FUNC_LOG;
       
    44     }
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // CFSMailRequestHandler::NewL
       
    48 // -----------------------------------------------------------------------------
       
    49 CFSClientAPIRequestHandler* CFSClientAPIRequestHandler::NewL( 
       
    50     MEmailClientPluginManager* aPluginManager)
       
    51 {
       
    52     FUNC_LOG;
       
    53     CFSClientAPIRequestHandler* requestHandler = 
       
    54         new (ELeave) CFSClientAPIRequestHandler( aPluginManager );
       
    55     CleanupStack:: PushL(requestHandler);
       
    56     requestHandler->ConstructL( );
       
    57     CleanupStack:: Pop(requestHandler);
       
    58     return requestHandler;
       
    59 } 
       
    60 
       
    61 
       
    62 // -----------------------------------------------------------------------------
       
    63 // CFSMailRequestHandler::ConstructL
       
    64 // -----------------------------------------------------------------------------
       
    65 void CFSClientAPIRequestHandler::ConstructL( )
       
    66 {
       
    67     FUNC_LOG;
       
    68 }
       
    69 
       
    70 // -----------------------------------------------------------------------------
       
    71 // CFSMailRequestHandler::GetPluginByUid
       
    72 // -----------------------------------------------------------------------------
       
    73 CFSMailPlugin* CFSClientAPIRequestHandler::GetPluginByUid(
       
    74     TFSMailMsgId aObjectId )
       
    75 	{
       
    76     FUNC_LOG;
       
    77     return iPluginManager->GetPluginByUid(aObjectId.PluginId());
       
    78 	}