emailservices/emailframework/src/CFSClientAPIRequestHandler.cpp
changeset 0 8466d47a6819
child 8 e1b6206813b4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/emailservices/emailframework/src/CFSClientAPIRequestHandler.cpp	Thu Dec 17 08:39:21 2009 +0200
@@ -0,0 +1,78 @@
+/*
+* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  plugin request handler
+*
+*/
+
+
+#include "emailtrace.h"
+#include "CFSClientAPIRequestHandler.h"
+#include "CFSMailRequestObserver.h"
+#include "emailclientpluginmanager.h"
+
+// ================= MEMBER FUNCTIONS ==========================================	
+// -----------------------------------------------------------------------------
+// CFSMailRequestHandler::CFSMailRequestHandler
+// -----------------------------------------------------------------------------
+CFSClientAPIRequestHandler::CFSClientAPIRequestHandler(  
+    MEmailClientPluginManager* aPluginManager ) : iPluginManager(aPluginManager)
+{
+    FUNC_LOG;
+
+	// store pointer to TLS
+	TInt err = Dll::SetTls(static_cast<TAny*>(this));
+}
+
+// -----------------------------------------------------------------------------
+// CFSMailRequestHandler::~CFSMailRequestHandler
+// -----------------------------------------------------------------------------
+
+CFSClientAPIRequestHandler::~CFSClientAPIRequestHandler()
+    {
+    FUNC_LOG;
+    }
+
+// -----------------------------------------------------------------------------
+// CFSMailRequestHandler::NewL
+// -----------------------------------------------------------------------------
+CFSClientAPIRequestHandler* CFSClientAPIRequestHandler::NewL( 
+    MEmailClientPluginManager* aPluginManager)
+{
+    FUNC_LOG;
+    CFSClientAPIRequestHandler* requestHandler = 
+        new (ELeave) CFSClientAPIRequestHandler( aPluginManager );
+    CleanupStack:: PushL(requestHandler);
+    requestHandler->ConstructL( );
+    CleanupStack:: Pop(requestHandler);
+    return requestHandler;
+} 
+
+
+// -----------------------------------------------------------------------------
+// CFSMailRequestHandler::ConstructL
+// -----------------------------------------------------------------------------
+void CFSClientAPIRequestHandler::ConstructL( )
+{
+    FUNC_LOG;
+}
+
+// -----------------------------------------------------------------------------
+// CFSMailRequestHandler::GetPluginByUid
+// -----------------------------------------------------------------------------
+CFSMailPlugin* CFSClientAPIRequestHandler::GetPluginByUid(
+    TFSMailMsgId aObjectId )
+	{
+    FUNC_LOG;
+    return iPluginManager->GetPluginByUid(aObjectId.PluginId());
+	}