00001 /* 00002 * Copyright (c) 2009 Nokia Corporation. 00003 */ 00004 00005 NAME HTTP 00006 00007 #include <eikon.rh> 00008 #include <avkon.rh> 00009 #include <avkon.rsg> 00010 #include <appinfo.rh> 00011 00012 #include "Client.hrh" 00013 #include "HTTPClientExample.rls" 00014 00015 // --------------------------------------------------------- 00016 // 00017 // Define the resource file signature 00018 // This resource should be empty. 00019 // 00020 // --------------------------------------------------------- 00021 // 00022 RESOURCE RSS_SIGNATURE 00023 { 00024 } 00025 00026 // --------------------------------------------------------- 00027 // 00028 // Default Document Name 00029 // 00030 // --------------------------------------------------------- 00031 // 00032 RESOURCE TBUF r_default_document_name 00033 { 00034 buf="HTTP"; 00035 } 00036 00037 // --------------------------------------------------------- 00038 // 00039 // Define default menu and CBA key. 00040 // 00041 // --------------------------------------------------------- 00042 // 00043 RESOURCE EIK_APP_INFO 00044 { 00045 menubar = r_exampleclient_menubar; 00046 cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; 00047 } 00048 00049 00050 // --------------------------------------------------------- 00051 // 00052 // r_exampleclient_menubar 00053 // Menubar for HTTP Example 00054 // 00055 // --------------------------------------------------------- 00056 // 00057 RESOURCE MENU_BAR r_exampleclient_menubar 00058 { 00059 titles = 00060 { 00061 MENU_TITLE 00062 { 00063 menu_pane = r_exampleclient_menu; 00064 } 00065 }; 00066 } 00067 00068 00069 // --------------------------------------------------------- 00070 // 00071 // r_exampleclient_menu 00072 // Menu for "Options" 00073 // 00074 // --------------------------------------------------------- 00075 // 00076 RESOURCE MENU_PANE r_exampleclient_menu 00077 { 00078 items = 00079 { 00080 MENU_ITEM 00081 { 00082 command = EClientGet; 00083 txt = STRING_r_http_options_get; 00084 }, 00085 MENU_ITEM 00086 { 00087 command = EClientPost; 00088 txt = STRING_r_http_options_post; 00089 }, 00090 MENU_ITEM 00091 { 00092 command = EClientCancel; 00093 txt = STRING_r_http_options_cancel; 00094 }, 00095 MENU_ITEM 00096 { 00097 command = EClientSwitchFocus; 00098 txt = STRING_r_http_options_switch_focus; 00099 }, 00100 MENU_ITEM 00101 { 00102 command = EClientHelp; 00103 txt = STRING_r_http_options_help; 00104 }, 00105 MENU_ITEM 00106 { 00107 command = EClientAbout; 00108 txt = STRING_r_http_options_about; 00109 }, 00110 MENU_ITEM 00111 { 00112 command = EAknSoftkeyExit; 00113 txt = STRING_r_http_options_exit; 00114 } 00115 }; 00116 } 00117 00118 00119 // ----------------------------------------------------------------------------- 00120 // 00121 // Resources. 00122 // 00123 // ----------------------------------------------------------------------------- 00124 00125 RESOURCE TBUF r_http_session_error { buf=STRING_r_http_session_error; } 00126 RESOURCE TBUF r_http_exiting_app { buf=STRING_r_http_exiting_app; } 00127 RESOURCE TBUF r_http_connecting { buf=STRING_r_http_connecting; } 00128 RESOURCE TBUF r_http_tx_cancelled { buf=STRING_r_http_tx_cancelled; } 00129 RESOURCE TBUF r_http_header_received { buf=STRING_r_http_header_received; } 00130 RESOURCE TBUF r_http_bytes_received { buf=STRING_r_http_bytes_received; } 00131 RESOURCE TBUF r_http_body_received { buf=STRING_r_http_body_received; } 00132 RESOURCE TBUF r_http_tx_complete { buf=STRING_r_http_tx_complete; } 00133 RESOURCE TBUF r_http_tx_successful { buf=STRING_r_http_tx_successful; } 00134 RESOURCE TBUF r_http_tx_failed { buf=STRING_r_http_tx_failed; } 00135 RESOURCE TBUF r_http_no_internet_connection { buf=STRING_r_http_no_internet_connection; } 00136 RESOURCE TBUF r_http_unrecognised_event { buf=STRING_r_http_unrecognised_event; } 00137 RESOURCE TBUF r_http_mhfrun_error { buf=STRING_r_http_mhfrun_error; } 00138 RESOURCE TBUF r_http_auth_note { buf=STRING_r_http_auth_note; } 00139 RESOURCE TBUF r_http_auth_required { buf=STRING_r_http_auth_required; } 00140 00141 // ---------------------------------------------------------------------------- 00142 // 00143 // r_httpclientexample_localisable_app_info 00144 // 00145 // ---------------------------------------------------------------------------- 00146 00147 RESOURCE LOCALISABLE_APP_INFO r_httpclientexample_localisable_app_info 00148 { 00149 short_caption = STRING_r_http_caption_string; 00150 caption_and_icon = 00151 CAPTION_AND_ICON_INFO 00152 { 00153 caption = STRING_r_http_caption_string; 00154 00155 number_of_icons = 1; 00156 icon_file = "\\resource\\apps\\HTTPClientExample_aif.mif"; 00157 }; 00158 } 00159 00160 00161 //---------------------------------------------------------------------------- 00162 // 00163 // r_dialog_user_password_query 00164 // Resource of text and password Query. 00165 // 00166 //---------------------------------------------------------------------------- 00167 // 00168 RESOURCE DIALOG r_dialog_user_password_query 00169 { 00170 flags = EGeneralQueryFlags; 00171 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; 00172 items = 00173 { 00174 DLG_LINE 00175 { 00176 type = EAknCtMultilineQuery; 00177 id = EMultilineFirstLine; 00178 control = AVKON_DATA_QUERY 00179 { 00180 layout = EMultiDataFirstEdwin; 00181 label = STRING_r_http_user_name; 00182 control = EDWIN 00183 { 00184 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; 00185 width = 25; 00186 lines = 1; 00187 maxlength = 128; 00188 }; 00189 }; 00190 }, 00191 DLG_LINE 00192 { 00193 type = EAknCtMultilineQuery; 00194 id = EMultilineSecondLine; 00195 control = AVKON_DATA_QUERY 00196 { 00197 layout = EMultiDataSecondSecEd; 00198 label = STRING_r_http_password; 00199 control = SECRETED 00200 { 00201 num_letters = 128; 00202 }; 00203 }; 00204 } 00205 }; 00206 } 00207 00208 00209 // --------------------------------------------------------- 00210 // 00211 // r_dialog_uri_query 00212 // Query dialog for uri 00213 // 00214 // --------------------------------------------------------- 00215 // 00216 RESOURCE DIALOG r_dialog_uri_query 00217 { 00218 flags = EGeneralQueryFlags; 00219 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; 00220 items = 00221 { 00222 DLG_LINE 00223 { 00224 type = EAknCtQuery; 00225 id = EGeneralQuery; 00226 control = AVKON_DATA_QUERY 00227 { 00228 layout = EDataLayout; 00229 label = STRING_r_http_uri; 00230 control = EDWIN 00231 { 00232 maxlength = 128; 00233 }; 00234 }; 00235 } 00236 }; 00237 } 00238 00239 //---------------------------------------------------------------------------- 00240 // 00241 // r_dialog_uri_post_query 00242 // Resource of uri & post data query. 00243 // 00244 //---------------------------------------------------------------------------- 00245 // 00246 RESOURCE DIALOG r_dialog_uri_post_query 00247 { 00248 flags = EGeneralQueryFlags; 00249 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; 00250 items = 00251 { 00252 DLG_LINE 00253 { 00254 type = EAknCtMultilineQuery; 00255 id = EMultilineFirstLine; 00256 control = AVKON_DATA_QUERY 00257 { 00258 layout = EMultiDataFirstEdwin; 00259 label = STRING_r_http_uri; 00260 control = EDWIN 00261 { 00262 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; 00263 width = 25; 00264 lines = 1; 00265 maxlength = 128; 00266 }; 00267 }; 00268 }, 00269 DLG_LINE 00270 { 00271 type = EAknCtMultilineQuery; 00272 id = EMultilineSecondLine; 00273 control = AVKON_DATA_QUERY 00274 { 00275 layout = EMultiDataSecondEdwin; 00276 label = STRING_r_http_data_to_post; 00277 control = EDWIN 00278 { 00279 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; 00280 width = 25; 00281 lines = 1; 00282 maxlength = 128; 00283 }; 00284 }; 00285 } 00286 }; 00287 } 00288 00289 // --------------------------------------------------------- 00290 // 00291 // r_dialog_reconnect 00292 // Dialog for confirming the reconnection 00293 // 00294 // --------------------------------------------------------- 00295 00296 RESOURCE DIALOG r_dialog_reconnect 00297 { 00298 flags = EGeneralQueryFlags; 00299 buttons = R_AVKON_SOFTKEYS_YES_NO; 00300 items = 00301 { 00302 DLG_LINE 00303 { 00304 type = EAknCtQuery; 00305 id = EGeneralQuery; 00306 control = AVKON_CONFIRMATION_QUERY 00307 { 00308 layout = EConfirmationQueryLayout; 00309 label = STRING_r_http_reconnect_dialog_confirmation; 00310 }; 00311 } 00312 }; 00313 } 00314 00315 // --------------------------------------------------------- 00316 // 00317 // r_dialog_about 00318 // Simple dialog for about information 00319 // 00320 // --------------------------------------------------------- 00321 00322 RESOURCE DIALOG r_dialog_about 00323 { 00324 flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow; 00325 buttons = R_AVKON_SOFTKEYS_OK_EMPTY; 00326 items= 00327 { 00328 DLG_LINE 00329 { 00330 type = EAknCtPopupHeadingPane; 00331 id = EAknMessageQueryHeaderId; 00332 itemflags = EEikDlgItemNonFocusing; 00333 control = AVKON_HEADING 00334 { 00335 headinglayout = R_AVKON_WML_SIGN_QUERY_HEADING_PANE; 00336 }; 00337 }, 00338 DLG_LINE 00339 { 00340 type = EAknCtMessageQuery; 00341 id = EAknMessageQueryContentId; 00342 control = AVKON_MESSAGE_QUERY 00343 { 00344 }; 00345 } 00346 }; 00347 } 00348 RESOURCE TBUF32 r_about_dialog_title { buf=STRING_r_http_about_dialog_title; } 00349 RESOURCE TBUF r_about_dialog_text { buf=STRING_r_http_about_dialog_text; } 00350 00351 // End of file
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.