phoneapp/phoneuistates/inc/cphoneincoming.h
changeset 0 5f000ab63145
child 65 2a5d4ab426d3
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 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: 
       
    15 *     GSM-specific incoming state implementation.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONEINCOMING_H
       
    21 #define CPHONEINCOMING_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "cphonestateincoming.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CPhoneState;
       
    28 class TPhoneCmdParamBoolean;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 *  GSM-specific incoming state implementation.
       
    33 */
       
    34 class CPhoneIncoming : public CPhoneStateIncoming
       
    35     {
       
    36     public:  
       
    37 
       
    38         /**
       
    39         * Destructor.
       
    40         */
       
    41         IMPORT_C virtual ~CPhoneIncoming();
       
    42         
       
    43         /**
       
    44         * Creates the Incoming state class
       
    45         * @param aStateMachine: a state machine
       
    46         * @param aViewCommandHandle: handle to the PhoneUIView
       
    47         * @return an instance of class CPhoneEmergency
       
    48         */
       
    49         static CPhoneIncoming* NewL( 
       
    50             MPhoneStateMachine* aStateMachine, 
       
    51             MPhoneViewCommandHandle* aViewCommandHandle,
       
    52             MPhoneCustomization* aPhoneCustomization );
       
    53 
       
    54         /**
       
    55         * A message handling function for Phone Engine messages
       
    56         * @param aMessage Message from Phone Engine
       
    57         * @param aCallId Call id the message concerns
       
    58         */
       
    59         IMPORT_C void HandlePhoneEngineMessageL(
       
    60             const TInt aMessage, 
       
    61             TInt aCallId );    
       
    62 
       
    63         /**
       
    64         * HandleError
       
    65         * Implements error handling framework
       
    66         * @param aErrorInfo: the error info
       
    67         */
       
    68         IMPORT_C virtual void HandleErrorL( 
       
    69             const TPEErrorInfo& aErrorInfo ); 
       
    70     protected:
       
    71 
       
    72         /**
       
    73         * By default EPOC constructor is private.
       
    74         */
       
    75         IMPORT_C CPhoneIncoming( 
       
    76             MPhoneStateMachine* aStateMachine, 
       
    77             MPhoneViewCommandHandle* aViewCommandHandle,
       
    78             MPhoneCustomization* aPhoneCustomization );
       
    79                     
       
    80         /**
       
    81         * ConstructL()
       
    82         */
       
    83         IMPORT_C virtual void ConstructL();
       
    84         
       
    85         /**
       
    86         * Handles long hash key
       
    87         */
       
    88         virtual void HandleLongHashL();
       
    89 
       
    90     private:
       
    91         
       
    92         /**
       
    93         * A message handling function for EPEMessageIncoming
       
    94         * @param aCallId: the call id of the call
       
    95         */
       
    96         void HandleIncomingL( TInt aCallId );
       
    97         
       
    98         /**
       
    99         * Display Incoming Call
       
   100         * @param aCallid call id
       
   101         * @param aCommandParam
       
   102         */
       
   103         void DisplayIncomingCallL( 
       
   104             TInt aCallId, 
       
   105             const TPhoneCmdParamBoolean aCommandParam );
       
   106         
       
   107         /**
       
   108         * Get allow waiting call header value.
       
   109         * @param aCommandParam
       
   110         */
       
   111         void AllowShowingOfWaitingCallHeaderL( 
       
   112             TPhoneCmdParamBoolean& aCommandParam );
       
   113     private:
       
   114         
       
   115         // call id of new waiting call
       
   116         TInt iWaitingCallId;
       
   117     };
       
   118 
       
   119 #endif // CPHONEINCOMING_H
       
   120 
       
   121 // End of File