phonesrv_plat/string_parser_api/inc/CPhoneGsmManufacturerHandler.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     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         * EShowBtAddress - BT address display
       
    49         * EResetWallet - Wallet reset
       
    50         * EBTLoopback - BT RF loopback activation/deactivation
       
    51         * EBTDebugMode - BT debug mode activation
       
    52         */
       
    53         enum
       
    54             {
       
    55             EBadPinChange,
       
    56             EBadPin2Change,
       
    57             EBadPinUnblock,
       
    58             EBadPin2Unblock,
       
    59             EActivateRfsNormal,
       
    60             EActivateRfsDeep,
       
    61             EShowBtAddress,
       
    62             EBTLoopback,
       
    63             EShowWlanMac,
       
    64             EBTDebugMode
       
    65             };
       
    66 
       
    67         /**
       
    68         * Process manufacturer specific command.
       
    69         *
       
    70         * @param aCommand command to be performed.
       
    71         */
       
    72         virtual void ProcessCommandL( TUint aCommand ) = 0;
       
    73 
       
    74         /**
       
    75         * Process debug code.
       
    76         *
       
    77         * @param aCode code to be processed.
       
    78         */
       
    79         virtual void ProcessDebugL( const TDesC& aCode ) = 0;
       
    80 
       
    81     public: // Functions from base classes
       
    82 
       
    83         /**
       
    84         * From CPhoneGsmHandlerBase, process the results of parsing.
       
    85         *
       
    86         * @param aResult It is results to be processed.
       
    87         */
       
    88         IMPORT_C virtual void ProcessL( 
       
    89             CPhoneGsmParserResult& aResult );
       
    90     
       
    91     };
       
    92 
       
    93 #endif      // CPHONEGSMMANUFACTURERHANDLER_H
       
    94             
       
    95 // End of File