bthci/bthci2/CommandsEvents/generator/commandsource.tmpl
changeset 0 29b1cd4cb562
child 4 28479eeba3fb
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 the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-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 commandsource.tmpl
       
    15 // on $GENERATE_TIME_STAMP
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21  @internalComponent
       
    22 */
       
    23 
       
    24 #include <bluetooth/hci/$FILENAME.h>
       
    25 #include <bluetooth/hci/event.h>
       
    26 #include <bluetooth/hci/commandcompleteevent.h>
       
    27 #include <bluetooth/hci/hciframe.h>
       
    28 #include <bluetooth/hci/hciopcodes.h>
       
    29 $EVENT_MATCH_INCLUDES
       
    30 
       
    31 #ifdef __FLOG_ACTIVE
       
    32 _LIT8(KLogComponent, LOG_COMPONENT_COMMANDSEVENTS_SYMBIAN);
       
    33 #endif
       
    34 
       
    35 $PRAGMA_HW_VOICE_SETTING_ADVICE
       
    36 
       
    37 // Factory methods
       
    38 
       
    39 $NEWL_IMPLEMENTATIONS
       
    40 
       
    41 // Constructors
       
    42 
       
    43 $CONSTRUCTOR_IMPLEMENTATIONS
       
    44 
       
    45 // Destructor
       
    46 $CLASSNAME::~$CLASSNAME()
       
    47 	{
       
    48 	$DESTRUCTOR_IMPLEMENTATION
       
    49 	}	
       
    50 
       
    51 $EVENT_MATCH_IMPLEMENTATIONS
       
    52 
       
    53 // Override of pure virtual from CHCICommandBase. This method embodies the knowledge
       
    54 // of how to format the specifics of this command into the HCTL command frame.
       
    55 void $CLASSNAME::Format($COMMANDFRAME) const
       
    56 	{
       
    57 	$WRITE_FRAME
       
    58 	}
       
    59 
       
    60 // Assign new values to the parameters of this command
       
    61 EXPORT_C void $CLASSNAME::Reset($PARAMETERS)
       
    62 	{
       
    63 	$MEMBER_ASSIGNMENT
       
    64 	}
       
    65 
       
    66 // Accessor methods for the parameters of the command
       
    67 
       
    68 $ACCESSOR_IMPLEMENTATIONS
       
    69 
       
    70 // Extension function.  Use this to retrieve any extension interfaces from $CLASSNAME
       
    71 // or any class from which it derives.
       
    72 /*virtual*/ TInt $CLASSNAME::Extension_(TUint aExtensionId, TAny*& aInterface, TAny* aData)
       
    73 	{
       
    74 	// To add an additional interface implementation specific for this class check the 
       
    75 	// provided ID and return an appropriate interface.
       
    76 
       
    77 	// If a specific interface implementation is not provided - forward the call to the base class.
       
    78 	return CHCICommandBase::Extension_(aExtensionId, aInterface, aData);
       
    79 	}
       
    80