bthci/hci2implementations/CommandsEvents/symbian/src/writestoredlinkkeycommand.cpp
branchRCL_3
changeset 16 9f17f914e828
parent 0 29b1cd4cb562
--- a/bthci/hci2implementations/CommandsEvents/symbian/src/writestoredlinkkeycommand.cpp	Tue Apr 27 17:48:21 2010 +0300
+++ b/bthci/hci2implementations/CommandsEvents/symbian/src/writestoredlinkkeycommand.cpp	Tue May 11 17:15:36 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -12,7 +12,7 @@
 //
 // Description:
 // This file was generated automatically from the template commandsource.tmpl
-// on Thu, 29 May 2008 15:17:53 (time stamp)
+// on Wed, 07 Apr 2010 11:59:29 (time stamp)
 // 
 //
 
@@ -38,9 +38,9 @@
 
 EXPORT_C CWriteStoredLinkKeyCommand* CWriteStoredLinkKeyCommand::NewL(TUint8 aNumKeysToWrite, const RArray< TBTDevAddr >& aBDADDR, const RArray< TBTLinkKey >& aLinkKey)
 	{
-	CWriteStoredLinkKeyCommand* self = new (ELeave) CWriteStoredLinkKeyCommand(aNumKeysToWrite, aBDADDR, aLinkKey);
+	CWriteStoredLinkKeyCommand* self = new (ELeave) CWriteStoredLinkKeyCommand(aNumKeysToWrite);
 	CleanupStack::PushL(self);
-	self->CHCICommandBase::BaseConstructL();
+	self->ConstructL(aBDADDR, aLinkKey);
 	CleanupStack::Pop(self);
 	return self;
 	}
@@ -56,11 +56,9 @@
 
 // Constructors
 
-CWriteStoredLinkKeyCommand::CWriteStoredLinkKeyCommand(TUint8 aNumKeysToWrite, const RArray< TBTDevAddr >& aBDADDR, const RArray< TBTLinkKey >& aLinkKey)
+CWriteStoredLinkKeyCommand::CWriteStoredLinkKeyCommand(TUint8 aNumKeysToWrite)
 	: CHCICommandBase(KWriteStoredLinkKeyOpcode)
 	, iNumKeysToWrite(aNumKeysToWrite)
-	, iBDADDR(aBDADDR)
-	, iLinkKey(aLinkKey)
 	{
 	SetExpectsCommandStatusEvent(EFalse);
 	}
@@ -71,6 +69,13 @@
 	SetExpectsCommandStatusEvent(EFalse);
 	}
 
+void CWriteStoredLinkKeyCommand::ConstructL(const RArray< TBTDevAddr >& aBDADDR, const RArray< TBTLinkKey >& aLinkKey)
+	{
+	CHCICommandBase::BaseConstructL();
+	iBDADDR = aBDADDR;
+	iLinkKey = aLinkKey;
+	}
+
 // Destructor
 CWriteStoredLinkKeyCommand::~CWriteStoredLinkKeyCommand()
 	{