0
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-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: Symbian resource file
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
NAME ECMT
|
|
20 |
|
|
21 |
#include <eikon.rh>
|
|
22 |
#include <avkon.rh>
|
|
23 |
#include <avkon.rsg>
|
|
24 |
#include <avkon.mbg>
|
|
25 |
#include <appinfo.rh>
|
|
26 |
#include <data_caging_paths_strings.hrh>
|
|
27 |
|
|
28 |
#include "EcmtGui.hrh"
|
|
29 |
#include "EcmtGui.loc"
|
|
30 |
|
|
31 |
// ---------------------------------------------------------
|
|
32 |
//
|
|
33 |
// Define the resource file signature
|
|
34 |
// This resource should be empty.
|
|
35 |
//
|
|
36 |
// ---------------------------------------------------------
|
|
37 |
RESOURCE RSS_SIGNATURE
|
|
38 |
{
|
|
39 |
}
|
|
40 |
|
|
41 |
// ---------------------------------------------------------
|
|
42 |
//
|
|
43 |
// Default Document Name
|
|
44 |
//
|
|
45 |
// ---------------------------------------------------------
|
|
46 |
RESOURCE TBUF r_default_document_name
|
|
47 |
{
|
|
48 |
buf="ECMT";
|
|
49 |
}
|
|
50 |
|
|
51 |
// ---------------------------------------------------------
|
|
52 |
//
|
|
53 |
// Define default menu and CBA key.
|
|
54 |
//
|
|
55 |
// ---------------------------------------------------------
|
|
56 |
RESOURCE EIK_APP_INFO
|
|
57 |
{
|
|
58 |
menubar = r_ecmtgui_log_menubar;
|
|
59 |
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
|
|
60 |
}
|
|
61 |
|
|
62 |
//----------------------------------------------------
|
|
63 |
// r_ecmtgui_log_view
|
|
64 |
//----------------------------------------------------
|
|
65 |
//
|
|
66 |
RESOURCE AVKON_VIEW r_ecmtgui_log_view
|
|
67 |
{
|
|
68 |
menubar = r_ecmtgui_log_menubar;
|
|
69 |
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
|
|
70 |
}
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
// ---------------------------------------------------------
|
|
75 |
//
|
|
76 |
// r_ecmtgui_log_menubar
|
|
77 |
// Menubar for EcmtGui
|
|
78 |
//
|
|
79 |
// ---------------------------------------------------------
|
|
80 |
RESOURCE MENU_BAR r_ecmtgui_log_menubar
|
|
81 |
{
|
|
82 |
titles =
|
|
83 |
{
|
|
84 |
MENU_TITLE
|
|
85 |
{
|
|
86 |
menu_pane = r_ecmtgui_log_menu;
|
|
87 |
}
|
|
88 |
};
|
|
89 |
}
|
|
90 |
|
|
91 |
|
|
92 |
// ---------------------------------------------------------
|
|
93 |
//
|
|
94 |
// r_ecmtgui_menu
|
|
95 |
// Menu for "Options"
|
|
96 |
//
|
|
97 |
// ---------------------------------------------------------
|
|
98 |
RESOURCE MENU_PANE r_ecmtgui_log_menu
|
|
99 |
{
|
|
100 |
items =
|
|
101 |
{
|
|
102 |
MENU_ITEM
|
|
103 |
{
|
|
104 |
command = EEcmtGuiCmdStart;
|
|
105 |
txt = qtn_start_server;
|
|
106 |
},
|
|
107 |
MENU_ITEM
|
|
108 |
{
|
|
109 |
command = EEcmtGuiCmdStop;
|
|
110 |
txt = qtn_stop_server;
|
|
111 |
},
|
|
112 |
MENU_ITEM
|
|
113 |
{
|
|
114 |
command = EEcmtGuiCmdClearLog;
|
|
115 |
txt = qtn_clear_log;
|
|
116 |
},
|
|
117 |
MENU_ITEM
|
|
118 |
{
|
|
119 |
command = EEcmtGuiCmdWlanOdd;
|
|
120 |
txt = "WLAN ODD";
|
|
121 |
},
|
|
122 |
MENU_ITEM
|
|
123 |
{
|
|
124 |
command = EEcmtGuiCmdSettings;
|
|
125 |
txt = "Settings";
|
|
126 |
},
|
|
127 |
MENU_ITEM
|
|
128 |
{
|
|
129 |
command = EAknSoftkeyExit;
|
|
130 |
txt = qtn_exit;
|
|
131 |
}
|
|
132 |
};
|
|
133 |
}
|
|
134 |
|
|
135 |
//----------------------------------------------------
|
|
136 |
// r_ecmtgui_settings_view
|
|
137 |
//----------------------------------------------------
|
|
138 |
//
|
|
139 |
RESOURCE AVKON_VIEW r_ecmtgui_settings_view
|
|
140 |
{
|
|
141 |
menubar = r_ecmtgui_settings_menubar;
|
|
142 |
cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
|
|
143 |
}
|
|
144 |
|
|
145 |
// ---------------------------------------------------------
|
|
146 |
//
|
|
147 |
// r_ecmtgui_settings_menubar
|
|
148 |
// Menubar for EcmtGui
|
|
149 |
//
|
|
150 |
// ---------------------------------------------------------
|
|
151 |
RESOURCE MENU_BAR r_ecmtgui_settings_menubar
|
|
152 |
{
|
|
153 |
titles =
|
|
154 |
{
|
|
155 |
MENU_TITLE
|
|
156 |
{
|
|
157 |
menu_pane = r_ecmtgui_settings_menu;
|
|
158 |
}
|
|
159 |
};
|
|
160 |
}
|
|
161 |
|
|
162 |
|
|
163 |
// ---------------------------------------------------------
|
|
164 |
//
|
|
165 |
// r_ecmtgui_settings_menu
|
|
166 |
// Menu for "Options"
|
|
167 |
//
|
|
168 |
// ---------------------------------------------------------
|
|
169 |
RESOURCE MENU_PANE r_ecmtgui_settings_menu
|
|
170 |
{
|
|
171 |
items =
|
|
172 |
{
|
|
173 |
MENU_ITEM
|
|
174 |
{
|
|
175 |
command = EEcmtGuiCmdChange;
|
|
176 |
txt = "Change";
|
|
177 |
},
|
|
178 |
MENU_ITEM
|
|
179 |
{
|
|
180 |
command = EAknSoftkeyExit;
|
|
181 |
txt = qtn_exit;
|
|
182 |
}
|
|
183 |
};
|
|
184 |
}
|
|
185 |
|
|
186 |
|
|
187 |
RESOURCE AVKON_SETTING_ITEM_LIST r_ecmtgui_setting_item_list
|
|
188 |
{
|
|
189 |
title = "Setting title";
|
|
190 |
initial_number = 1;
|
|
191 |
items =
|
|
192 |
{
|
|
193 |
|
|
194 |
AVKON_SETTING_ITEM
|
|
195 |
{
|
|
196 |
identifier = EEcmtGuiSettingBearer;
|
|
197 |
setting_page_resource = r_ecmtgui_bearer_setting_page;
|
|
198 |
associated_resource = r_ecmtgui_popup_setting_bearer;
|
|
199 |
name = "Bearer";
|
|
200 |
}
|
|
201 |
|
|
202 |
};
|
|
203 |
}
|
|
204 |
|
|
205 |
//----------------------------------------------------------------------------
|
|
206 |
//
|
|
207 |
// r_ecmtgui_popup_setting_bearer
|
|
208 |
// Bearer setting uses value array
|
|
209 |
//
|
|
210 |
//----------------------------------------------------------------------------
|
|
211 |
//
|
|
212 |
RESOURCE AVKON_POPUP_SETTING_TEXTS r_ecmtgui_popup_setting_bearer
|
|
213 |
{
|
|
214 |
flags = 0;
|
|
215 |
setting_texts_resource = r_ecmtgui_bearer_texts;
|
|
216 |
}
|
|
217 |
|
|
218 |
//----------------------------------------------------------------------------
|
|
219 |
//
|
|
220 |
// r_ecmtgui_bearer_texts
|
|
221 |
//
|
|
222 |
//
|
|
223 |
//----------------------------------------------------------------------------
|
|
224 |
//
|
|
225 |
RESOURCE ARRAY r_ecmtgui_bearer_texts
|
|
226 |
{
|
|
227 |
items =
|
|
228 |
{
|
|
229 |
//AVKON_ENUMERATED_TEXT { value=0; text = "USB"; },
|
|
230 |
//AVKON_ENUMERATED_TEXT { value=1; text = "WLAN"; },
|
|
231 |
//AVKON_ENUMERATED_TEXT { value=2; text = "Bluetooth"; }
|
|
232 |
};
|
|
233 |
}
|
|
234 |
|
|
235 |
|
|
236 |
//----------------------------------------------------------------------------
|
|
237 |
//
|
|
238 |
// r_registration_gender_setting_page
|
|
239 |
// Gender setting label
|
|
240 |
//
|
|
241 |
//----------------------------------------------------------------------------
|
|
242 |
//
|
|
243 |
RESOURCE AVKON_SETTING_PAGE r_ecmtgui_bearer_setting_page
|
|
244 |
{
|
|
245 |
//number= 0;
|
|
246 |
label= "Select bearer";
|
|
247 |
type = EAknCtPopupSettingList;
|
|
248 |
editor_resource_id = r_ecmtgui_bearer_popup_setting_list;
|
|
249 |
}
|
|
250 |
|
|
251 |
RESOURCE POPUP_SETTING_LIST r_ecmtgui_bearer_popup_setting_list
|
|
252 |
{
|
|
253 |
flags = 0;
|
|
254 |
}
|
|
255 |
|
|
256 |
|
|
257 |
|
|
258 |
// ---------------------------------------------------------
|
|
259 |
// String resources
|
|
260 |
// ---------------------------------------------------------
|
|
261 |
RESOURCE TBUF r_server_running
|
|
262 |
{
|
|
263 |
buf = qtn_server_running;
|
|
264 |
}
|
|
265 |
|
|
266 |
RESOURCE TBUF r_server_start_error
|
|
267 |
{
|
|
268 |
buf = qtn_server_start_error;
|
|
269 |
}
|
|
270 |
|
|
271 |
RESOURCE TBUF r_server_stopped
|
|
272 |
{
|
|
273 |
buf = qtn_stopped;
|
|
274 |
}
|
|
275 |
|
|
276 |
RESOURCE TBUF r_error_getting_notification
|
|
277 |
{
|
|
278 |
buf = qtn_error_getting_notification;
|
|
279 |
}
|
|
280 |
|
|
281 |
// ---------------------------------------------------------
|
|
282 |
// Application info
|
|
283 |
// ---------------------------------------------------------
|
|
284 |
RESOURCE LOCALISABLE_APP_INFO r_ecmtgui_app_info
|
|
285 |
{
|
|
286 |
short_caption = qtn_app_short_caption_string;
|
|
287 |
caption_and_icon =
|
|
288 |
CAPTION_AND_ICON_INFO
|
|
289 |
{
|
|
290 |
caption = qtn_app_caption_string;
|
|
291 |
number_of_icons = 1;
|
|
292 |
icon_file = APP_BITMAP_DIR"\\EcmtGui_AIF.mif";
|
|
293 |
//number_of_icons = 2;
|
|
294 |
//icon_file = APP_BITMAP_DIR"\\EcmtGui_AIF.mbm";
|
|
295 |
};
|
|
296 |
}
|
|
297 |
|
|
298 |
|
|
299 |
|
|
300 |
RESOURCE AVKON_LIST_QUERY r_ecmtgui_list_query
|
|
301 |
{
|
|
302 |
flags = EGeneralQueryFlags;
|
|
303 |
softkeys = R_AVKON_SOFTKEYS_OK_CANCEL;
|
|
304 |
items =
|
|
305 |
{
|
|
306 |
AVKON_LIST_QUERY_DLG_LINE
|
|
307 |
{
|
|
308 |
control = AVKON_LIST_QUERY_CONTROL
|
|
309 |
{
|
|
310 |
listtype = EAknCtSinglePopupMenuListBox;
|
|
311 |
heading = "Select WLAN IAP";
|
|
312 |
|
|
313 |
listbox = AVKON_LIST_QUERY_LIST
|
|
314 |
{
|
|
315 |
//array_id = r_demo_list_query_item;
|
|
316 |
};
|
|
317 |
};
|
|
318 |
}
|
|
319 |
};
|
|
320 |
}
|
|
321 |
|
|
322 |
RESOURCE ARRAY r_demo_list_query_item
|
|
323 |
|
|
324 |
{
|
|
325 |
|
|
326 |
items =
|
|
327 |
|
|
328 |
{
|
|
329 |
|
|
330 |
LBUF {txt = "First item"; },
|
|
331 |
|
|
332 |
LBUF {txt = "Second item"; },
|
|
333 |
|
|
334 |
LBUF {txt = "Third item"; }
|
|
335 |
|
|
336 |
};
|
|
337 |
|
|
338 |
}
|
|
339 |
//--------------------------------------------------------------------
|
|
340 |
// resorce for Ecmt wlan odd view
|
|
341 |
//--------------------------------------------------------------------
|
|
342 |
|
|
343 |
RESOURCE CBA r_listbox_settingview_options_exit__change
|
|
344 |
{
|
|
345 |
flags = 0;
|
|
346 |
buttons =
|
|
347 |
{
|
|
348 |
CBA_BUTTON {id=EAknSoftkeyOptions; txt=qtn_r_listbox_options;},
|
|
349 |
CBA_BUTTON {id=EAknSoftkeyBack; txt="Back";},
|
|
350 |
//CBA_BUTTON {id=EAknSoftkeyExit; txt=qtn_r_listbox_exit;},
|
|
351 |
CBA_BUTTON {id=EListboxCmdChange; txt=qtn_r_listbox_change_settingitem;}
|
|
352 |
};
|
|
353 |
}
|
|
354 |
|
|
355 |
RESOURCE AVKON_VIEW r_listbox_settings_view
|
|
356 |
{
|
|
357 |
menubar = r_listbox_settings_menubar;
|
|
358 |
cba = r_listbox_settingview_options_exit__change;
|
|
359 |
}
|
|
360 |
|
|
361 |
RESOURCE MENU_BAR r_listbox_settings_menubar
|
|
362 |
{
|
|
363 |
titles =
|
|
364 |
{
|
|
365 |
MENU_TITLE
|
|
366 |
{
|
|
367 |
menu_pane = r_listbox_settings_menu;
|
|
368 |
}
|
|
369 |
};
|
|
370 |
}
|
|
371 |
|
|
372 |
RESOURCE MENU_PANE r_listbox_settings_menu
|
|
373 |
{
|
|
374 |
items =
|
|
375 |
{
|
|
376 |
MENU_ITEM
|
|
377 |
{
|
|
378 |
command = EListboxCmdChange;
|
|
379 |
txt = "Edit";
|
|
380 |
},
|
|
381 |
MENU_ITEM
|
|
382 |
{
|
|
383 |
command = EIp;
|
|
384 |
txt = "IP address";
|
|
385 |
},
|
|
386 |
MENU_ITEM
|
|
387 |
{
|
|
388 |
command = EDeleteJavaDir;
|
|
389 |
txt = "Disable Debug";
|
|
390 |
},
|
|
391 |
MENU_ITEM
|
|
392 |
{
|
|
393 |
command = EAknSoftkeyExit;
|
|
394 |
txt = "Exit";
|
|
395 |
}
|
|
396 |
};
|
|
397 |
}
|
|
398 |
RESOURCE AVKON_SETTING_ITEM_LIST r_listbox_setting_item_list
|
|
399 |
{
|
|
400 |
title = "Setting list title";
|
|
401 |
initial_number = 1;
|
|
402 |
items =
|
|
403 |
{
|
|
404 |
AVKON_SETTING_ITEM
|
|
405 |
{
|
|
406 |
identifier = EListboxSettingUsername;
|
|
407 |
setting_page_resource = r_ecmt_odd_setting_page;
|
|
408 |
name = "System IP";
|
|
409 |
},
|
|
410 |
AVKON_SETTING_ITEM
|
|
411 |
{
|
|
412 |
identifier = EListboxSettingUsername;
|
|
413 |
setting_page_resource = r_ecmt_port_odd_setting_page;
|
|
414 |
name = "Port num";
|
|
415 |
}
|
|
416 |
};
|
|
417 |
}
|
|
418 |
|
|
419 |
RESOURCE POPUP_SETTING_LIST r_listbox_popup_setting_list
|
|
420 |
{
|
|
421 |
flags = 0;
|
|
422 |
}
|
|
423 |
|
|
424 |
//------------------------------------------------------------
|
|
425 |
//resource for ip address editor box
|
|
426 |
//------------------------------------------------------------
|
|
427 |
|
|
428 |
|
|
429 |
RESOURCE AVKON_SETTING_PAGE r_ecmt_odd_setting_page
|
|
430 |
{
|
|
431 |
label= "System IP";
|
|
432 |
type = EEikCtEdwin;
|
|
433 |
editor_resource_id = r_Ecmt_odd_editor;
|
|
434 |
softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
|
|
435 |
invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL;
|
|
436 |
}
|
|
437 |
|
|
438 |
RESOURCE EDWIN r_Ecmt_odd_editor
|
|
439 |
{
|
|
440 |
flags=0;
|
|
441 |
width=9;
|
|
442 |
lines=1;
|
|
443 |
maxlength=20;
|
|
444 |
default_input_mode=EAknEditorNumericInputMode;
|
|
445 |
flags = EEikEdwinNoLineOrParaBreaks;
|
|
446 |
avkon_flags=0;
|
|
447 |
}
|
|
448 |
|
|
449 |
//--------------------------------------------------------------------
|
|
450 |
// resource for port nuber editor box
|
|
451 |
//--------------------------------------------------------------------
|
|
452 |
|
|
453 |
|
|
454 |
RESOURCE AVKON_SETTING_PAGE r_ecmt_port_odd_setting_page
|
|
455 |
{
|
|
456 |
label= "Port num";
|
|
457 |
type = EEikCtEdwin;
|
|
458 |
editor_resource_id = r_Ecmt_odd_port_editor;
|
|
459 |
softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
|
|
460 |
invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL;
|
|
461 |
}
|
|
462 |
|
|
463 |
//-------------------------------------------------------------
|
|
464 |
// port number editor box
|
|
465 |
//-------------------------------------------------------------
|
|
466 |
|
|
467 |
RESOURCE EDWIN r_Ecmt_odd_port_editor
|
|
468 |
{
|
|
469 |
width=9;
|
|
470 |
lines=1;
|
|
471 |
maxlength=4;
|
|
472 |
default_input_mode=EAknEditorNumericInputMode;
|
|
473 |
allowed_input_modes = EAknEditorNumericInputMode;
|
|
474 |
flags = EEikEdwinNoLineOrParaBreaks|EAknEditorNumericInputMode;
|
|
475 |
avkon_flags=0;
|
|
476 |
}
|
|
477 |
|
|
478 |
//------------------------------------------------------------------
|
|
479 |
// IP address dlg
|
|
480 |
//------------------------------------------------------------------
|
|
481 |
|
|
482 |
|
|
483 |
RESOURCE DIALOG r_ip_address_dialog
|
|
484 |
{
|
|
485 |
flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
|
|
486 |
buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
|
|
487 |
items=
|
|
488 |
{
|
|
489 |
DLG_LINE
|
|
490 |
{
|
|
491 |
type = EAknCtPopupHeadingPane;
|
|
492 |
id = EAknMessageQueryHeaderId;
|
|
493 |
control = AVKON_HEADING
|
|
494 |
{
|
|
495 |
label = "IP Address";
|
|
496 |
headinglayout = R_AVKON_WML_SIGN_QUERY_HEADING_PANE;
|
|
497 |
};
|
|
498 |
},
|
|
499 |
DLG_LINE
|
|
500 |
{
|
|
501 |
type = EAknCtMessageQuery;
|
|
502 |
id = EAknMessageQueryContentId;
|
|
503 |
control = AVKON_MESSAGE_QUERY
|
|
504 |
{
|
|
505 |
message = "java odd using wlan conectivity";
|
|
506 |
};
|
|
507 |
}
|
|
508 |
};
|
|
509 |
}
|
|
510 |
|