|
1 /* |
|
2 * Copyright (c) 2002-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: Main resource file of chat application |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // Included to get RD_30_COMPATIBILITY_MODE flag |
|
20 #include "impsbuilddefinitions.h" |
|
21 |
|
22 |
|
23 #ifndef RD_30_COMPATIBILITY_MODE |
|
24 // These cannot be compiled in backported 3.0 environment |
|
25 |
|
26 // RSS_RSC_CHAT_VARIATION_BRANDED_TONES |
|
27 // ---------------------------------------------------- |
|
28 // Use branded tone list or not. |
|
29 // If this flag is set on (1) brandable tones are used |
|
30 // and tone list is configured by customer, |
|
31 // see r_audio_clf_list_model and r_audio_fldirectories. |
|
32 // If this flag is disabled (0) brandable tones are |
|
33 // not defined and default tone list is used. |
|
34 // |
|
35 // Default value is (0) |
|
36 // |
|
37 // NOTE! If feature EIMFeatBrandableTones is variated off with |
|
38 // cenrep variation (see IMVariant.hrh and |
|
39 // keys_s60instant_messaging_ui.xls) don't use these variation |
|
40 // flags. Set this to (0). |
|
41 // ---------------------------------------------------- |
|
42 // |
|
43 RESOURCE NUMBER_INT32 RSC_CHAT_BRANDED_TONES { value = 0; } |
|
44 |
|
45 |
|
46 #endif // RD_30_COMPATIBILITY_MODE |
|
47 |
|
48 |
|
49 |
|
50 RESOURCE TBUF r_default_tone { buf = ""; } |
|
51 |
|
52 |
|
53 RESOURCE DIALOG r_chatclient_send_text_query |
|
54 { |
|
55 flags = EGeneralQueryFlags; |
|
56 buttons=R_AVKON_SOFTKEYS_OK_CANCEL__OK; |
|
57 items= |
|
58 { |
|
59 DLG_LINE |
|
60 { |
|
61 type=EAknCtQuery; |
|
62 id=EGeneralQuery; |
|
63 control= AVKON_DATA_QUERY |
|
64 { |
|
65 layout = EDataLayout; |
|
66 label = qtn_chat_opt_new_conv_message; |
|
67 control=EDWIN |
|
68 { |
|
69 flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable; |
|
70 maxlength=400; // this has to be the same as RSS_RSC_CHAT_VARIATION_MESSAGE_MAX_LENGTH |
|
71 width=16; |
|
72 lines=1; |
|
73 default_case = EAknEditorLowerCase; |
|
74 }; |
|
75 }; |
|
76 } |
|
77 }; |
|
78 } |
|
79 |
|
80 #ifndef RD_30_COMPATIBILITY_MODE |
|
81 |
|
82 |
|
83 // r_audio_clf_list_model |
|
84 // ---------------------------------------------------- |
|
85 // If customer specific tones are specifed, |
|
86 // this resource structure must be filled. |
|
87 // |
|
88 // Example (see more from clfcontentlisting.rh): |
|
89 // |
|
90 // RESOURCE CLF_LIST_MODEL r_list_model |
|
91 // { |
|
92 // mime_type_array = CLF_MIME_TYPE_ARRAY |
|
93 // { |
|
94 // mime_types = |
|
95 // { |
|
96 // LBUF { txt = "application/vnd.nokia.ringing-tone"; }, |
|
97 // LBUF { txt = "audio/*"; } |
|
98 // }; |
|
99 // }; |
|
100 // media_type_array = CLF_MEDIA_TYPE_ARRAY |
|
101 // { |
|
102 // media_types = |
|
103 // { |
|
104 // CLF_MEDIA_TYPE { media_type = ECLFMediaTypeSound; } |
|
105 // }; |
|
106 // }; |
|
107 // sorting_style = CLF_SORTING_STYLE |
|
108 // { |
|
109 // ordering = ECLFOrderingAscending; |
|
110 // data_type = ECLFItemDataTypeDesC; |
|
111 // fields = |
|
112 // { |
|
113 // CLF_FIELD_ID { field_id = ECLFFieldIdFileName; } |
|
114 // }; |
|
115 // }; |
|
116 // } |
|
117 // |
|
118 // ---------------------------------------------------- |
|
119 // |
|
120 |
|
121 #include <clfcontentlisting.rh> |
|
122 #include <filelistmodel.rh> |
|
123 #include <pathconfiguration.hrh> |
|
124 RESOURCE CLF_LIST_MODEL r_audio_clf_list_model |
|
125 { |
|
126 mime_type_array = CLF_MIME_TYPE_ARRAY |
|
127 { |
|
128 mime_types = |
|
129 { |
|
130 LBUF { txt = "audio/*"; }, |
|
131 LBUF { txt = "application/vnd.nokia.ringing-tone"; } |
|
132 }; |
|
133 }; |
|
134 media_type_array = CLF_MEDIA_TYPE_ARRAY |
|
135 { |
|
136 media_types = |
|
137 { |
|
138 CLF_MEDIA_TYPE { media_type = ECLFMediaTypeSound; } |
|
139 }; |
|
140 }; |
|
141 sorting_style = CLF_SORTING_STYLE |
|
142 { |
|
143 ordering = ECLFOrderingAscending; |
|
144 data_type = ECLFItemDataTypeDesC; |
|
145 fields = |
|
146 { |
|
147 CLF_FIELD_ID { field_id = ECLFFieldIdFileName; } |
|
148 }; |
|
149 }; |
|
150 } |
|
151 |
|
152 // r_audio_fldirectories |
|
153 // ---------------------------------------------------- |
|
154 // If customer specific tones are specifed, |
|
155 // this resource structure must be filled. |
|
156 // |
|
157 // Example (see more from filelistmodel.rh): |
|
158 // |
|
159 // RESOURCE FILELISTDIRECTORIES r_audio_fldirectories |
|
160 // { |
|
161 // // Scan these ROM directories |
|
162 // // Can be left empty -> only tones from PhoneDirectories are shown |
|
163 // RomDirectories = |
|
164 // { |
|
165 // LBUF { txt = text_rom_root_path text_sounds_path; }, |
|
166 // LBUF { txt = text_rom_root_path text_digital_sounds_path; }, |
|
167 // LBUF { txt = text_rom_root_path text_simple_sounds_path; } |
|
168 // }; |
|
169 // // Show only these phone directories |
|
170 // // NOTE! These locations must be |
|
171 // // inside C:\\data and E: folders (including subdirectories) |
|
172 // PhoneDirectories = |
|
173 // { |
|
174 // LBUF { txt = "c:\\data\\sounds\\IMSounds\\"; }, |
|
175 // LBUF { txt = "c:\\data\\sounds\\digital\\IMSounds\\"; } |
|
176 // }; |
|
177 // ---------------------------------------------------- |
|
178 // |
|
179 RESOURCE FILELISTDIRECTORIES r_audio_fldirectories |
|
180 { |
|
181 // Scan these ROM directories |
|
182 RomDirectories = |
|
183 { |
|
184 LBUF { txt = text_rom_root_path text_sounds_path; }, |
|
185 LBUF { txt = text_rom_root_path text_digital_sounds_path; }, |
|
186 LBUF { txt = text_rom_root_path text_simple_sounds_path; } |
|
187 }; |
|
188 // Show only these these phone directories |
|
189 // NOTE! These locations must be |
|
190 // inside C:\\data and E: folders (including subdirectories) |
|
191 PhoneDirectories = |
|
192 { |
|
193 LBUF { txt = "c:\\data\\sounds\\imsounds\\"; } |
|
194 }; |
|
195 } |
|
196 #endif // RD_30_COMPATIBILITY_MODE |
|
197 |
|
198 |
|
199 //---------------------------------------------------- |
|
200 // S60 v3.0 Compatibility resources |
|
201 //---------------------------------------------------- |
|
202 // |
|
203 #ifdef RD_30_COMPATIBILITY_MODE |
|
204 #include "CAVariation30.rss" |
|
205 #endif //RD_30_COMPATIBILITY_MODE |