emailuis/emailui/inc/FreestyleEmailUiGlobalSettingsList.h
branchRCL_3
changeset 25 3533d4323edc
parent 0 8466d47a6819
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Freestyle Email header file
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GLOBALSETTINGSSETTINGITEMLIST_H
       
    20 #define GLOBALSETTINGSSETTINGITEMLIST_H
       
    21 
       
    22 // SYSTEM INCLUDES
       
    23 #include <aknsettingitemlist.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class MEikCommandObserver;
       
    27 class CFsEmailUiGlobalSettingsData;
       
    28 
       
    29 
       
    30 // CLASS DECLARATION
       
    31 class CFsEmailUiGlobalSettingsList : public CAknSettingItemList
       
    32 	{
       
    33 public: // constructors and destructor
       
    34 
       
    35 	CFsEmailUiGlobalSettingsList( 
       
    36 			CFsEmailUiGlobalSettingsData& aSettings, 
       
    37 			MEikCommandObserver* aCommandObserver );
       
    38 	virtual ~CFsEmailUiGlobalSettingsList();
       
    39 
       
    40 public:
       
    41 
       
    42 	// from CCoeControl
       
    43 	void HandleResourceChange( TInt aType );
       
    44 
       
    45 	// overrides of CAknSettingItemList
       
    46 	CAknSettingItem* CreateSettingItemL( TInt aId );
       
    47 	void EditItemL( TInt aIndex, TBool aCalledFromMenu );
       
    48 	TKeyResponse OfferKeyEventL( 
       
    49 			const TKeyEvent& aKeyEvent, 
       
    50 			TEventCode aType );
       
    51 
       
    52 public:
       
    53 	// utility function for menu
       
    54 	void ChangeSelectedItemL( TBool aCalledFromMenu );
       
    55 
       
    56 	void LoadSettingValuesL();
       
    57 	void SaveSettingValuesL();
       
    58 
       
    59 	TInt FocusedItemId();
       
    60 	
       
    61 	void GoToTop();
       
    62 	void GoToBottom();
       
    63 	
       
    64 	void PageUp();
       
    65 	void PageDown();
       
    66 			
       
    67 private:
       
    68 	// override of CAknSettingItemList
       
    69 	void SizeChanged();
       
    70 
       
    71 	// new methdos
       
    72 	TBool IsHsModesAppAvailable() const;
       
    73 	void ActivateHsModesEmailViewL();
       
    74 	
       
    75 private:
       
    76 	// current settings values
       
    77 	CFsEmailUiGlobalSettingsData& iSettings;
       
    78 	MEikCommandObserver* iCommandObserver;
       
    79 
       
    80 	};
       
    81 #endif // GLOBALSETTINGSSETTINGITEMLIST_H