testdev/ite/test/com.nokia.testfw.cmdtool.test/test.resource/unittest/several.mmp.in.one.path/SysLibs/ECom/InterfaceImplementation/CImplementationClassTwo.cpp
changeset 1 96906a986c3b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testdev/ite/test/com.nokia.testfw.cmdtool.test/test.resource/unittest/several.mmp.in.one.path/SysLibs/ECom/InterfaceImplementation/CImplementationClassTwo.cpp	Tue Mar 30 14:39:29 2010 +0800
@@ -0,0 +1,48 @@
+//
+// CImplementationClassTwo.cpp
+// Copyright © 1997-2001 Symbian Ltd. All rights reserved.
+//
+
+#include "CImplementationClassTwo.h"
+
+// Construction and destruction functions
+
+CImplementationClassTwo* CImplementationClassTwo::NewL(TAny* aParams)
+	{
+	CImplementationClassTwo* self=new(ELeave) CImplementationClassTwo(aParams);  
+	CleanupStack::PushL(self);
+	self->ConstructL(); 
+	CleanupStack::Pop();
+	return self;
+	}
+
+CImplementationClassTwo::~CImplementationClassTwo()
+	{
+	delete iDescriptor;
+	}
+
+CImplementationClassTwo::CImplementationClassTwo(TAny* aInitParams)
+:  iInitParams((CExampleInterface::TExampleInterfaceInitParams*)aInitParams)
+	{
+	// See ConstructL() for initialisation completion.
+	}
+
+void CImplementationClassTwo::ConstructL()
+// Safely complete the initialization of the constructed object	
+	{
+	// Set up the data to pass back
+	_LIT(KDescriptor, "Using Implementation Two\n");
+	iDescriptor = KDescriptor().AllocL();
+	}
+
+
+// Implementation of CExampleInterface
+
+void CImplementationClassTwo::DoMethodL(TDes& aString)
+	{
+	aString = *iDescriptor;
+
+	if (iInitParams)
+		iInitParams->integer=2;
+	}
+