phoneclientserver/phoneclient/Inc/CommandHandler/CPhCltComHandImplementation.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:45:17 +0300
branchRCL_3
changeset 19 7d48bed6ce0c
parent 0 ff3b6d0fd310
child 20 987c9837762f
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2003-2005 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:  Implementation of the PhCltExtension interface.
*
*/



#ifndef CPHCLTCOMHANDLIMPLEMENTATION_H
#define CPHCLTCOMHANDLIMPLEMENTATION_H


//  INCLUDES

#include    "rphcltcommandhandler.h" 
#include    "rphcltcommandhandlernotify.h" 
#include    "rphcltserver.h" 


// CLASS DECLARATION

/**
*  Implementation of the CPhCltCommandHandler interface.
*
*
*  @lib PhoneClient.lib
*  @since 3.2
*/
NONSHARABLE_CLASS( CPhCltCommandHandlerImplementation )
:   public CPhCltCommandHandler
    {
    public:  // Constructors and destructor
        
        /**
        * Two-phased constructor.
        */
        static CPhCltCommandHandlerImplementation* NewL();
        

        /**
        * Destructor.
        */
        virtual ~CPhCltCommandHandlerImplementation();


    public: // Functions from base classes

        /**
        * @see CPhCltCommandHandler.
        */
        void Atd(
            TRequestStatus& aStatus, 
            const TPhCltTelephoneNumber& aTelephoneNumber );
            

        /**
        * @see CPhCltCommandHandler.
        */
        void Ata(
            TRequestStatus& aStatus );


        /**
        * @see CPhCltCommandHandler.
        */
        void Chld(
            TRequestStatus& aStatus, 
            const TPhCltChldCommand aChldCommand,
            const TUint aCallNumber );


        /**
        * @see CPhCltCommandHandler.
        */
        void Chup(
            TRequestStatus& aStatus );


        /**
        * @see CPhCltCommandHandler.
        */
        void Vts(
            TRequestStatus& aStatus, 
            const TPhCltDtmfTone aDtmfTone,
            const TPhCltDtmfAction aAction );

        /**
        * @see CPhCltCommandHandler.
        */
        void CancelAsyncRequest( 
            const TPhCltComHandCommand aReqToCancel );

        /**
        * @see CPhCltCommandHandler.
        */
        void MuteMicrophone( TRequestStatus& aStatus, const TBool aMute );
        
        /**
        * @see CPhCltCommandHandler.
        */
        void MuteRingingTone( TRequestStatus& aStatus );

    private:

        /**
        * C++ constructor.
        */
        CPhCltCommandHandlerImplementation();


        /**
        * By default Symbian 2nd phase constructor is private.
        */
        void ConstructL();


    private:    // Data

        // The command handler to perform requests.
        RPhCltCommandHandler    iCommandHandler;
        
        //RPhCltServer class instance creates phonesession
        RPhCltServer iServer;

    };


#endif      // CPHCLTCOMHANDLIMPLEMENTATION_H

  
// End of File