|
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 ECmdUSBChange, |
|
73 |
|
74 ECmdSendVia // This MUST be the last entry |
|
75 }; |
|
76 |
|
77 enum TVRRecViewStates |
|
78 { |
|
79 EStateIdle = 0, |
|
80 EStateDeleted, |
|
81 EStateRecording, |
|
82 EStateRecordEmbedded, |
|
83 EStatePlaying, |
|
84 EStatePlayingPaused, |
|
85 EStateRecordingPaused, |
|
86 EStateIdleEmbedded, |
|
87 EStateIdleRecordEmbedded, |
|
88 EStateNRTIdle, |
|
89 EStateNRTPlaying, |
|
90 EStateDisableButtons, // all buttons disabled for no in-call recording feature |
|
91 |
|
92 ENumStates, // this must be the last line |
|
93 EStateInitial = 255 |
|
94 }; |
|
95 |
|
96 enum TVRRecViewLabels |
|
97 { |
|
98 ELabelMemoName = 0, |
|
99 ELabelMemoDate, |
|
100 ELabelMemoQuality, |
|
101 ELabelBarMin, |
|
102 ELabelBarMax, |
|
103 ELabelStatus, |
|
104 ELabelQualityText, |
|
105 ENumLabels // this must be the last line |
|
106 }; |
|
107 |
|
108 enum TVRFunctions |
|
109 { |
|
110 EFunctionNop = 0, |
|
111 EFunctionPlay, |
|
112 EFunctionStop, |
|
113 EFunctionRecord, |
|
114 EFunctionPause, |
|
115 EFunctionForward, |
|
116 EFunctionRewind, |
|
117 EFunctionRecordNew, |
|
118 EFunctionDelete, |
|
119 EFunctionRename, |
|
120 EFunctionStopAndSave, |
|
121 EFunctionStopWithNote, |
|
122 EFunctionOk, |
|
123 EFunctionCancel, |
|
124 EFunctionAutoStopAndSave, |
|
125 EFunctionSilentStopAndSave, |
|
126 EFunctionAutoStop, |
|
127 EFunctionNRTStop, |
|
128 EFunctionNRTAutoStop, |
|
129 EFunctionSaveBeforeExit, |
|
130 EFunctionSetNewPosition, // Progress Bar Touch |
|
131 ENumFunctions |
|
132 }; |
|
133 |
|
134 enum TVRSpeaker |
|
135 { |
|
136 ESpeakerEarPiece, |
|
137 ESpeakerIhf |
|
138 }; |
|
139 |
|
140 // EQualityMMSOptimized -> save file as amr |
|
141 // EQualityNormal is used only when mp4 is supported, save file as wav |
|
142 // EQualityHigh -> when mp4 is supported, save file as mp4, otherwise save as wave |
|
143 enum TVRQuality |
|
144 { |
|
145 EQualityMMSOptimized, |
|
146 |
|
147 #ifdef __AAC_ENCODER_PLUGIN |
|
148 EQualityNormal, |
|
149 #endif |
|
150 |
|
151 EQualityHigh |
|
152 }; |
|
153 |
|
154 enum TVRButtons |
|
155 { |
|
156 EButtonPlay = 0, |
|
157 EButtonStop, |
|
158 EButtonRecord, |
|
159 EButtonRewind, |
|
160 EButtonForward |
|
161 }; |
|
162 |
|
163 enum TVRSettingFeatures |
|
164 { |
|
165 ESettingQuality = 0, |
|
166 ESettingMemoStore |
|
167 }; |
|
168 |
|
169 #define VRMEMONAMEMAXLENGTH 20 |
|
170 #define VRLABELMAXLENGTH 32 |
|
171 |
|
172 #endif // __VOICERECORDER_HRH_ |