commsconfig/cscsettingsui/inc/cscsettingsuiimpl.h
branchRCL_3
changeset 21 f742655b05bf
parent 20 65a3ef1d5bd0
child 22 d38647835c2e
equal deleted inserted replaced
20:65a3ef1d5bd0 21:f742655b05bf
     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:  Declarition of CSCSettingsUiImpl
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_CSCSETTINGSUIIMPL_H
       
    21 #define C_CSCSETTINGSUIIMPL_H
       
    22 
       
    23 #include "mcscsettingsuimodelobserver.h"
       
    24 
       
    25 class CEikonEnv;
       
    26 class CCSCSettingsUiModel;
       
    27 class CCSCSettingsUiMainView;
       
    28 class MCoeView;
       
    29 
       
    30 
       
    31 /**
       
    32 *  CCSCSettingsUiImpl class
       
    33 *  Declarition of CSCSettingsUiImpl.
       
    34 *
       
    35 *  @lib CSCSettingsUi.lib
       
    36 *  @since S60 v3.2
       
    37 */
       
    38 NONSHARABLE_CLASS( CCSCSettingsUiImpl ) : public CBase,
       
    39 				                          public MCSCSettingsUiModelObserver
       
    40     {
       
    41     public:
       
    42 
       
    43         /**
       
    44          * Two-phased constructor.
       
    45          */
       
    46         static CCSCSettingsUiImpl* NewL( CEikonEnv& aEikEnv );
       
    47         
       
    48         
       
    49         /**
       
    50          * Destructor.
       
    51          */
       
    52         virtual ~CCSCSettingsUiImpl();
       
    53        
       
    54 
       
    55         /**
       
    56          * Initializes CSC settings UI.
       
    57          * @param   aReturnViewId   Identifier of the view where to return with 
       
    58          *                          "back" key.
       
    59          * @param   aServiceId      Service settings entry identifier.
       
    60          * @param   aDefaultAppView The view to set as the default for utilizing
       
    61          *                          application. If NULL, settings ui view
       
    62          *                          is set as the default view for the 
       
    63          *                          application.
       
    64          * @since   S60 v5.1
       
    65          */
       
    66         void InitializeL( 
       
    67             const TUid& aReturnViewId, 
       
    68             TUint aServiceId,
       
    69             const MCoeView* aDefaultAppView );
       
    70         
       
    71         
       
    72         /**
       
    73          * Launches Converged Service Configurator Settings UI with parameters
       
    74          * given at initialization. 
       
    75          * 
       
    76          * @since    S60 v3.2
       
    77          */
       
    78         void LaunchSettingsUiL();
       
    79 
       
    80         
       
    81         /**
       
    82          * From MCSCSettingsUiModelObserver.
       
    83          */
       
    84         void UpdateSoftkeys() const;
       
    85         
       
    86         
       
    87         /**
       
    88          * Returns reference counter.
       
    89          *
       
    90          * @since S60 5.0
       
    91          */
       
    92         TInt& ReferenceCounter();
       
    93 
       
    94         
       
    95     private:
       
    96 
       
    97         CCSCSettingsUiImpl(
       
    98             CEikonEnv& aEikEnv );
       
    99 
       
   100         void ConstructL();
       
   101             
       
   102     private: // data
       
   103                 
       
   104         /**
       
   105          * Reference to Eikon environment.
       
   106          */
       
   107         CEikonEnv& iEikEnv;
       
   108         
       
   109         /**
       
   110          * Resource file offset.
       
   111          */
       
   112         TInt iResourceOffset;
       
   113         
       
   114         /**
       
   115          * Main view.
       
   116          * Not own.
       
   117          */
       
   118         CCSCSettingsUiMainView* iMainView;
       
   119         
       
   120         /**
       
   121          * Model
       
   122          * Own.
       
   123          */
       
   124         CCSCSettingsUiModel* iModel;
       
   125         
       
   126         /**
       
   127          * Reference counter ie. how many instances created
       
   128          */    
       
   129         TInt iReferenceCounter;
       
   130         
       
   131 #ifdef _DEBUG
       
   132     friend class UT_cscsettingsui;
       
   133 #endif        
       
   134         
       
   135     };
       
   136 
       
   137 #endif // C_CSCSETTINGSUIIMPL_H