phoneengine/phonemodel/inc/cpeparserphonenumberhandler.h
changeset 0 5f000ab63145
child 21 92ab7f8d0eab
child 61 41a7f70b3818
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2004-2008 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:  Header file of the CPEParserPhoneNumberHandler class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPEPARSERPHONENUMBERHANDLER_H
       
    20 #define CPEPARSERPHONENUMBERHANDLER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <CPhoneGsmPhoneNumberHandler.h>
       
    24 #include <pevirtualengine.h>
       
    25 
       
    26 // CONSTANTS
       
    27 const TUint KDtmfPlus = '+';
       
    28 const TUint KDtmfWait = 'w';
       
    29 
       
    30 // MACROS
       
    31 // None.
       
    32 
       
    33 // DATA TYPES
       
    34 // None.
       
    35 
       
    36 // FUNCTION PROTOTYPES
       
    37 // None.
       
    38 
       
    39 // FORWARD DECLARATIONS
       
    40 class MPECallHandling;
       
    41 class CPEMessageHandler;
       
    42 class MPEDataStore;
       
    43 
       
    44 // CLASS DECLARATION
       
    45 
       
    46 /**
       
    47 *  Handles phone related messages from the CPEPhoneModel object.
       
    48 *
       
    49 *  @lib PhoneEngineGsm.lib
       
    50 *  @since since S90 1.0
       
    51 */
       
    52 NONSHARABLE_CLASS( CPEParserPhoneNumberHandler ) : public CPhoneGsmPhoneNumberHandler
       
    53     {
       
    54     public:  //Constructors and descructor
       
    55 
       
    56         /**
       
    57         * C++ default constructor.
       
    58         */
       
    59         CPEParserPhoneNumberHandler( 
       
    60             CPEMessageHandler& aOwner, 
       
    61             MPECallHandling& aCallHandling,
       
    62             MPEDataStore& aGsmDataStore );
       
    63 
       
    64 
       
    65     public: // Functions from base classes
       
    66 
       
    67         /**
       
    68         * Process dial to number(derived from CPEGsmPhoneNumberHandler)
       
    69         * @since since S90 1.0
       
    70         * @param aNumber main number part.
       
    71         * @param aDtmfPostfix dtmf postfix.
       
    72         * @param aClir clir part.
       
    73         */
       
    74         void ProcessDialToNumberL( 
       
    75             const TDesC& aNumber, 
       
    76             const TDesC& aDtmfPostfix,
       
    77             TClir aClir );
       
    78 
       
    79     private: 
       
    80     
       
    81         /**
       
    82         * Removes non-GSM standard postfix characters before dialling attempt.
       
    83         * @since 5.0
       
    84         * @param aPostfix postfix to modify.
       
    85         * @return modified postfix.
       
    86         */
       
    87         TPtrC FilterPostfix( TPtrC aPostfix );
       
    88 
       
    89         /**
       
    90         * Checks if phone is offline
       
    91         * @since 5.0
       
    92         * @return offline status
       
    93         */
       
    94         TBool IsPhoneOffline();
       
    95 
       
    96     private:    
       
    97         // CPEMessageHandler object which owns this requester.
       
    98         CPEMessageHandler& iOwner;
       
    99         // CPEPhoneData is used to create request to the CallHandling subsystem.
       
   100         MPECallHandling& iCallHandling;
       
   101         // Reference to common data store
       
   102         MPEDataStore& iDataStore;
       
   103     };
       
   104 
       
   105 #endif      // CPEPARSERPHONENUMBERHANDLER_H
       
   106             
       
   107 // End of File
       
   108