First public contribution.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
20 #include "TestEComInterface2.h"
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
27 // @return CTestEComInterface2* a pointer to the fully instantiated CTestEComInterface2 object
29 // @post The object has been fully instantiated
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);
39 CTestEComInterface2::~CTestEComInterface2()
40 // Default virtual d'tor
44 CTestEComInterface2::CTestEComInterface2()
45 : CTestEComInterface()
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
55 // @pre CTestEComInterface2 has been constructed
56 // @post The CTestEComInterface2 object has been fully instantiated
61 void CTestEComInterface2::DoMethod1L()
66 TInt CTestEComInterface2::DoMethod2L()
68 return iDoMethodL1Calls;