bluetoothengine/btsac/inc/btsacStateStreaming.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 Streaming declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_BTSACSTREAMING_H
       
    20 #define C_BTSACSTREAMING_H
       
    21 
       
    22 #include "btsacState.h"
       
    23 
       
    24 /**
       
    25  * The state Configured
       
    26  *
       
    27  *
       
    28  *  @since S60 v3.1 
       
    29  */
       
    30 class CBtsacStreaming : public CBtsacState
       
    31     {
       
    32     
       
    33 public:
       
    34 
       
    35     static CBtsacStreaming* NewL(CBTSAController& aParent,TAudioOpenedBy aAudioOpenedBy, TBool aStartCollision);
       
    36     
       
    37     virtual ~CBtsacStreaming();
       
    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      * disconnect the connected accessory
       
    51      *
       
    52      * @since S60 v3.1
       
    53      * @param aStatus On completion, will contain an error code
       
    54      */
       
    55     void DisconnectL();
       
    56     
       
    57     /** 
       
    58      * From CBtsacState
       
    59      * Open audio link to BT accessory
       
    60      *
       
    61      * @since S60 v3.1
       
    62      * @param aAddr the BD address of the accessory
       
    63      * @param aStatus On completion, will contain an error code
       
    64      */
       
    65 	void OpenAudioLinkL(const TBTDevAddr& aAddr);
       
    66 	
       
    67 	/** 
       
    68 	 * From CBtsacState
       
    69      * Close the audio link to the connected accessory
       
    70      *
       
    71      * @since S60 v3.1
       
    72      * @param aAddr the BD address of the accessory
       
    73      * @param aStatus On completion, will contain an error code
       
    74      */
       
    75     void CloseAudioLinkL(const TBTDevAddr& aAddr);
       
    76 	
       
    77 	/** 
       
    78 	 * From CBtsacState
       
    79      * Cancels close the audio link request
       
    80      *
       
    81      * @since S60 v3.1
       
    82      * @param aAddr the BD address of the accessory
       
    83      * @param aStatus On completion, will contain an error code
       
    84      */
       
    85 	void CancelCloseAudioLink(const TBTDevAddr& aAddr);
       
    86      
       
    87     // From class MInternalGavdpUser
       
    88     void GAVDP_AbortIndication(TSEID aSEID);
       
    89     TInt GAVDP_SuspendIndication(TSEID aSEID);
       
    90     void GAVDP_ReleaseIndication(TSEID aSEID);
       
    91 	void GAVDP_SuspendStreamsConfirm();
       
    92  	
       
    93  	void StartRecording();
       
    94  	void CancelActionL(TInt aError, TBTSACGavdpResetReason aGavdpReset);
       
    95  	void HandleGavdpErrorL(TInt aError);
       
    96 
       
    97 private:    
       
    98 
       
    99     CBtsacStreaming(CBTSAController& aParent, TAudioOpenedBy aAudioOpenedBy, TBool aStartCollision);
       
   100 
       
   101 private:
       
   102 
       
   103 	TBool iSuspending;
       
   104 	TAudioOpenedBy iAudioOpenedBy;
       
   105 	TBool iStartCollision;
       
   106     };
       
   107 
       
   108 #endif      // C_BTSACSTREAMING_H
       
   109