messagingappbase/mcesettings/inc/MceSettingsDialog.h
branchRCL_3
changeset 27 7fdbb852d323
parent 0 72b543305e3a
child 5 4697dfb2d7ad
equal deleted inserted replaced
26:ebe688cedc25 27:7fdbb852d323
       
     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:  
       
    15 *     Message centre's settings dialog.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MCESETTINGSDIALOG_H
       
    22 #define MCESETTINGSDIALOG_H
       
    23 
       
    24 //  INCLUDES
       
    25 
       
    26 #include <ConeResLoader.h>
       
    27 #include <msvapi.h>
       
    28 #include "MceSettingsTitlePaneHandlerDialog.h"
       
    29 #include <MsgArrays.h>
       
    30 
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 
       
    34 class CMtmStore;
       
    35 class CMtmUiDataRegistry;
       
    36 class CMceSettingsSessionObserver;
       
    37 class CMceUidNameArray;
       
    38 class MMceSettingsAccountManager;
       
    39 
       
    40 // CLASS DECLARATION
       
    41 
       
    42 /**
       
    43 */
       
    44 class CMceSettingsDialog :
       
    45     public CMceSettingsTitlePaneHandlerDialog
       
    46 
       
    47     {
       
    48     public:  // Constructors and destructor
       
    49 
       
    50         /**
       
    51         * Constructor.
       
    52         */
       
    53         IMPORT_C static CMceSettingsDialog* NewL();
       
    54 
       
    55         /**
       
    56         * Constructor for Mce
       
    57         */
       
    58         IMPORT_C static CMceSettingsDialog* NewL(
       
    59                 CMceUidNameArray& aSettingsItemsArray,
       
    60                 MMceSettingsAccountManager* aManager, 
       
    61                 CMsvSession* aSession );       
       
    62 
       
    63         /**
       
    64         * Destructor.
       
    65         */
       
    66         IMPORT_C virtual ~CMceSettingsDialog();
       
    67 
       
    68         /**
       
    69         * Executes CMceSettingsDialog
       
    70         */
       
    71         IMPORT_C TInt ExecuteLD( );
       
    72         
       
    73 
       
    74     public: // Functions from base classes
       
    75 
       
    76         /**
       
    77         * From CAknDialog
       
    78         */
       
    79         IMPORT_C void ProcessCommandL( TInt aCommandId );        
       
    80 
       
    81         /**
       
    82         * From MEikMenuObserver
       
    83         */
       
    84         IMPORT_C void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    85 
       
    86         /**
       
    87         * From CoeControl        
       
    88         */
       
    89         void GetHelpContext(TCoeHelpContext& aContext) const;
       
    90 
       
    91         /**
       
    92         * From MEikListBoxObserver
       
    93         */
       
    94         virtual void HandleListBoxEventL(
       
    95                 CEikListBox* aListBox,
       
    96                 TListBoxEvent aEventType );  
       
    97 
       
    98     protected:  // Functions from base classes
       
    99 
       
   100         /**
       
   101         * From CEikDialog
       
   102         */
       
   103         IMPORT_C virtual void PreLayoutDynInitL();
       
   104 
       
   105         /**
       
   106         * From CEikDialog
       
   107         */
       
   108         IMPORT_C virtual TBool OkToExitL( TInt aButtonId );             
       
   109 
       
   110     private:
       
   111 
       
   112         /**
       
   113         * Constructor.
       
   114         */
       
   115         CMceSettingsDialog();
       
   116 
       
   117         /**
       
   118         * Constructor.
       
   119         */
       
   120         CMceSettingsDialog( 
       
   121                 CMceUidNameArray& aSettingsItemsArray,
       
   122                 MMceSettingsAccountManager* aManager, 
       
   123                 CMsvSession* aSession );      
       
   124 
       
   125         /**
       
   126         * Constructor.
       
   127         */
       
   128         void ConstructL();
       
   129 
       
   130         /**
       
   131         * Loads all mtms.
       
   132         */
       
   133         void LoadAllMtmsL();
       
   134 
       
   135         /**
       
   136         * Loads mtm
       
   137         * @param aMtmType: mtm type
       
   138         * @param aMtmStore: mtm store 
       
   139         * @param aUiRegistry: mtm ui data registry 
       
   140         */
       
   141         void LoadMtmL( const TUid aMtmType, 
       
   142                 CMtmStore& aMtmStore, 
       
   143                 const CMtmUiDataRegistry& aUiRegistry );
       
   144 
       
   145         /**
       
   146         * Open sub settings.
       
   147         */
       
   148         void OpenSubSettingsL();        
       
   149 
       
   150         /**
       
   151         * Changes array order: sms, mms, email, others...
       
   152         */
       
   153         void SortAndChangeSmsMmsEmailFirstL();
       
   154 
       
   155         /**
       
   156         * Places given mtm first in the array.
       
   157         * @param aArray: reference to array
       
   158         * @param aMsgType: mtm to changed to the first.
       
   159         */
       
   160         void ChangeMsgTypeTopL( CUidNameArray& aArray, TUid aMsgType ) const;
       
   161 
       
   162         /** 
       
   163         * Launches help application
       
   164         */
       
   165         void LaunchHelpL() const;
       
   166 
       
   167         /**
       
   168         * Checks CSP Cell Broadcast bit from SIM      
       
   169         */
       
   170         TBool CheckCspBitL() const;
       
   171     private:  // Data
       
   172     
       
   173         RConeResourceLoader     iResources;
       
   174         CMceUidNameArray*       iMsgTypesSettings;
       
   175         MMceSettingsAccountManager* iAccountManager;
       
   176         CMsvSession*            iSession; // not owed by this class.        
       
   177         TBool                   iLaunchedFromMce; 
       
   178         CMceSettingsSessionObserver* iSessionObserver;
       
   179 
       
   180         TBool                   iCbs;
       
   181         TBool 					iDialogOpen;// To verify dialog is already open
       
   182 		TBool iProductIncludesSelectableEmail;
       
   183     };
       
   184 
       
   185 #endif      // MCESETTINGSDIALOG_H
       
   186 
       
   187 // End of File