bluetoothengine/btsac/inc/btsacStateConnecting.h
changeset 0 f63038272f30
child 1 6a1fe72036e3
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  state Listening declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_BTSACCONNECTING_H
       
    20 #define C_BTSACCONNECTING_H
       
    21 
       
    22 #include "btsacState.h"
       
    23 
       
    24 /**
       
    25  * The state Idle
       
    26  *
       
    27  *
       
    28  *  @since S60 v3.1 
       
    29  */
       
    30 class CBtsacConnecting : public CBtsacState
       
    31     {
       
    32     
       
    33 public:
       
    34 
       
    35     static CBtsacConnecting* NewL(CBTSAController& aParent, TBTConnType aConnType);
       
    36     
       
    37     virtual ~CBtsacConnecting();
       
    38     
       
    39 private:
       
    40     
       
    41     // From base class CBtsacState
       
    42     
       
    43     /**
       
    44      * From CBtsacState
       
    45      * Entry of this state.
       
    46      */
       
    47     void EnterL();
       
    48     
       
    49     /** 
       
    50      * From CBtsacState
       
    51      * Cancels connect request to BT accessory
       
    52      *
       
    53      * @since S60 v3.1
       
    54      * @param aAddr the BD address of the accessory
       
    55      * @param aStatus On completion, will contain an error code
       
    56      */    
       
    57     void CancelConnectL();
       
    58 	
       
    59 	/** 
       
    60      * From CBtsacState
       
    61      * Cancels open audio request
       
    62      *
       
    63      * @since S60 v3.1
       
    64      * @param aAddr the BD address of the accessory
       
    65      * @param aStatus On completion, will contain an error code
       
    66      */ 
       
    67 	void CancelOpenAudioL(const TBTDevAddr& aAddr);
       
    68      
       
    69     // From base class MInternalGavdpUser
       
    70     
       
    71     void GAVDP_ConnectConfirm(const TBTDevAddr& aDeviceAddr);   
       
    72         
       
    73     void CancelActionL(TInt aError, TBTSACGavdpResetReason aGavdpReset);
       
    74     void HandleGavdpErrorL(TInt aError);
       
    75        
       
    76 
       
    77 private:
       
    78     CBtsacConnecting(CBTSAController& aParent, TBTConnType aConnType);
       
    79 
       
    80 private:
       
    81 	TBTConnType iConnType; // Connection type: incoming/outgoing
       
    82     };
       
    83 
       
    84 #endif      // C_BTSACCONNECTING_H
       
    85