commsfwtools/commstools/messageinterceptregister/src/ecomimpl.cpp
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include <ecom/implementationproxy.h>
       
    17 #include <ecom/ecom.h>
       
    18 #include <elements/sd_minterceptmsgs.h>
       
    19 
       
    20 using namespace Den;
       
    21 
       
    22 //
       
    23 // ECOM implementation
       
    24 //
       
    25 
       
    26 TAny* NewMessageL(TAny* aParams)
       
    27 	{
       
    28 	TInt32 type = reinterpret_cast<TInt32>(aParams);
       
    29 	switch (type)
       
    30 		{
       
    31 	case ECheckFallibleMsgModeResponseMsg:
       
    32 		return TCheckFallibleMsgModeResponseMsg::NewL();
       
    33 	default:
       
    34 		User::Leave(KErrNotFound);
       
    35 		}
       
    36 	return NULL;
       
    37 	}
       
    38 
       
    39 
       
    40 const TImplementationProxy ImplementationTable[] =
       
    41 	{
       
    42 	IMPLEMENTATION_PROXY_ENTRY(KMessageInterceptResponseMsgImplementationUid, NewMessageL)
       
    43 	};
       
    44 
       
    45 EXPORT_C const TImplementationProxy* ImplementationGroupProxy (TInt& aTableCount)
       
    46 	{
       
    47 	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    48 	return ImplementationTable;
       
    49 	}
       
    50 
       
    51 
       
    52 
       
    53