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 * Defines commands and control identifiers. |
|
16 * The file can be included in C++ or resource file. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __VOICERECORDER_HRH_ |
|
22 #define __VOICERECORDER_HRH_ |
|
23 |
|
24 // INCLUDES |
|
25 #include "VoiceRecorderContexts.h" |
|
26 #include <bldvariant.hrh> |
|
27 |
|
28 enum TVRDialogIds |
|
29 { |
|
30 EVRSettingsListboxId = 1 //Dialog control ID can't be zero |
|
31 }; |
|
32 |
|
33 enum TVRButtonStates |
|
34 { |
|
35 ENormal = 0, |
|
36 EDimmed, |
|
37 EPressed |
|
38 }; |
|
39 |
|
40 enum TVRCommands |
|
41 { |
|
42 ECmdPlay = 100, // Don't override EIKON IDs.. |
|
43 ECmdPause, |
|
44 ECmdStop, |
|
45 ECmdAutoStopInterrupted, |
|
46 ECmdAutoStopAtEnd, |
|
47 ECmdSilentStop, |
|
48 ECmdRecord, |
|
49 ECmdRewind, |
|
50 ECmdForward, |
|
51 ECmdRecordNew, |
|
52 ECmdOpen, |
|
53 ECmdDelete, |
|
54 ECmdAddToPinboard, |
|
55 ECmdRename, |
|
56 ECmdSaveAttachment, |
|
57 ECmdOk, |
|
58 ECmdCancel, |
|
59 ECmdSettings, |
|
60 ECmdEditListCascade, |
|
61 ECmdChange, |
|
62 ECmdHelp, |
|
63 ECmdEndKey, |
|
64 ECmdCancelNote, |
|
65 ECmdEmbeddedRecordingReady, |
|
66 ECmdDisconnectCall, |
|
67 ECmdNewFileServiceNotify, |
|
68 ECmdMSK, // When Middle Softkey is pressed |
|
69 ECmdSetNewPosition, // Progress Bar Touch |
|
70 ECmdNOP, // No operation |
|
71 ECmdGoToMyClips, |
|
72 |
|
73 ECmdSendVia // This MUST be the last entry |
|
74 }; |
|
75 |
|
76 enum TVRRecViewStates |
|
77 { |
|
78 EStateIdle = 0, |
|
79 EStateDeleted, |
|
80 EStateRecording, |
|
81 EStateRecordEmbedded, |
|
82 EStatePlaying, |
|
83 EStatePlayingPaused, |
|
84 EStateRecordingPaused, |
|
85 EStateIdleEmbedded, |
|
86 EStateIdleRecordEmbedded, |
|
87 EStateNRTIdle, |
|
88 EStateNRTPlaying, |
|
89 EStateDisableButtons, // all buttons disabled for no in-call recording feature |
|
90 |
|
91 ENumStates, // this must be the last line |
|
92 EStateInitial = 255 |
|
93 }; |
|
94 |
|
95 enum TVRRecViewLabels |
|
96 { |
|
97 ELabelMemoName = 0, |
|
98 ELabelMemoDate, |
|
99 ELabelMemoQuality, |
|
100 ELabelBarMin, |
|
101 ELabelBarMax, |
|
102 ELabelStatus, |
|
103 ELabelQualityText, |
|
104 ENumLabels // this must be the last line |
|
105 }; |
|
106 |
|
107 enum TVRFunctions |
|
108 { |
|
109 EFunctionNop = 0, |
|
110 EFunctionPlay, |
|
111 EFunctionStop, |
|
112 EFunctionRecord, |
|
113 EFunctionPause, |
|
114 EFunctionForward, |
|
115 EFunctionRewind, |
|
116 EFunctionRecordNew, |
|
117 EFunctionDelete, |
|
118 EFunctionRename, |
|
119 EFunctionStopAndSave, |
|
120 EFunctionStopWithNote, |
|
121 EFunctionOk, |
|
122 EFunctionCancel, |
|
123 EFunctionAutoStopAndSave, |
|
124 EFunctionSilentStopAndSave, |
|
125 EFunctionAutoStop, |
|
126 EFunctionNRTStop, |
|
127 EFunctionNRTAutoStop, |
|
128 EFunctionSaveBeforeExit, |
|
129 EFunctionSetNewPosition, // Progress Bar Touch |
|
130 ENumFunctions |
|
131 }; |
|
132 |
|
133 enum TVRSpeaker |
|
134 { |
|
135 ESpeakerEarPiece, |
|
136 ESpeakerIhf |
|
137 }; |
|
138 |
|
139 // EQualityMMSOptimized -> save file as amr |
|
140 // EQualityNormal is used only when mp4 is supported, save file as wav |
|
141 // EQualityHigh -> when mp4 is supported, save file as mp4, otherwise save as wave |
|
142 enum TVRQuality |
|
143 { |
|
144 EQualityMMSOptimized, |
|
145 |
|
146 #ifdef __AAC_ENCODER_PLUGIN |
|
147 EQualityNormal, |
|
148 #endif |
|
149 |
|
150 EQualityHigh |
|
151 }; |
|
152 |
|
153 enum TVRButtons |
|
154 { |
|
155 EButtonPlay = 0, |
|
156 EButtonStop, |
|
157 EButtonRecord, |
|
158 EButtonRewind, |
|
159 EButtonForward |
|
160 }; |
|
161 |
|
162 enum TVRSettingFeatures |
|
163 { |
|
164 ESettingQuality = 0, |
|
165 ESettingMemoStore |
|
166 }; |
|
167 |
|
168 #define VRMEMONAMEMAXLENGTH 20 |
|
169 #define VRLABELMAXLENGTH 32 |
|
170 |
|
171 #endif // __VOICERECORDER_HRH_ |
|