os/ossrv/syslibsapitest/syslibssvs/ecom/TestPlugin/Src/TestEComInterface2.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2005-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: 
    15 *
    16 */
    17 
    18 
    19 
    20 #include "TestEComInterface2.h"
    21 
    22 CTestEComInterface2* CTestEComInterface2::NewL()
    23 // Intended Usage	: Safe construction which leaves nothing upon the cleanup stack	
    24 // Error Condition	: Will leave with an appropriate error code	
    25 // Dependencies	: CBase
    26 // @param			" "
    27 // @return			CTestEComInterface2* a pointer to the fully instantiated CTestEComInterface2 object
    28 // @pre 			None
    29 // @post			The object has been fully instantiated
    30 // Static member
    31 	{
    32 	CTestEComInterface2* self=new(ELeave) CTestEComInterface2();  // calls constructor
    33 	CleanupStack::PushL(self);	// Make the construction safe by using the cleanup stack
    34 	self->ConstructL(); // Complete the 'construction'.
    35 	CleanupStack::Pop(self);
    36 	return self;
    37 	}
    38 
    39 CTestEComInterface2::~CTestEComInterface2()
    40 // Default virtual d'tor
    41 	{
    42 	}
    43 
    44 CTestEComInterface2::CTestEComInterface2()
    45 :	CTestEComInterface()
    46 ,	iDoMethodL1Calls(0)
    47 	{
    48 	}
    49 
    50 void CTestEComInterface2::ConstructL()
    51 // Intended Usage	: Safely complete the initialization of the constructed object	
    52 // Error Condition	: Will leave with an appropriate error code	
    53 // Dependencies	: CBase
    54 // @return			void
    55 // @pre 			CTestEComInterface2 has been constructed
    56 // @post			The CTestEComInterface2 object has been fully instantiated
    57 //
    58 	{
    59 	}
    60 
    61 void CTestEComInterface2::DoMethod1L()
    62 	{
    63 	++iDoMethodL1Calls;
    64 	}
    65 
    66 TInt CTestEComInterface2::DoMethod2L()
    67 	{
    68 	return iDoMethodL1Calls;
    69 	}