websrv_pub/web_service_messaging_api/tsrc/bc/newsoapclasses/src/testmsenmessage.cpp
changeset 0 62f9d29f7211
child 23 a1df79fa35b4
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2002-2009 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:          test class implementation for MSenMessage.h.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 // INCLUDE FILES
       
    30 #include "testmsenmessage.h"
       
    31 #include <e32base.h>
       
    32 
       
    33  	CTestMSenMessage* CTestMSenMessage::NewL()
       
    34  	{
       
    35  		CTestMSenMessage* pTestMSenMessage = new (ELeave) CTestMSenMessage();
       
    36  		return pTestMSenMessage;
       
    37  	}
       
    38  	CTestMSenMessage* CTestMSenMessage::NewLC()
       
    39  	{
       
    40  		CTestMSenMessage* pTestMSenMessage = new (ELeave) CTestMSenMessage();
       
    41  		CleanupStack::PushL(pTestMSenMessage);
       
    42  		return pTestMSenMessage;
       
    43  	}
       
    44  	CTestMSenMessage::CTestMSenMessage()
       
    45  	{
       
    46  		
       
    47  	}
       
    48   	MSenMessage::TClass CTestMSenMessage::Type() 
       
    49   	{
       
    50   		EMessageBase;
       
    51   	}
       
    52   	MSenMessage::TDirection CTestMSenMessage::Direction() 
       
    53   	{
       
    54   		EOutbound;
       
    55   	}
       
    56 	TInt CTestMSenMessage::SetContext(MSenMessageContext* apNotOwnedContext) 
       
    57 	{
       
    58 		return KErrNone;
       
    59 	}
       
    60     MSenMessageContext* CTestMSenMessage::Context() 
       
    61     {
       
    62     	return NULL;
       
    63     }
       
    64     TInt CTestMSenMessage::SetProperties(MSenProperties* apOwnedProperties)
       
    65     {
       
    66     	return KErrNone;
       
    67     }
       
    68     MSenProperties* CTestMSenMessage::Properties() 
       
    69     {
       
    70     	return NULL;
       
    71     }
       
    72     TBool CTestMSenMessage::IsSafeToCast(TClass aType)
       
    73     {
       
    74     	return ETrue;
       
    75     }
       
    76     TInt CTestMSenMessage::TxnId() 
       
    77     {
       
    78     	return KErrNone;
       
    79     } 
       
    80     MSenMessage* CTestMSenMessage::CloneL() 
       
    81     {
       
    82     	return NULL;
       
    83     }
       
    84