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 "TestEComInterface1.h"
22 CTestEComInterface1* CTestEComInterface1::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 CTestEComInterface1* a pointer to the fully instantiated CTestEComInterface1 object
29 // @post The object has been fully instantiated
32 CTestEComInterface1* self=new(ELeave) CTestEComInterface1(); // 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 CTestEComInterface1::~CTestEComInterface1()
40 // Default virtual d'tor
44 CTestEComInterface1::CTestEComInterface1()
45 : CTestEComInterface()
50 void CTestEComInterface1::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 CTestEComInterface1 has been constructed
56 // @post The CTestEComInterface1 object has been fully instantiated
61 void CTestEComInterface1::DoMethod1L()
66 TInt CTestEComInterface1::DoMethod2L()
68 return iDoMethodL1Calls;