phoneclientserver/EnPolicy/Inc/SosEnPolicy/CSOSEmergencyNumberPolicyManager.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2004-2005 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:  Provides SOS emergency number policy API.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CSOSEMERGENCYNUMBERPOLICYMANAGER_H
       
    21 #define CSOSEMERGENCYNUMBERPOLICYMANAGER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <cemergencynumberpolicy.h> 
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CSosEmergencyNumberPolicyHandler;
       
    28 class CSosEnPolicySatRefresh;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  CSosEmergencyNumberPolicyManager
       
    34 *  Description: Defines SOS emergency number policy.
       
    35 *
       
    36 *  @since Series60_2.6
       
    37 */
       
    38 
       
    39 NONSHARABLE_CLASS( CSosEmergencyNumberPolicyManager ) : 
       
    40     public CEmergencyNumberPolicy
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43       
       
    44         /**
       
    45         * Symbian 2nd phase constructor is private.
       
    46         * @param aETelServer a reference of RTelServer.
       
    47         */
       
    48         void ConstructL(  RTelServer& aETelServer );
       
    49 
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         ~CSosEmergencyNumberPolicyManager();
       
    54         
       
    55     public: // New
       
    56         /**
       
    57         * Emergency number check.
       
    58         * @param aTelNumber a telephone number to be checked.
       
    59         * @param aMode a check mode, Normal/Advanced.
       
    60         * @param aIsEmergencyNumber  return True if the number is emergency.                                
       
    61         * @return error code.
       
    62         */
       
    63         TInt IsEmergencyNumber( 
       
    64                                 TPhCltTelephoneNumber& aTelNumber, 
       
    65                                 TPhCltEmergencyNumberQueryMode aMode,
       
    66                                 TBool& aIsEmergencyNumber );  
       
    67            
       
    68     private:// Data
       
    69 
       
    70         // Pointer to the instance of SOS emergency number handler.
       
    71         CSosEmergencyNumberPolicyHandler* iSosEnPolicyHandler;
       
    72 
       
    73     };
       
    74 
       
    75 #endif  // CSOSEMERGENCYNUMBERPOLICYMANAGER_H
       
    76 // End of File