bthci/bthci2/CommandsEvents/interface/hostbuffersizecommand.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This file was generated automatically from the template commandheader.tmpl
       
    15 // on Wed, 25 Jul 2007 17:00:41 (time stamp)
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21  @publishedPartner
       
    22  @released
       
    23 */
       
    24 
       
    25 #ifndef HOSTBUFFERSIZECOMMAND_H
       
    26 #define HOSTBUFFERSIZECOMMAND_H
       
    27 
       
    28 #include <bluetooth/hci/command.h>
       
    29 #include <bluetooth/hci/hcitypes.h> // in case the generated class uses Bluetooth types
       
    30 
       
    31 /**
       
    32 This class represents the HostBufferSize HCI Command
       
    33 */
       
    34 
       
    35 class CHostBufferSizeCommand : public CHCICommandBase
       
    36 	{
       
    37 public:
       
    38 	// Construction
       
    39 	IMPORT_C static CHostBufferSizeCommand* NewL(TUint16 aHostACLDataPacketLength, TUint8 aHostSynchronousDataPacketLength, TUint16 aHostTotalNumACLDataPackets, TUint16 aHostTotalNumSynchronousDataPackets);
       
    40 	IMPORT_C static CHostBufferSizeCommand* NewL();
       
    41 	// Destructor
       
    42 	~CHostBufferSizeCommand();
       
    43 
       
    44 	
       
    45 
       
    46 	// Assign new values to the parameters of this command
       
    47 	IMPORT_C void Reset(TUint16 aHostACLDataPacketLength, TUint8 aHostSynchronousDataPacketLength, TUint16 aHostTotalNumACLDataPackets, TUint16 aHostTotalNumSynchronousDataPackets);
       
    48 
       
    49 	// Accessor methods for the parameters of the command
       
    50 	IMPORT_C TUint16 HostACLDataPacketLength() const;
       
    51 	IMPORT_C TUint8 HostSynchronousDataPacketLength() const;
       
    52 	IMPORT_C TUint16 HostTotalNumACLDataPackets() const;
       
    53 	IMPORT_C TUint16 HostTotalNumSynchronousDataPackets() const;
       
    54 	
       
    55 	// Extension function
       
    56 	virtual TInt Extension_(TUint aExtensionId, TAny*& aInterface, TAny* aData);
       
    57 
       
    58 private:
       
    59 	CHostBufferSizeCommand(TUint16 aHostACLDataPacketLength, TUint8 aHostSynchronousDataPacketLength, TUint16 aHostTotalNumACLDataPackets, TUint16 aHostTotalNumSynchronousDataPackets);
       
    60 	CHostBufferSizeCommand();
       
    61 	
       
    62 	// From CHCICommandBase - knows how to format the parameters of this specific command
       
    63 	// into the HCTL frame
       
    64 	virtual void Format(CHctlCommandFrame& aCommandFrame) const;
       
    65   
       
    66 private:
       
    67 	TUint16 iHostACLDataPacketLength;
       
    68 	TUint8 iHostSynchronousDataPacketLength;
       
    69 	TUint16 iHostTotalNumACLDataPackets;
       
    70 	TUint16 iHostTotalNumSynchronousDataPackets;
       
    71 	
       
    72 	};
       
    73 
       
    74 #endif // HOSTBUFFERSIZECOMMAND_H