landmarksui/uicontrols/inc/clmkcallcmd.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2002-2006 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:    LandmarksUi Content File -    Description : This file contains class which implements methods for
       
    15 *                interfacing with Call UI component for calling phonenumber
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef CLMKCALLCMD_H
       
    26 #define CLMKCALLCMD_H
       
    27 
       
    28 //  INCLUDES
       
    29 #include <AiwDialDataTypes.h>
       
    30 #include <AiwCommon.h>
       
    31 #include <MPhCltEmergencyCallObserver.h>
       
    32 
       
    33 class CAiwServiceHandler;
       
    34 class CAiwGenericParamList;
       
    35 class CPhCltEmergencyCall;
       
    36 // CLASS DECLARATION
       
    37 /**
       
    38 * CLmkCallCmd class
       
    39 * Implements the methods which interact with Telephony subsystem
       
    40 * (CallUI) through AIW FW.
       
    41 */
       
    42 class CLmkCallCmd:public CBase, public MPhCltEmergencyCallObserver
       
    43 	{
       
    44 	public:  // Constructors and destructor
       
    45 		/**
       
    46 		* Two-phased constructor.
       
    47 		* @return
       
    48 		*/
       
    49 		IMPORT_C static CLmkCallCmd* NewL( );
       
    50 
       
    51 		/**
       
    52 		* Destructor.
       
    53 		*/
       
    54 		virtual ~CLmkCallCmd();
       
    55 
       
    56 	private:  // Constructors and destructor
       
    57 		/**
       
    58 		* Default Constructor
       
    59 		*/
       
    60 		CLmkCallCmd();
       
    61 
       
    62 		/**
       
    63 		* By default Symbian 2nd phase constructor is private.
       
    64 		*/
       
    65 		void ConstructL( );
       
    66 
       
    67 	public:
       
    68 		/**
       
    69 		* Attaches Application's menu pane and the interest resource to AIW FW service
       
    70 		*
       
    71 		* @param aMenuResourceId application menu which includes service interest resource
       
    72 		* @param aInterestResourceId application resource containing service interest
       
    73         */
       
    74 		void AttachMenuPaneL(TInt aMenuResourceId, TInt aInterestResourceId);
       
    75 
       
    76 		/**
       
    77 		* Sets up AIW menu handler service for application (Calling Phone number )
       
    78 		* @param aMenuPane application menu pane
       
    79 		* @param aMenuResourceId application menu which includes service interest resource
       
    80 		* @param aBaseMenuCmdId base commandId which AIW FW uses for attaching application service interst
       
    81         */
       
    82 
       
    83 		void InitializeMenuPaneL( CEikMenuPane& aMenuPane,
       
    84 								  TInt aMenuResourceId,
       
    85 								  TInt aBaseMenuCmdId );
       
    86 		/**
       
    87 		* Configures clinet's service criteria (array of service interest) to AIW FW
       
    88 		* @param aInterestId application's service interest
       
    89 		*/
       
    90 		void AttachInterestL ( RCriteriaArray& aInterestId );
       
    91 
       
    92 		/**
       
    93 		* Overloaded version
       
    94 		*/
       
    95 		void AttachInterestL ( TInt aInterestId );
       
    96 
       
    97 		/**
       
    98 		* Execute AIW menu service for calling phone number
       
    99 		* @param aCommandId application menu command
       
   100 		* @param aPhoneNum  phone number to which call is to be made
       
   101 		*/
       
   102 		void ExecuteAIWCallCmdL( TInt aCommandId, TDesC& aPhoneNum );
       
   103 
       
   104 		/**
       
   105         * This function makes a call to AIW service handler to get
       
   106         * the mapped AIW menu id for the , menu id clicked.
       
   107         */
       
   108         TInt ServiceCmdByMenuCmd( TInt aMenuCmd );
       
   109 
       
   110 	private: //new functions
       
   111 		TBool HandleEmergencyCallL( TDesC& aPhoneNum );
       
   112 		void  HandleNormalCallL( TInt aCommandId, TDesC& aPhoneNum );
       
   113 		//MPhCltEmergencyCallObserver
       
   114 		void  HandleEmergencyDialL( const TInt aStatus );
       
   115 
       
   116 	private: // Data members
       
   117 		// AIW Call Service Handler instance.
       
   118 		CAiwServiceHandler* iAiwCallServiceHandler;
       
   119 		//Emergency call handler
       
   120 		CPhCltEmergencyCall* iEmergencyCall;
       
   121 	};
       
   122 #endif
       
   123 //  End of File