phoneapp/phoneuiview/inc/mphoneviewcommandhandle.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 21 Jun 2010 15:39:45 +0300
branchRCL_3
changeset 44 3c221667e687
parent 0 5f000ab63145
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 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:  View command handle
*
*/


#ifndef MPHONEVIEWCOMMANDHANDLE_H
#define MPHONEVIEWCOMMANDHANDLE_H

//  INCLUDES
#include <e32std.h>
#include "phoneviewcommanddefinitions.h"

// DATA TYPES

// FORWARD DECLARATION
class TPhoneCommandParam;

// CLASS DECLARATION
/**
*  Interface class for executing UI commands
*
*/
class MPhoneViewCommandHandle
    {
    public:  // Constructors and destructor
        /**
        * Destructor.
        */
        virtual ~MPhoneViewCommandHandle(){};

    public: // New functions
        
        /**
        * Execute Command with given Command Id
        * @param aCmdId Command Id
        * @return None
        */
        virtual void ExecuteCommandL( 
            TPhoneViewCommandId aCmdId ) = 0;

        /**
        * Execute Command with given Command Id  and Call Id
        * @param aCmdId Command Id
        * @param aCallId Call Id
        * @return None
        */
        virtual void ExecuteCommandL( 
            TPhoneViewCommandId aCmdId, 
            TInt aCallId ) = 0;

         /**
        * Execute Command with given command id, call id and command parameter.
        * @param aCmdId Command Id
        * @param aCommandParam Command parameter
        * @return None
        */
        virtual void ExecuteCommandL( 
            TPhoneViewCommandId aCmdId, 
            TPhoneCommandParam* aCommandParam ) = 0;

         /**
        * Execute Command with given command id, call id and command parameter.
        * @param aCmdId Command Id
        * @param aCallId Call Id
        * @param aCommandParam Command parameter
        * @return None
        */
        virtual void ExecuteCommandL( 
            TPhoneViewCommandId aCmdId, 
            TInt aCallId, 
            TPhoneCommandParam* aCommandParam ) = 0;

        /**
        * Execute Command with given command id, call id and message.
        * @param aCmdId Command Id
        * @param aCallId Call Id
        * @param aMessage Command message
        */
        virtual void ExecuteCommandL( 
            TPhoneViewCommandId aCmdId, 
            TInt aCallId, 
            TDesC& aMessage ) = 0;

        /**
        * Handle Command with given Command Id
        * @param aCmdId Command Id
        * @return TPhoneViewResponseId
        */
        virtual TPhoneViewResponseId HandleCommandL( 
            TPhoneViewCommandId aCmdId ) = 0;

        /**
        * Handle Command with given command id and command parameter.
        * @param aCmdId Command Id
        * @param aCommandParam Command parameter
        * @return TPhoneViewResponseId
        */
        virtual TPhoneViewResponseId HandleCommandL( 
            TPhoneViewCommandId aCmdId, 
            TPhoneCommandParam* aCommandParam ) = 0;
            
        /**
        * Execute Command with given Command Id
        * @param aCmdId Command Id
        * @return None
        */
        virtual void ExecuteCommand( 
            TPhoneViewCommandId aCmdId ) = 0;
            
        /**
        * Execute Command with given command id and command parameter.
        * @param aCmdId Command Id
        * @param aCommandParam Command parameter
        * @return None
        */
        virtual void ExecuteCommand( 
            TPhoneViewCommandId aCmdId, 
            TPhoneCommandParam* aCommandParam ) = 0;                        
       
        /**
        * Execute Command with given Command Id
        */     
        virtual const TDesC& FetchContent() = 0;          

    };

#endif // MPHONEVIEWCOMMANDHANDLE_H   
            
// End of File