phonesrv_plat/string_parser_api/inc/CPhoneGsmManufacturerHandler.h
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2002 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:  It is base handler for manufacturer specific codes.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPHONEGSMMANUFACTURERHANDLER_H
       
    20 #define CPHONEGSMMANUFACTURERHANDLER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include    "CPhoneGsmHandlerBase.h"
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28 * It is base handler for manufacturer specific codes.
       
    29 *
       
    30 * @since 1.0
       
    31 * @lib phoneparser.lib
       
    32 */
       
    33 class CPhoneGsmManufacturerHandler 
       
    34     : public CPhoneGsmHandlerBase
       
    35     {
       
    36     public: // New functions
       
    37         
       
    38         /**
       
    39         * It enumerates all commands.
       
    40         *
       
    41         * EShowVersion - SW version display
       
    42         * EBadPinChange - bad PIN change request, e.g. **04*#
       
    43         * EBadPin2Change - bad PIN2 change request
       
    44         * EBadPinUnblock - bad PIN unblock request, e.g. **05*#
       
    45         * EBadPin2Unblock - bad PIN2 unblock request
       
    46         * EActivateRfsNormal - RFS activation
       
    47         * EActivateRfsDeep - RFS activation, deep version
       
    48         * EActivateWarranty - Warranty application activation
       
    49         * EShowBtAddress - BT address display
       
    50         * EResetWallet - Wallet reset
       
    51         * ELifeTimer - Life timer
       
    52         * EBTLoopback - BT RF loopback activation/deactivation
       
    53         * EBTDebugMode - BT debug mode activation
       
    54         */
       
    55         enum
       
    56             {
       
    57             EShowVersion,
       
    58             EBadPinChange,
       
    59             EBadPin2Change,
       
    60             EBadPinUnblock,
       
    61             EBadPin2Unblock,
       
    62             EActivateRfsNormal,
       
    63             EActivateRfsDeep,
       
    64             EActivateWarranty,
       
    65             EShowBtAddress,
       
    66             ELifeTimer,
       
    67             EBTLoopback,
       
    68             EShowWlanMac,
       
    69             EBTDebugMode
       
    70             };
       
    71 
       
    72         /**
       
    73         * Process manufacturer specific command.
       
    74         *
       
    75         * @param aCommand command to be performed.
       
    76         */
       
    77         virtual void ProcessCommandL( TUint aCommand ) = 0;
       
    78 
       
    79         /**
       
    80         * Process debug code.
       
    81         *
       
    82         * @param aCode code to be processed.
       
    83         */
       
    84         virtual void ProcessDebugL( const TDesC& aCode ) = 0;
       
    85 
       
    86     public: // Functions from base classes
       
    87 
       
    88         /**
       
    89         * From CPhoneGsmHandlerBase, process the results of parsing.
       
    90         *
       
    91         * @param aResult It is results to be processed.
       
    92         */
       
    93         IMPORT_C virtual void ProcessL( 
       
    94             CPhoneGsmParserResult& aResult );
       
    95     
       
    96     };
       
    97 
       
    98 #endif      // CPHONEGSMMANUFACTURERHANDLER_H
       
    99             
       
   100 // End of File