phoneengine/phonemodel/inc/cpeparsermanufacturerhandler.h
changeset 0 5f000ab63145
child 21 92ab7f8d0eab
child 61 41a7f70b3818
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:  This file contains the header file of the
       
    15 *                CPEParserManufacturerHandler object
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPEPARSERMANUFACTURERHANDLER_H
       
    21 #define CPEPARSERMANUFACTURERHANDLER_H
       
    22 
       
    23 //INCLUDES
       
    24 #include <CPhoneGsmManufacturerHandler.h>
       
    25 #include <pevirtualengine.h>
       
    26 
       
    27 // CONSTANTS
       
    28 enum
       
    29     {
       
    30     EPhoneCmdDebugPrint,
       
    31     EPhoneCmdHeapFailure
       
    32     };
       
    33 
       
    34 // MACROS
       
    35 // None.
       
    36 
       
    37 // DATA TYPES
       
    38 // None.
       
    39 
       
    40 // FUNCTION PROTOTYPES
       
    41 // None.
       
    42 
       
    43 // FORWARD DECLARATIONS
       
    44 class MPEPhoneModelInternal;
       
    45 class MPECallHandling;
       
    46 
       
    47 // CLASS DECLARATION
       
    48 
       
    49 /**
       
    50 *  Provides processing for manufacturer specific Phone Parser requests
       
    51 *
       
    52 *  @lib phoneengine.lib
       
    53 *  @since Series60_4.0
       
    54 */
       
    55 NONSHARABLE_CLASS( CPEParserManufacturerHandler ) : public CPhoneGsmManufacturerHandler
       
    56     {
       
    57     public:  //Constructors and descructor    
       
    58         /**
       
    59         * C++ default constructor.
       
    60         */
       
    61         CPEParserManufacturerHandler( MPEPhoneModelInternal& aModel, 
       
    62                                       MPECallHandling& aCallHandling,
       
    63                                       RFs& aFsSession );
       
    64 
       
    65         /**
       
    66         * Destructor.
       
    67         */
       
    68         virtual ~CPEParserManufacturerHandler();
       
    69 
       
    70     public: // Functions from base classes
       
    71 
       
    72         /**
       
    73         * Process manufacturer specific command.
       
    74         * @param aCommand command to be performed.
       
    75         */
       
    76         void ProcessCommandL( TUint aCommand );
       
    77 
       
    78         /**
       
    79         * Process debug code.
       
    80         * @param aCode code to be processed.
       
    81         */
       
    82         void ProcessDebugL( const TDesC& aCode );
       
    83     
       
    84     private:
       
    85     
       
    86         /**
       
    87         * Gets phone model and sw version
       
    88         * @param aSwVersion sw version
       
    89         * return Error Code
       
    90         */
       
    91         TInt GetSwVersionAndPhoneModelL( TDes& aSwVersion );
       
    92         
       
    93         /**
       
    94         * Add phone model to sw version
       
    95         * @param aSwVersion sw version
       
    96         */
       
    97         void AppendPhoneModelL( TDes& aSwVersion );
       
    98         
       
    99         /**
       
   100         * Remove needless line from string
       
   101         * @param aSwVersion sw version
       
   102         */
       
   103         void RemoveLinesAfterThreeLines( TDes& aSwVersion );
       
   104         
       
   105     private:    
       
   106         //MPEPhoneModelInternal is used to send message to the phone application
       
   107         MPEPhoneModelInternal& iModel;
       
   108         // CPEPhoneData is used to create request to the CallHandling subsystem.
       
   109         MPECallHandling& iCallHandling;
       
   110         // Handle to a file server session
       
   111         RFs& iFsSession; 
       
   112         
       
   113     };
       
   114 
       
   115 #endif // CPEPARSERMANUFACTURERHANDLER_H
       
   116 
       
   117 // End of File