srsf/speechsynthesis/tsrc/texttospeech/inc/texttospeechsettingitemlist.h
branchRCL_3
changeset 23 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
22:cad71a31b7fc 23:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TEXTTOSPEECHSETTINGITEMLIST_H
       
    20 #define TEXTTOSPEECHSETTINGITEMLIST_H
       
    21 
       
    22 #include <aknsettingitemlist.h>
       
    23 
       
    24 class MEikCommandObserver;
       
    25 class CTextToSpeechSettingItemListSettings;
       
    26 
       
    27 /**
       
    28  * CTextToSpeechSettingItemList 
       
    29  */
       
    30 class CTextToSpeechSettingItemList : public CAknSettingItemList
       
    31     {
       
    32 
       
    33     public: 
       
    34     
       
    35         CTextToSpeechSettingItemList( CTextToSpeechSettingItemListSettings& settings, 
       
    36                                       MEikCommandObserver* aCommandObserver );
       
    37                                       
       
    38         virtual ~CTextToSpeechSettingItemList();
       
    39 
       
    40         // overrides of CAknSettingItemList
       
    41         CAknSettingItem* CreateSettingItemL( TInt id );
       
    42         void EditItemL ( TInt aIndex, TBool aCalledFromMenu );
       
    43         virtual TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, 
       
    44                                              TEventCode aType );
       
    45 
       
    46         // utility function for menu
       
    47         void ChangeSelectedItemL();
       
    48 
       
    49         void LoadSettingValuesL();
       
    50         
       
    51     private:
       
    52     
       
    53         // override of CAknSettingItemList
       
    54         void SizeChanged();
       
    55         
       
    56         void LoadLanguagesL();
       
    57         void LoadVoicesL( TBool aResetSelection );
       
    58         
       
    59         void HandleSliderVisibility();
       
    60 
       
    61     private:
       
    62 
       
    63         // current settings values
       
    64         CTextToSpeechSettingItemListSettings&   iSettings;
       
    65         
       
    66         CTextToSpeechEngine*                    iEngine;
       
    67         MEikCommandObserver*                    iCommandObserver;
       
    68     
       
    69     };
       
    70     
       
    71 #endif // TEXTTOSPEECHSETTINGITEMLIST_H