convergedcallengine/csplugin/inc/cspsssettingshandler.h
branchRCL_3
changeset 20 987c9837762f
parent 0 ff3b6d0fd310
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
       
     1 /*
       
     2 * Copyright (c) 2007-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:  This file contains the header file of the class 
       
    15 *                CSPSsSettingsHandler.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CSPSSSETTINGSHANDLER_H
       
    22 #define CSPSSSETTINGSHANDLER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <MSSSettingsObserver.h>
       
    27 
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class MCCPSsObserver;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  CSPSsSettingsHandler observer SSSettings changes
       
    36 *
       
    37 *  @lib phoneenginegsm
       
    38 *  @since Series_60 4.0
       
    39 */
       
    40 class CSPSsSettingsHandler : public CBase,
       
    41                            public MSSSettingsObserver
       
    42     {
       
    43     public:  // Constructors and destructor
       
    44         
       
    45         /**
       
    46         * Two-phased constructor.
       
    47         */
       
    48         static CSPSsSettingsHandler* NewL( const MCCPSsObserver& aObserver );
       
    49         
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         virtual ~CSPSsSettingsHandler( );
       
    54 
       
    55     public: // New functions
       
    56         
       
    57         /**
       
    58         * GetALSLineL
       
    59         * @param aALSLine, Als line information to be updated
       
    60         */
       
    61         void GetALSLineL( RMobilePhone::TMobilePhoneALSLine& aALSLine );
       
    62 
       
    63         /**
       
    64         * SetALSLineL
       
    65         * @param aALSLine, Als line information to set
       
    66         */
       
    67         void SetALSLineL( RMobilePhone::TMobilePhoneALSLine& aALSLine );
       
    68         
       
    69         /**
       
    70         * GetClirL
       
    71         * @param aClir, Clir information to be updated
       
    72         */
       
    73         void GetClirL( RMobileCall::TMobileCallIdRestriction& aClir );
       
    74         
       
    75         /**
       
    76         * GetCugL
       
    77         * @param aCugIndex, CUG index
       
    78         */
       
    79         void GetCugL( TInt& aCugIndex );
       
    80         
       
    81         /**
       
    82          * GetDefaultCugL
       
    83          * Get CUG default value.
       
    84          */
       
    85         void GetDefaultCugL(TInt& aDefCug );
       
    86         
       
    87         /**
       
    88          * IsValueValidCugIndex
       
    89          * Is CUG index in allowed range. 
       
    90          */
       
    91         TBool IsValueValidCugIndex( const TInt& aValue ) const;
       
    92 
       
    93     public: // Functions from MSSSettingsObserver
       
    94 
       
    95         /*
       
    96         * Observer functoin 
       
    97         * @param aSetting Current setting
       
    98         * @param aNewValue New value for the setting
       
    99         */
       
   100         virtual void PhoneSettingChanged( 
       
   101             TSSSettingsSetting aSetting, 
       
   102             TInt aNewValue );
       
   103 
       
   104     private:
       
   105 
       
   106         /**
       
   107         * Constructor.
       
   108         */
       
   109         CSPSsSettingsHandler( const MCCPSsObserver& aObserver );
       
   110 
       
   111         /**
       
   112         * By default Symbian 2nd phase constructor is private.
       
   113         */
       
   114         void ConstructL();
       
   115         
       
   116         /**
       
   117         * Call register Als notify after idle callback
       
   118         */                 
       
   119         void RegisterAfterIdle();               
       
   120 
       
   121         /**
       
   122         * CIdle CallBack method
       
   123         */  
       
   124         static TInt CIdleCallBack( TAny* aAny );
       
   125 
       
   126         /**
       
   127         * Register to notify ALS line changed
       
   128         */  
       
   129         void Register();
       
   130 
       
   131     private: // Data
       
   132 
       
   133         /**
       
   134          * MCCPSsObserver is used to send message to the CCE/phone.
       
   135          */
       
   136         MCCPSsObserver& iObserver;
       
   137         //Pointer to instance of Settings
       
   138         RSSSettings iSSSettings;
       
   139         // Idle object to register ALS notify.
       
   140         CIdle* iRegisterAlsNofify;
       
   141 
       
   142     };
       
   143 
       
   144 #endif      // CSPSSSETTINGSHANDLER_H