|
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 TEXTTOSPEECHSETTINGITEMLISTSETTINGS_H |
|
20 #define TEXTTOSPEECHSETTINGITEMLISTSETTINGS_H |
|
21 |
|
22 |
|
23 #include <speechsynthesis.h> |
|
24 |
|
25 const int KEdit1MaxLength = 255; |
|
26 |
|
27 /** |
|
28 * Setting item list settings |
|
29 */ |
|
30 class CTextToSpeechSettingItemListSettings : CBase |
|
31 { |
|
32 |
|
33 public: |
|
34 |
|
35 // construct and destroy |
|
36 static CTextToSpeechSettingItemListSettings* NewL(); |
|
37 |
|
38 virtual ~CTextToSpeechSettingItemListSettings(); |
|
39 |
|
40 TDes& Edit1(); |
|
41 void SetEdit1(const TDesC& aValue); |
|
42 |
|
43 TInt& EnumeratedTextPopup1(); |
|
44 void SetEnumeratedTextPopup1(const TInt& aValue); |
|
45 |
|
46 TInt& EnumeratedTextPopup2(); |
|
47 void SetEnumeratedTextPopup2(const TInt& aValue); |
|
48 |
|
49 TInt& Slider1(); |
|
50 void SetSlider1(const TInt& aValue); |
|
51 |
|
52 private: |
|
53 |
|
54 // constructors |
|
55 void ConstructL(); |
|
56 CTextToSpeechSettingItemListSettings(); |
|
57 |
|
58 public: |
|
59 |
|
60 TInt iVolume; |
|
61 TInt iMaxVolume; |
|
62 |
|
63 TVoice iVoice; |
|
64 |
|
65 RArray<TLanguage> iLanguages; |
|
66 RArray<TVoice> iVoices; |
|
67 |
|
68 |
|
69 protected: |
|
70 |
|
71 TBuf<KEdit1MaxLength> iEdit1; // Text to be synthesised |
|
72 TInt iEnumeratedTextPopup1; // Language |
|
73 TInt iEnumeratedTextPopup2; // Voice |
|
74 TInt iSlider1; // Speaking rate |
|
75 |
|
76 }; |
|
77 |
|
78 #endif // TEXTTOSPEECHSETTINGITEMLISTSETTINGS_H |