bluetoothengine/btaudioman/inc/basrvaccstatedetach.h
changeset 0 f63038272f30
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 2005-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:  The Query state declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_BTASRVACCSTATEDETACH_H
       
    20 #define C_BTASRVACCSTATEDETACH_H
       
    21 
       
    22 #include "basrvaccstate.h"
       
    23 class CBasrvAccfwIf;
       
    24 
       
    25 class CBasrvAccStateDetach : public CBasrvAccState
       
    26     {
       
    27 public:
       
    28 
       
    29     static CBasrvAccStateDetach* NewL(CBasrvAcc& aParent);
       
    30 
       
    31     virtual ~CBasrvAccStateDetach();
       
    32     
       
    33     /**
       
    34      * Entry of this state.
       
    35      *
       
    36      * @since S60 v3.1
       
    37      */
       
    38     void EnterL();
       
    39     
       
    40     /**
       
    41      * Returns the next state if EnterL leaves.
       
    42      *
       
    43      * @since S60 v3.1
       
    44      * @return the next state
       
    45      */
       
    46     CBasrvAccState* ErrorOnEntry(TInt aReason);
       
    47     
       
    48     TBTEngConnectionStatus ConnectionStatus() const;
       
    49     
       
    50     /**
       
    51     * Called when the connection is disconnected from remote side or there
       
    52     * is error on reading/writing data packet.
       
    53     * @param aErr the error code of event
       
    54     */
       
    55     void AccessoryDisconnectedL(TProfiles aProfile);
       
    56 
       
    57     /**
       
    58     * Called when an audio open request comes from Acc FW.
       
    59     */
       
    60     void OpenAudioL(TAccAudioType aType);
       
    61 
       
    62     /**
       
    63     * Called when an audio close request comes from Acc FW.
       
    64     */
       
    65     void CloseAudioL(TAccAudioType aType);
       
    66     
       
    67 protected:
       
    68     // From MBasrvActiveObserver
       
    69     
       
    70     /**
       
    71      * Handles the request completion event.
       
    72      *
       
    73      * @since S60 v3.1
       
    74      * @param aActive the Active Object to which the request is assigned to.
       
    75      */
       
    76     virtual void RequestCompletedL(CBasrvActive& aActive);
       
    77     
       
    78     /**
       
    79      * Handles the cancellation of an outstanding request.
       
    80      *
       
    81      * @since S60 v3.1
       
    82      * @param aActive the Active Object to which the request is assigned to.
       
    83      */
       
    84     virtual void CancelRequest(CBasrvActive& aActive);
       
    85 
       
    86 protected:
       
    87 
       
    88     /**
       
    89     * Default constructor
       
    90     */
       
    91     CBasrvAccStateDetach(CBasrvAcc& aParent);
       
    92 
       
    93 protected:
       
    94     CBasrvActive* iActive;
       
    95     CBasrvAccfwIf* iAccfw;
       
    96     };
       
    97 
       
    98 #endif      // C_BTASRVACCSTATEDETACH_H
       
    99 
       
   100 // End of File