bluetoothengine/btmac/inc/btmonocmdhandler/btmccallinghandler.h
changeset 0 f63038272f30
child 1 6a1fe72036e3
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Calling command handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_BTMCCALLINGHANDLER_H
       
    20 #define C_BTMCCALLINGHANDLER_H
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <e32property.h>
       
    26 #include "btmcactive.h"
       
    27 
       
    28 // MACROS
       
    29 
       
    30 // DATA TYPES
       
    31     
       
    32 // FUNCTION PROTOTYPES
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CBtmcProtocol;
       
    36 class CATCommand;
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41 *  CBtmcCallingHandler listens call state events (from RMobileCall) 
       
    42 *  and passes them to MBtmcPhoneStatusObserver
       
    43 */
       
    44 NONSHARABLE_CLASS(CBtmcCallingHandler) : public CBase, public MBtmcActiveObserver
       
    45     {
       
    46 public:
       
    47     
       
    48     /**
       
    49     * Two-phased constructor.
       
    50     */
       
    51     static CBtmcCallingHandler* NewL(CBtmcProtocol& aProtocol);
       
    52 
       
    53     /**
       
    54     * Destructor.
       
    55     */
       
    56     ~CBtmcCallingHandler();
       
    57     
       
    58     void HandleCallingCmdL(const CATCommand& aCmd);   
       
    59     
       
    60     TBool ActiveCmdHandling() const;
       
    61     
       
    62     /**
       
    63      * Tells if AT+CHLD command handling is in progress
       
    64      */
       
    65     TBool ActiveChldHandling() const;
       
    66     
       
    67 private:  // From MBtmcActiveObserver
       
    68 
       
    69     void RequestCompletedL(CBtmcActive& aActive, TInt aErr);
       
    70     
       
    71     void CancelRequest(TInt aServiceId);
       
    72         
       
    73 private:
       
    74 
       
    75     CBtmcCallingHandler(CBtmcProtocol& aProtocol);
       
    76 
       
    77     void ConstructL();
       
    78 
       
    79 private:
       
    80     CBtmcProtocol& iProtocol; // unowned
       
    81     
       
    82     CBtmcActive* iActive;
       
    83     
       
    84     RProperty iCmdProperty;
       
    85 
       
    86     TBool iBusy;
       
    87     
       
    88     TInt iCmdId; 
       
    89 };
       
    90     
       
    91 #endif  // C_BTMCCALLINGHANDLER_H
       
    92 
       
    93 // End of File