00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 NAME SMSE
00032
00033
00034
00035 #include <appinfo.rh>
00036 #include <eikon.rh>
00037 #include <avkon.rsg>
00038 #include <avkon.rh>
00039 #include <avkon.mbg>
00040
00041 #include "SMSExample.hrh"
00042 #include "SMSExample.loc"
00043
00044
00045
00046 RESOURCE RSS_SIGNATURE {}
00047
00048 RESOURCE TBUF { buf = "SMSExample"; }
00049
00050 RESOURCE EIK_APP_INFO
00051 {
00052 }
00053
00054
00055
00056
00057
00058
00059
00060
00061 RESOURCE HOTKEYS r_smsexample_hotkeys
00062 {
00063 control =
00064 {
00065 HOTKEY { command = EAknCmdExit; key='e'; }
00066 };
00067 }
00068
00069
00070
00071
00072
00073
00074
00075
00076 RESOURCE AVKON_VIEW r_listbox_multiviews_view
00077 {
00078 menubar = r_listbox_menubar;
00079 cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
00080 }
00081
00082
00083
00084
00085
00086
00087
00088
00089 RESOURCE AVKON_VIEW r_richtexteditor_multiviews_view
00090 {
00091 menubar = r_smsexample_menubar;
00092 cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00093 }
00094
00095
00096
00097
00098
00099
00100
00101 RESOURCE MENU_BAR r_listbox_menubar
00102 {
00103 titles =
00104 {
00105 MENU_TITLE
00106 {
00107 menu_pane = r_listbox_menu;
00108 }
00109 };
00110 }
00111
00112
00113
00114
00115
00116
00117
00118
00119 RESOURCE MENU_PANE r_listbox_menu
00120 {
00121 items =
00122 {
00123 MENU_ITEM
00124 {
00125 command = ESMSExampleListBoxSelectAll;
00126 txt = SELECT_ALL_TEXT;
00127 },
00128 MENU_ITEM
00129 {
00130 command = ESMSExampleListBoxDeSelectAll;
00131 txt = DESELECT_ALL_TEXT;
00132 },
00133 MENU_ITEM
00134 {
00135 command = ESMSExampleListBoxDone;
00136 txt = "Done";
00137 }
00138
00139 };
00140 }
00141
00142
00143
00144
00145
00146
00147
00148 RESOURCE MENU_BAR r_smsexample_menubar
00149 {
00150 titles =
00151 {
00152 MENU_TITLE
00153 {
00154 menu_pane = r_smsexample_menu;
00155 }
00156 };
00157 }
00158
00159
00160
00161
00162
00163
00164
00165 RESOURCE MENU_PANE r_smsexample_menu
00166 {
00167 items =
00168 {
00169 MENU_ITEM
00170 {
00171 command = ESMSExampleCmdSendMessage;
00172 txt = SEND_SMS_MENU_TEXT;
00173 },
00174 MENU_ITEM
00175 {
00176 command = ESMSExampleCmdMoveToMyFolders;
00177 txt = MOVE_SMS_MENU_TEXT;
00178 cascade = r_smsexample_move_sms_sub_menu;
00179 },
00180 MENU_ITEM
00181 {
00182 command = ESMSExampleCmdCopyMessage;
00183 txt = COPY_SMS_MENU_TEXT;
00184 cascade = r_smsexample_copy_from_sub_menu;
00185 },
00186 MENU_ITEM
00187 {
00188 command = ESMSExampleCmdDeleteMessage;
00189 txt = DELETE_SMS_MENU_TEXT;
00190 cascade = r_smsexample_delete_sub_menu;
00191 },
00192 MENU_ITEM
00193 {
00194 command = ESMSExampleListBoxSettings;
00195 txt = SETTINGS_SMS_MENU_TEXT;
00196 cascade = r_smsexample_settings_sub_menu;
00197 },
00198 MENU_ITEM
00199 {
00200 command = EAknCmdExit;
00201 txt = qtn_appl_exit;
00202 }
00203 };
00204 }
00205
00206
00207
00208 RESOURCE MENU_PANE r_smsexample_move_sms_sub_menu
00209 {
00210 items=
00211 {
00212 MENU_ITEM
00213 {
00214 command = ESMSExampleCmdMoveMessageFromDraftsToInbox;
00215 txt = FROM_DRAFTS_TO_INBOX_MENU_TEXT;
00216 },
00217 MENU_ITEM
00218 {
00219 command = ESMSExampleCmdMoveMessageFromDraftsToOutbox;
00220 txt = FROM_DRAFTS_TO_OUTBOX_MENU_TEXT;
00221 },
00222 MENU_ITEM
00223 {
00224 command = ESMSExampleCmdMoveMessageFromOutboxToInbox;
00225 txt = FROM_OUTBOX_TO_INBOX_MENU_TEXT;
00226 },
00227 MENU_ITEM
00228 {
00229 command = ESMSExampleCmdMoveMessageFromOutboxToDrafts;
00230 txt = FROM_OUTBOX_TO_DRAFTS_MENU_TEXT;
00231 },
00232 MENU_ITEM
00233 {
00234 command = ESMSExampleCmdMoveMessageFromInboxToOutbox;
00235 txt = FROM_INBOX_TO_OUTBOX_MENU_TEXT;
00236 },
00237 MENU_ITEM
00238 {
00239 command = ESMSExampleCmdMoveMessageFromInboxToDrafts;
00240 txt = FROM_INBOX_TO_DRAFTS_MENU_TEXT;
00241 }
00242 };
00243 }
00244
00245
00246
00247 RESOURCE MENU_PANE r_smsexample_copy_from_sub_menu
00248 {
00249 items=
00250 {
00251 MENU_ITEM
00252 {
00253 command = ESMSExampleCmdCopyMessageFromDraftsToInbox;
00254 txt = FROM_DRAFTS_TO_INBOX_MENU_TEXT;
00255 },
00256 MENU_ITEM
00257 {
00258 command = ESMSExampleCmdCopyMessageFromDraftsToOutbox;
00259 txt = FROM_DRAFTS_TO_OUTBOX_MENU_TEXT;
00260 },
00261 MENU_ITEM
00262 {
00263 command = ESMSExampleCmdCopyMessageFromOutboxToInbox;
00264 txt = FROM_OUTBOX_TO_INBOX_MENU_TEXT;
00265 },
00266 MENU_ITEM
00267 {
00268 command = ESMSExampleCmdCopyMessageFromOutboxToDrafts;
00269 txt = FROM_OUTBOX_TO_DRAFTS_MENU_TEXT;
00270 },
00271 MENU_ITEM
00272 {
00273 command = ESMSExampleCmdCopyMessageFromInboxToOutbox;
00274 txt = FROM_INBOX_TO_OUTBOX_MENU_TEXT;
00275 },
00276 MENU_ITEM
00277 {
00278 command = ESMSExampleCmdCopyMessageFromInboxToDrafts;
00279 txt = FROM_INBOX_TO_DRAFTS_MENU_TEXT;
00280 }
00281 };
00282 }
00283
00284
00285
00286
00287
00288
00289
00290
00291 RESOURCE MENU_PANE r_smsexample_delete_sub_menu
00292 {
00293 items=
00294 {
00295 MENU_ITEM
00296 {
00297 command = ESMSExampleCmdDeleteMessageFromDrafts;
00298 txt = FROM_DRAFTS_SMS_MENU_TEXT;
00299 },
00300 MENU_ITEM
00301 {
00302 command = ESMSExampleCmdDeleteMessageFromOutbox;
00303 txt = FROM_OUTBOX_SMS_MENU_TEXT;
00304 },
00305 MENU_ITEM
00306 {
00307 command = ESMSExampleCmdDeleteMessageFromInbox;
00308 txt = FROM_INBOX_SMS_MENU_TEXT;
00309 }
00310 };
00311 }
00312
00313
00314
00315
00316
00317
00318
00319
00320 RESOURCE MENU_PANE r_smsexample_settings_sub_menu
00321 {
00322 items=
00323 {
00324 MENU_ITEM
00325 {
00326 command = ESMSExampleListBoxSetAutomaticDeleteOn;
00327 txt = AUTOMATIC_DELETE_ON_TEXT;
00328 },
00329 MENU_ITEM
00330 {
00331 command = ESMSExampleListBoxSetAutomaticDeleteOff;
00332 txt = AUTOMATIC_DELETE_OFF_TEXT;
00333 }
00334 };
00335 }
00336
00337
00338
00339
00340
00341
00342
00343
00344 RESOURCE DIALOG r_mtms_example_address_query
00345 {
00346 flags = EGeneralQueryFlags;
00347 buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
00348 items =
00349 {
00350 DLG_LINE
00351 {
00352 type = EAknCtQuery;
00353 id = EGeneralQuery;
00354
00355 control = AVKON_DATA_QUERY
00356 {
00357 layout = EPhoneLayout;
00358 label = ADDRESS_QUERY_CAPTION;
00359 control = EDWIN
00360 {
00361
00362 maxlength = EMtmsExampleMaxAddressLength;
00363 };
00364
00365 };
00366 }
00367 };
00368 }
00369
00370
00371
00372
00373
00374
00375
00376
00377 RESOURCE DIALOG r_mtms_example_message_query
00378 {
00379 flags = EGeneralQueryFlags;
00380 buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
00381 items =
00382 {
00383 DLG_LINE
00384 {
00385 type = EAknCtQuery;
00386 id = EGeneralQuery;
00387 control = AVKON_DATA_QUERY
00388 {
00389 layout = EDataLayout;
00390 label = MESSAGE_QUERY_TEXT;
00391 control = EDWIN
00392 {
00393
00394 width = 30;
00395 lines = 1;
00396 maxlength = 159;
00397 };
00398 };
00399 }
00400 };
00401 }
00402
00403
00404
00405
00406
00407
00408
00409
00410 RESOURCE LISTBOX r_smsexample_markable_listbox
00411 {
00412 flags = EAknListBoxMarkableList;
00413 }
00414
00415
00416
00417
00418
00419
00420
00421
00422 RESOURCE TBUF r_icon_file_name
00423 {
00424 buf = ICON_FILE_NAME;
00425 }
00426
00427
00428
00429
00430
00431
00432
00433
00434 RESOURCE DIALOG r_automatic_delete_confirmation_query_dialog
00435 {
00436 flags=EGeneralQueryFlags;
00437 buttons = R_AVKON_SOFTKEYS_YES_NO;
00438 items =
00439 {
00440 DLG_LINE
00441 {
00442 type = EAknCtQuery;
00443 id = EGeneralQuery;
00444 control = AVKON_CONFIRMATION_QUERY
00445 {
00446 layout = EConfirmationQueryLayout;
00447 label = TURN_AUTOMATIC_DELETE_ON_TEXT;
00448 };
00449 }
00450 };
00451 }
00452
00453 RESOURCE LOCALISABLE_APP_INFO r_SmsExample_lai
00454 {
00455 short_caption = qtn_app_short_caption_string;
00456
00457 caption_and_icon =
00458 {
00459 CAPTION_AND_ICON_INFO
00460 {
00461 caption = qtn_app_caption_string;
00462 number_of_icons = 2;
00463 icon_file = r_icon_file;
00464 }
00465 };
00466 }
00467
00468