diff -r 000000000000 -r f63038272f30 bluetoothengine/btmac/inc/btmonocmdhandler/btmccallinghandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetoothengine/btmac/inc/btmonocmdhandler/btmccallinghandler.h Mon Jan 18 20:28:57 2010 +0200 @@ -0,0 +1,93 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Calling command handler +* +*/ + + +#ifndef C_BTMCCALLINGHANDLER_H +#define C_BTMCCALLINGHANDLER_H + + +// INCLUDES +#include +#include +#include "btmcactive.h" + +// MACROS + +// DATA TYPES + +// FUNCTION PROTOTYPES + +// FORWARD DECLARATIONS +class CBtmcProtocol; +class CATCommand; + +// CLASS DECLARATION + +/** +* CBtmcCallingHandler listens call state events (from RMobileCall) +* and passes them to MBtmcPhoneStatusObserver +*/ +NONSHARABLE_CLASS(CBtmcCallingHandler) : public CBase, public MBtmcActiveObserver + { +public: + + /** + * Two-phased constructor. + */ + static CBtmcCallingHandler* NewL(CBtmcProtocol& aProtocol); + + /** + * Destructor. + */ + ~CBtmcCallingHandler(); + + void HandleCallingCmdL(const CATCommand& aCmd); + + TBool ActiveCmdHandling() const; + + /** + * Tells if AT+CHLD command handling is in progress + */ + TBool ActiveChldHandling() const; + +private: // From MBtmcActiveObserver + + void RequestCompletedL(CBtmcActive& aActive, TInt aErr); + + void CancelRequest(TInt aServiceId); + +private: + + CBtmcCallingHandler(CBtmcProtocol& aProtocol); + + void ConstructL(); + +private: + CBtmcProtocol& iProtocol; // unowned + + CBtmcActive* iActive; + + RProperty iCmdProperty; + + TBool iBusy; + + TInt iCmdId; +}; + +#endif // C_BTMCCALLINGHANDLER_H + +// End of File