bluetoothengine/btmac/inc/btmonocmdhandler/btmcdummy.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 00:20:42 +0200
changeset 2 0b192a3a05a4
parent 0 f63038272f30
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
* Copyright (c) 2007-2008 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: Dummy implementation of MCall  
*
*/

#ifndef BTMCDUMMY_H_
#define BTMCDUMMY_H_

#include <mcall.h>

NONSHARABLE_CLASS(TBtmcDummyCall) : public MCall
{
public:
    
     TBtmcDummyCall() {};    
    ~TBtmcDummyCall() {};
    
    TInt CallIndex() const { return 0; };     

    /**
     * Call type getter
     *
     * @since S60 v5.1
     * @return the call type
     */    
    CCPCall::TCallType CallType() const {return CCPCall::ECallTypeCSVoice; }; 


    /**
     * Call state getter
     *
     * @since S60 v5.1     
     * @return the call state
     */    
    CCPCall::TCallState CallState() const { return CCPCall::EStateIdle; };
    /**
     * Getter for the service ID of the call.
     *
     * @since S60 v5.1    
     * @return the service ID of the call
     */
    TUint32 ServiceId() const { return 0; };

    /**
     * Call direction getter
     *
     * @since S60 v5.1     
     * @return the call direction
     */
    CCPCall::TCallDirection CallDirection() const  { return CCPCall::EDirectionUnknown; };

    /**
     * Returns information whether call is an emergency call.
     * @since S60 v5.2
     * @param None.
     * @return TBool ETrue call is emergency call else EFalse.
     */
    TBool IsEmergency() const { return EFalse; };

};


#endif /* BTMCDUMMY_H_ */