coreapplicationuis/SysAp/Inc/SysApSsSettingsObserver.h
changeset 0 2e3d3ce01487
child 28 b0b858956ed5
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     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:  CSysApSsSettingsObserver class definition. This class
       
    15 *                implements methods needed for handling SsSettings functionality
       
    16 *                that tells what is the currently used ALS line for outgoing
       
    17 *                calls.
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef SYSAPSSSETTINGSOBSERVER_H
       
    23 #define SYSAPSSSETTINGSOBSERVER_H
       
    24 
       
    25 // INCLUDES
       
    26 #include <e32base.h>
       
    27 #include <MSSSettingsObserver.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CSysApAppUi;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34 *  CSysApSsSettingsObserver
       
    35 *
       
    36 *  @lib   sysap
       
    37 *  @since 1.0
       
    38 */
       
    39 
       
    40 class CSysApSsSettingsObserver : public CBase, public MSSSettingsObserver
       
    41     {
       
    42     public: // Constructors and destructor
       
    43         /**
       
    44         * EPOC default constructor.
       
    45         */
       
    46         static CSysApSsSettingsObserver* NewL( CSysApAppUi& aSysApAppUi );
       
    47 
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CSysApSsSettingsObserver();
       
    52     
       
    53     public:     
       
    54         /**
       
    55         * CallBack function from MSSSettingsObserver. 
       
    56         * Gets called when SS settings are changed.
       
    57         * @param None
       
    58         * @return void
       
    59         */
       
    60         void PhoneSettingChanged( TSSSettingsSetting aSetting, TInt aNewValue );
       
    61     
       
    62     private:
       
    63         /**
       
    64         * EPOC default constructor.
       
    65         * @param None
       
    66         * @return void
       
    67         */
       
    68         void ConstructL( );
       
    69         
       
    70         /**
       
    71         * Constructor
       
    72         * @param CSysApAppUi& aSysApAppUi
       
    73         * @return void
       
    74         */         
       
    75         CSysApSsSettingsObserver( CSysApAppUi& aSysApAppUi );
       
    76     
       
    77         /**
       
    78         * C++ default constructor.
       
    79         * @param None
       
    80         * @return void
       
    81         */
       
    82         CSysApSsSettingsObserver();
       
    83         
       
    84     private:
       
    85         // By default, prohibit copy constructor
       
    86         CSysApSsSettingsObserver( const CSysApSsSettingsObserver& );
       
    87     
       
    88         // Prohibit assigment operator
       
    89         CSysApSsSettingsObserver& operator= ( const CSysApSsSettingsObserver& );
       
    90     
       
    91     private:
       
    92         /**
       
    93         * Method for setting the state of Second line indicator
       
    94         * @param None
       
    95         * @return void
       
    96         */
       
    97         void SetSecondLineIndicatorL( TInt aSsSettingsAlsLineValue ) const;
       
    98     
       
    99     private:
       
   100         RSSSettings         iSysApSsSettings;
       
   101         CSysApAppUi&        iSysApAppUi;
       
   102     };
       
   103 
       
   104 #endif      // SYSAPSSSETTINGSOBSERVER_H
       
   105             
       
   106 // End of File