80
|
1 |
/*
|
|
2 |
* Copyright (c) 2005, 2006 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: This file contains all the resources for the module
|
|
15 |
* USBUINotif.
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
|
|
20 |
NAME USBN
|
|
21 |
|
|
22 |
#include <eikon.rsg>
|
|
23 |
#include <eikon.rh>
|
|
24 |
|
|
25 |
#include <avkon.rsg>
|
|
26 |
#include <avkon.rh>
|
|
27 |
#include <avkon.mbg>
|
|
28 |
#include <avkon.loc>
|
|
29 |
|
|
30 |
#include <usbuinotif.loc>
|
|
31 |
|
|
32 |
|
|
33 |
RESOURCE RSS_SIGNATURE { }
|
|
34 |
|
|
35 |
//default document name - not used
|
|
36 |
RESOURCE TBUF { buf=""; }
|
|
37 |
|
|
38 |
// === QUERIES ================================================================
|
|
39 |
|
|
40 |
//-----------------------------------------------------------------------------
|
|
41 |
// r_usb_query_with_cancel
|
|
42 |
// Query resource (with Cancel)
|
|
43 |
//-----------------------------------------------------------------------------
|
|
44 |
//
|
|
45 |
RESOURCE DIALOG r_usb_query_with_cancel
|
|
46 |
{
|
|
47 |
flags = EGeneralQueryFlags;
|
|
48 |
buttons = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
|
|
49 |
items =
|
|
50 |
{
|
|
51 |
DLG_LINE
|
|
52 |
{
|
|
53 |
type = EAknCtQuery;
|
|
54 |
id = EGeneralQuery;
|
|
55 |
control = AVKON_CONFIRMATION_QUERY
|
|
56 |
{
|
|
57 |
layout = EConfirmationQueryLayout;
|
|
58 |
animation = R_QGN_NOTE_QUERY_ANIM;
|
|
59 |
};
|
|
60 |
}
|
|
61 |
};
|
|
62 |
}
|
|
63 |
|
|
64 |
//-----------------------------------------------------------------------------
|
|
65 |
// r_usb_query_without_cancel
|
|
66 |
// Query resource (without Cancel)
|
|
67 |
//-----------------------------------------------------------------------------
|
|
68 |
//
|
|
69 |
RESOURCE DIALOG r_usb_query_without_cancel
|
|
70 |
{
|
|
71 |
flags = EGeneralQueryFlags;
|
|
72 |
buttons = R_AVKON_SOFTKEYS_OK_EMPTY__OK;
|
|
73 |
items =
|
|
74 |
{
|
|
75 |
DLG_LINE
|
|
76 |
{
|
|
77 |
type = EAknCtQuery;
|
|
78 |
id = EGeneralQuery;
|
|
79 |
control = AVKON_CONFIRMATION_QUERY
|
|
80 |
{
|
|
81 |
layout = EConfirmationQueryLayout;
|
|
82 |
animation = R_QGN_NOTE_INFO_ANIM;
|
|
83 |
};
|
|
84 |
}
|
|
85 |
};
|
|
86 |
}
|
|
87 |
|
|
88 |
|
|
89 |
//-----------------------------------------------------------------------------
|
|
90 |
// r_usb_on_connection_query
|
|
91 |
// Defines a dialog for usb mode query
|
|
92 |
//-----------------------------------------------------------------------------
|
|
93 |
//
|
|
94 |
RESOURCE AVKON_LIST_QUERY r_usb_on_connection_query
|
|
95 |
{
|
|
96 |
items =
|
|
97 |
{
|
|
98 |
AVKON_LIST_QUERY_DLG_LINE
|
|
99 |
{
|
|
100 |
control = AVKON_LIST_QUERY_CONTROL
|
|
101 |
{
|
|
102 |
listtype = EAknCtSingleGraphicPopupMenuListBox;
|
|
103 |
listbox = AVKON_LIST_QUERY_LIST
|
|
104 |
{
|
|
105 |
array_id = r_usb_empty_array;
|
|
106 |
};
|
|
107 |
heading = qtn_usb_mode_query_header;
|
|
108 |
};
|
|
109 |
}
|
|
110 |
};
|
|
111 |
}
|
|
112 |
|
|
113 |
|
|
114 |
//-----------------------------------------------------------------------------
|
|
115 |
//Prompts for message queries
|
|
116 |
//-----------------------------------------------------------------------------
|
|
117 |
//
|
|
118 |
RESOURCE TBUF r_usb_mode_msg_header {
|
|
119 |
buf=qtn_usb_mode_msg_header; }
|
|
120 |
|
|
121 |
RESOURCE TBUF r_usb_mode_msg_mass_storage {
|
|
122 |
buf= "%U mode :\n"qtn_usb_mode_msg_mass_storage"\n<AknMessageQuery Link>"qtn_usb_mode_msg_link"</AknMessageQuery Link>"; }
|
|
123 |
|
|
124 |
RESOURCE TBUF r_usb_mode_msg_pc_suite {
|
|
125 |
buf= "%U mode :\n"qtn_usb_mode_msg_pc_suite"\n<AknMessageQuery Link>" qtn_usb_mode_msg_link"</AknMessageQuery Link>"; }
|
|
126 |
|
|
127 |
RESOURCE TBUF r_usb_mode_msg_mtp {
|
|
128 |
buf= "%U mode :\n"qtn_usb_mode_msg_mtp"\n<AknMessageQuery Link>" qtn_usb_mode_msg_link"</AknMessageQuery Link>"; }
|
|
129 |
|
|
130 |
RESOURCE TBUF r_usb_mode_msg_ptp {
|
|
131 |
buf= "%U mode :\n"qtn_usb_mode_msg_ptp"\n<AknMessageQuery Link>" qtn_usb_mode_msg_link"</AknMessageQuery Link>"; }
|
|
132 |
|
|
133 |
RESOURCE TBUF r_usb_mode_msg_link {
|
|
134 |
buf=qtn_usb_mode_msg_link; }
|
|
135 |
|
|
136 |
//-----------------------------------------------------------------------------
|
|
137 |
// r_usb_on_connection_message_query
|
|
138 |
// Defines a dialog for ask on connection query
|
|
139 |
//-----------------------------------------------------------------------------
|
|
140 |
//
|
|
141 |
RESOURCE DIALOG r_usb_on_connection_message_query
|
|
142 |
{
|
|
143 |
flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
|
|
144 |
buttons = R_AVKON_SOFTKEYS_OK_EMPTY__OK;
|
|
145 |
items=
|
|
146 |
{
|
|
147 |
DLG_LINE
|
|
148 |
{
|
|
149 |
type = EAknCtPopupHeadingPane;
|
|
150 |
id = EAknMessageQueryHeaderId;
|
|
151 |
control = AVKON_HEADING
|
|
152 |
{
|
|
153 |
label = header_not_defined;
|
|
154 |
};
|
|
155 |
},
|
|
156 |
DLG_LINE
|
|
157 |
{
|
|
158 |
type = EAknCtMessageQuery;
|
|
159 |
id = EAknMessageQueryContentId;
|
|
160 |
control = AVKON_MESSAGE_QUERY
|
|
161 |
{
|
|
162 |
};
|
|
163 |
}
|
|
164 |
};
|
|
165 |
}
|
|
166 |
|
|
167 |
|
|
168 |
//-----------------------------------------------------------------------------
|
|
169 |
// r_usb_empty_array
|
|
170 |
// Defines an empty array
|
|
171 |
//-----------------------------------------------------------------------------
|
|
172 |
RESOURCE ARRAY r_usb_empty_array
|
|
173 |
{
|
|
174 |
items=
|
|
175 |
{
|
|
176 |
LBUF { txt=""; }
|
|
177 |
};
|
|
178 |
}
|
|
179 |
|
|
180 |
|
|
181 |
//-----------------------------------------------------------------------------
|
|
182 |
// Prompts for information notes
|
|
183 |
//-----------------------------------------------------------------------------
|
|
184 |
//
|
|
185 |
|
|
186 |
//-----------------------------------------------------------------------------
|
|
187 |
// Prompts for confirmation queries
|
|
188 |
//-----------------------------------------------------------------------------
|
|
189 |
//
|
|
190 |
#ifndef RD_MULTIPLE_DRIVE
|
|
191 |
RESOURCE TBUF r_usb_memory_card_locked {
|
|
192 |
buf = qtn_usb_mode_note_memory_card_locked; }
|
|
193 |
|
|
194 |
RESOURCE TBUF r_usb_cable_unsafely_removed {
|
|
195 |
buf = qtn_usb_mode_note_cable_unsafely_removed; }
|
|
196 |
|
|
197 |
RESOURCE TBUF r_usb_memorycard_unsafely_removed {
|
|
198 |
buf = qtn_usb_mode_note_mmc_unsafely_removed; }
|
|
199 |
#endif
|
|
200 |
|
|
201 |
RESOURCE TBUF r_usb_change_from_mass_storage {
|
|
202 |
buf = qtn_usb_mode_query_change_from_mass_storage; }
|
|
203 |
|
|
204 |
RESOURCE TBUF r_usb_storage_media_failure {
|
|
205 |
buf = qtn_usb_mode_note_storage_media_failure; }
|
|
206 |
|
|
207 |
// USB OTG Resources
|
|
208 |
|
|
209 |
//-----------------------------------------------------------------------------
|
|
210 |
// r_usb_query_otg_error
|
|
211 |
//-----------------------------------------------------------------------------
|
|
212 |
//
|
|
213 |
RESOURCE DIALOG r_usb_query_otg_error
|
|
214 |
{
|
|
215 |
flags = EGeneralQueryFlags;
|
|
216 |
buttons = R_AVKON_SOFTKEYS_OK_EMPTY__OK;
|
|
217 |
items =
|
|
218 |
{
|
|
219 |
DLG_LINE
|
|
220 |
{
|
|
221 |
type = EAknCtQuery;
|
|
222 |
id = EGeneralQuery;
|
|
223 |
control = AVKON_CONFIRMATION_QUERY
|
|
224 |
{
|
|
225 |
layout = EConfirmationQueryLayout;
|
|
226 |
animation = R_QGN_NOTE_ERROR_ANIM;
|
|
227 |
};
|
|
228 |
}
|
|
229 |
};
|
|
230 |
}
|
|
231 |
|
|
232 |
RESOURCE TBUF r_usb_otg_error_current_limit {
|
|
233 |
buf = qtn_usb_otg_error_current_limit; }
|
|
234 |
|
|
235 |
RESOURCE TBUF r_usb_otg_error_too_much_current_required {
|
|
236 |
buf = qtn_usb_otg_error_too_much_current_required; }
|
|
237 |
|
|
238 |
RESOURCE TBUF r_usb_otg_error_unsupported {
|
|
239 |
buf = qtn_usb_otg_error_unsupported; }
|
|
240 |
|
|
241 |
RESOURCE TBUF r_usb_otg_error_hub_unsupported {
|
|
242 |
buf = qtn_usb_otg_error_hub; }
|
|
243 |
|
|
244 |
RESOURCE TBUF r_usb_otg_error_unrecoverable {
|
|
245 |
buf = qtn_usb_otg_error_unrecoverable; }
|
|
246 |
|
|
247 |
RESOURCE TBUF r_usb_otg_warning_partial_support {
|
|
248 |
buf = qtn_usb_otg_warning_partial_support; }
|
|
249 |
|
|
250 |
RESOURCE TBUF r_usb_no_memory_card {
|
|
251 |
buf = qtn_usb_mode_query_no_memory_card; }
|
|
252 |
|
|
253 |
RESOURCE TBUF r_usb_otg_error_attach_timedout {
|
|
254 |
buf = qtn_usb_otg_error_cable; }
|
|
255 |
|
|
256 |
RESOURCE TBUF r_usb_msmm_error_unknown_filesystem {
|
|
257 |
buf = qtn_usb_otg_error_unsupported_filesystem; }
|
|
258 |
|
|
259 |
RESOURCE TBUF r_usb_msmm_error_general_mass_storage_error {
|
|
260 |
buf = qtn_usb_otg_general_mass_storage_error; }
|
|
261 |
|
|
262 |
RESOURCE TBUF r_usb_msmm_error_out_of_memory {
|
|
263 |
buf = qtn_memlo_not_enough_memory; }
|
|
264 |
|
|
265 |
RESOURCE TBUF r_usb_error_memory_not_enough {
|
|
266 |
buf = qtn_usb_error_memory_not_enough; }
|
|
267 |
|
|
268 |
RESOURCE TBUF r_usb_error_disk_full {
|
|
269 |
buf = qtn_usb_error_disk_full; }
|
|
270 |
|
|
271 |
// End of File
|