bthci/hci2implementations/CommandsEvents/symbian/src/completingeventqueryhelper.cpp
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 //
       
    15 
       
    16 
       
    17 #include <e32base.h>
       
    18 #include <bluetooth/hci/completingeventqueryhelper.h>
       
    19 
       
    20 
       
    21 /**
       
    22 Return a newly constructed CHCICompletingEventQueryHelper for determining Completion Events
       
    23 */
       
    24 CHCICompletingEventQueryHelper* CHCICompletingEventQueryHelper::NewL(TBool aExpectsToComplete)
       
    25 	{
       
    26 	CHCICompletingEventQueryHelper* self = new(ELeave) CHCICompletingEventQueryHelper(aExpectsToComplete);
       
    27 	return(self);
       
    28 	}
       
    29 
       
    30 
       
    31 /**
       
    32 C'tor - initialise iExpectCompletingEvent
       
    33 */
       
    34 CHCICompletingEventQueryHelper::CHCICompletingEventQueryHelper(TBool aExpectsToComplete)
       
    35 	: iExpectCompletingEvent(aExpectsToComplete)
       
    36 	{
       
    37 	}
       
    38 
       
    39 
       
    40 CHCICompletingEventQueryHelper::~CHCICompletingEventQueryHelper()
       
    41 	{
       
    42 	}
       
    43 
       
    44 	
       
    45 /**
       
    46 Virtual from MHCICompletingEventQuery interface, used by HCICmdQController
       
    47 */
       
    48 TBool CHCICompletingEventQueryHelper::MhceqCompletingEventExpected()
       
    49 	{
       
    50 	return iExpectCompletingEvent;
       
    51 	}
       
    52 
       
    53 	
       
    54 /**
       
    55 Setter for iExpectCompletingEvent
       
    56 */
       
    57 void CHCICompletingEventQueryHelper::SetExpectsCompletingEvent(TBool aExpectCompletingEvent)
       
    58 	{
       
    59 	iExpectCompletingEvent = aExpectCompletingEvent;
       
    60 	}
       
    61