bluetoothengine/btaudioman/inc/basrvaccstatedisconnect.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 Disconnect state declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_BTASRVACCSTATEDISCONNECT_H
       
    20 #define C_BTASRVACCSTATEDISCONNECT_H
       
    21 
       
    22 #include "basrvaccstate.h"
       
    23 
       
    24 class CBasrvAccStateDisconnect : public CBasrvAccState
       
    25     {
       
    26 public:
       
    27 
       
    28     static CBasrvAccStateDisconnect* NewL(CBasrvAcc& aParent, TInt aConnErr = KErrNone);
       
    29 
       
    30     virtual ~CBasrvAccStateDisconnect();
       
    31     
       
    32     /**
       
    33      * Entry of this state.
       
    34      *
       
    35      * @since S60 v3.1
       
    36      */
       
    37     void EnterL();
       
    38     
       
    39     /**
       
    40      * Returns the next state if EnterL leaves.
       
    41      *
       
    42      * @since S60 v3.1
       
    43      * @return the next state
       
    44      */
       
    45     CBasrvAccState* ErrorOnEntry(TInt aReason);
       
    46 
       
    47     TBTEngConnectionStatus ConnectionStatus() const;
       
    48 
       
    49 protected:
       
    50     // From MBasrvActiveObserver
       
    51     
       
    52     /**
       
    53      * Handles the request completion event.
       
    54      *
       
    55      * @since S60 v3.1
       
    56      * @param aActive the Active Object to which the request is assigned to.
       
    57      */
       
    58     virtual void RequestCompletedL(CBasrvActive& aActive);
       
    59     
       
    60     /**
       
    61      * Handles the cancellation of an outstanding request.
       
    62      *
       
    63      * @since S60 v3.1
       
    64      * @param aActive the Active Object to which the request is assigned to.
       
    65      */
       
    66     virtual void CancelRequest(CBasrvActive& aActive);
       
    67 
       
    68 protected:
       
    69 
       
    70     /**
       
    71     * Default constructor
       
    72     */
       
    73     CBasrvAccStateDisconnect(CBasrvAcc& aParent, TInt aConnErr);
       
    74 
       
    75     void DoDisconnectL();
       
    76     
       
    77 protected:
       
    78     CBasrvActive* iActive;
       
    79     TInt iDiscErr;
       
    80     TInt iConnErr;
       
    81     TInt iProfiles;
       
    82     };
       
    83 
       
    84 #endif      // C_BTASRVACCSTATEDISCONNECT_H
       
    85 
       
    86 // End of File