bthci/hci2implementations/CommandsEvents/symbian/src/hostnumberofcompletedpacketscommand.cpp
changeset 21 5e5528a288fe
parent 0 29b1cd4cb562
equal deleted inserted replaced
19:4b81101308c6 21:5e5528a288fe
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 // This file was generated automatically from the template commandsource.tmpl
    14 // This file was generated automatically from the template commandsource.tmpl
    15 // on Thu, 29 May 2008 15:17:49 (time stamp)
    15 // on Wed, 07 Apr 2010 11:59:26 (time stamp)
    16 // 
    16 // 
    17 //
    17 //
    18 
    18 
    19 /**
    19 /**
    20  @file
    20  @file
    36 
    36 
    37 // Factory methods
    37 // Factory methods
    38 
    38 
    39 EXPORT_C CHostNumberOfCompletedPacketsCommand* CHostNumberOfCompletedPacketsCommand::NewL(TUint8 aNumberOfHandles, const RArray< THCIConnectionHandle >& aConnectionHandle, const RArray< THCINumOfCompletedPackets >& aHostNumOfCompletedPackets)
    39 EXPORT_C CHostNumberOfCompletedPacketsCommand* CHostNumberOfCompletedPacketsCommand::NewL(TUint8 aNumberOfHandles, const RArray< THCIConnectionHandle >& aConnectionHandle, const RArray< THCINumOfCompletedPackets >& aHostNumOfCompletedPackets)
    40 	{
    40 	{
    41 	CHostNumberOfCompletedPacketsCommand* self = new (ELeave) CHostNumberOfCompletedPacketsCommand(aNumberOfHandles, aConnectionHandle, aHostNumOfCompletedPackets);
    41 	CHostNumberOfCompletedPacketsCommand* self = new (ELeave) CHostNumberOfCompletedPacketsCommand(aNumberOfHandles);
    42 	CleanupStack::PushL(self);
    42 	CleanupStack::PushL(self);
    43 	self->CHCICommandBase::BaseConstructL();
    43 	self->ConstructL(aConnectionHandle, aHostNumOfCompletedPackets);
    44 	CleanupStack::Pop(self);
    44 	CleanupStack::Pop(self);
    45 	return self;
    45 	return self;
    46 	}
    46 	}
    47 
    47 
    48 EXPORT_C CHostNumberOfCompletedPacketsCommand* CHostNumberOfCompletedPacketsCommand::NewL()
    48 EXPORT_C CHostNumberOfCompletedPacketsCommand* CHostNumberOfCompletedPacketsCommand::NewL()
    54 	return self;
    54 	return self;
    55 	}
    55 	}
    56 
    56 
    57 // Constructors
    57 // Constructors
    58 
    58 
    59 CHostNumberOfCompletedPacketsCommand::CHostNumberOfCompletedPacketsCommand(TUint8 aNumberOfHandles, const RArray< THCIConnectionHandle >& aConnectionHandle, const RArray< THCINumOfCompletedPackets >& aHostNumOfCompletedPackets)
    59 CHostNumberOfCompletedPacketsCommand::CHostNumberOfCompletedPacketsCommand(TUint8 aNumberOfHandles)
    60 	: CHCICommandBase(KHostNumberOfCompletedPacketsOpcode)
    60 	: CHCICommandBase(KHostNumberOfCompletedPacketsOpcode)
    61 	, iNumberOfHandles(aNumberOfHandles)
    61 	, iNumberOfHandles(aNumberOfHandles)
    62 	, iConnectionHandle(aConnectionHandle)
       
    63 	, iHostNumOfCompletedPackets(aHostNumOfCompletedPackets)
       
    64 	{
    62 	{
    65 	SetCreditsConsumed(0);
    63 	SetCreditsConsumed(0);
    66 	SetExpectsCommandStatusEvent(EFalse);
    64 	SetExpectsCommandStatusEvent(EFalse);
    67 	SetExpectsCommandCompleteEvent(EFalse);
    65 	SetExpectsCommandCompleteEvent(EFalse);
    68 	}
    66 	}
    71 	: CHCICommandBase(KHostNumberOfCompletedPacketsOpcode)
    69 	: CHCICommandBase(KHostNumberOfCompletedPacketsOpcode)
    72 	{
    70 	{
    73 	SetCreditsConsumed(0);
    71 	SetCreditsConsumed(0);
    74 	SetExpectsCommandStatusEvent(EFalse);
    72 	SetExpectsCommandStatusEvent(EFalse);
    75 	SetExpectsCommandCompleteEvent(EFalse);
    73 	SetExpectsCommandCompleteEvent(EFalse);
       
    74 	}
       
    75 
       
    76 void CHostNumberOfCompletedPacketsCommand::ConstructL(const RArray< THCIConnectionHandle >& aConnectionHandle, const RArray< THCINumOfCompletedPackets >& aHostNumOfCompletedPackets)
       
    77 	{
       
    78 	CHCICommandBase::BaseConstructL();
       
    79 	iConnectionHandle = aConnectionHandle;
       
    80 	iHostNumOfCompletedPackets = aHostNumOfCompletedPackets;
    76 	}
    81 	}
    77 
    82 
    78 // Destructor
    83 // Destructor
    79 CHostNumberOfCompletedPacketsCommand::~CHostNumberOfCompletedPacketsCommand()
    84 CHostNumberOfCompletedPacketsCommand::~CHostNumberOfCompletedPacketsCommand()
    80 	{
    85 	{