?? class_c_web_client_app_ui.html
字號(hào):
</td> </tr></table><a class="anchor" name="53a2a56d9127e44f97de4d5ed7e6c132"></a><!-- doxytag: member="CWebClientAppUi::RemoveWaitDialogL" ref="53a2a56d9127e44f97de4d5ed7e6c132" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void CWebClientAppUi::RemoveWaitDialogL </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>RemoveWaiDialogL() Called by <a class="el" href="class_c_web_client_engine.html">CWebClientEngine</a> when Http transaction is finished. <p>Definition at line <a class="el" href="_web_client_app_u_i_8cpp-source.html#l00212">212</a> of file <a class="el" href="_web_client_app_u_i_8cpp-source.html">WebClientAppUI.cpp</a>.<p>References <a class="el" href="_web_client_app_u_i_8h-source.html#l00120">iWaitDialog</a>.<div class="fragment"><pre class="fragment"><a name="l00213"></a>00213 {<a name="l00214"></a>00214 <span class="keywordflow">if</span> ( <a class="code" href="class_c_web_client_app_ui.html#08a346f69e11d14fc982d23026669219">iWaitDialog</a> )<a name="l00215"></a>00215 {<a name="l00216"></a>00216 <a class="code" href="class_c_web_client_app_ui.html#08a346f69e11d14fc982d23026669219">iWaitDialog</a>->ProcessFinishedL(); <span class="comment">// deletes the dialog</span><a name="l00217"></a>00217 }<a name="l00218"></a>00218 }</pre></div><p> </td> </tr></table><a class="anchor" name="a682d228622cea7790645ce10f591242"></a><!-- doxytag: member="CWebClientAppUi::HandleCommandL" ref="a682d228622cea7790645ce10f591242" args="(TInt aCommand)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void CWebClientAppUi::HandleCommandL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TInt </td> <td class="mdname1" valign="top" nowrap> <em>aCommand</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>From CEikAppUi <a class="el" href="class_c_web_client_app_ui.html#a682d228622cea7790645ce10f591242">HandleCommandL()</a> Handles user commands. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aCommand,:</em> </td><td>Command ID. </td></tr> </table></dl><p>Definition at line <a class="el" href="_web_client_app_u_i_8cpp-source.html#l00086">86</a> of file <a class="el" href="_web_client_app_u_i_8cpp-source.html">WebClientAppUI.cpp</a>.<p>References <a class="el" href="_web_client_container_8cpp-source.html#l00255">CWebClientContainer::HandleCommandL()</a>, <a class="el" href="_web_client_app_u_i_8cpp-source.html#l00113">HandleUrlRequestL()</a>, and <a class="el" href="_web_client_app_u_i_8h-source.html#l00118">iContainer</a>.<div class="fragment"><pre class="fragment"><a name="l00087"></a>00087 {<a name="l00088"></a>00088 <span class="keywordflow">switch</span>( aCommand )<a name="l00089"></a>00089 {<a name="l00090"></a>00090 <span class="keywordflow">case</span> EEikCmdExit:<a name="l00091"></a>00091 <span class="keywordflow">case</span> EAknSoftkeyExit:<a name="l00092"></a>00092 Exit();<a name="l00093"></a>00093 <span class="keywordflow">break</span>;<a name="l00094"></a>00094 <span class="keywordflow">case</span> EWebClientCmdReqUrl:<a name="l00095"></a>00095 <a class="code" href="class_c_web_client_app_ui.html#b3eac2b788c5e153f9491223288df518">HandleUrlRequestL</a>();<a name="l00096"></a>00096 <span class="keywordflow">break</span>;<a name="l00097"></a>00097 <span class="keywordflow">case</span> EWebClientCmdHeader:<a name="l00098"></a>00098 <span class="keywordflow">case</span> EWebClientCmdSource:<a name="l00099"></a>00099 <span class="keywordflow">case</span> EWebClientCmdStatus:<a name="l00100"></a>00100 <a class="code" href="class_c_web_client_app_ui.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a>-><a class="code" href="class_c_web_client_container.html#a682d228622cea7790645ce10f591242">HandleCommandL</a>( aCommand );<a name="l00101"></a>00101 <span class="keywordflow">break</span>;<a name="l00102"></a>00102 <span class="keywordflow">default</span>:<a name="l00103"></a>00103 Panic( EClientUi );<a name="l00104"></a>00104 <span class="keywordflow">break</span>;<a name="l00105"></a>00105 }<a name="l00106"></a>00106 }</pre></div><p> </td> </tr></table><a class="anchor" name="b3eac2b788c5e153f9491223288df518"></a><!-- doxytag: member="CWebClientAppUi::HandleUrlRequestL" ref="b3eac2b788c5e153f9491223288df518" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void CWebClientAppUi::HandleUrlRequestL </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><a class="el" href="class_c_web_client_app_ui.html#b3eac2b788c5e153f9491223288df518">HandleUrlRequestL()</a> Handles user command Request URL. Called from <a class="el" href="class_c_web_client_app_ui.html#a682d228622cea7790645ce10f591242">HandleCommandL()</a> <p>Definition at line <a class="el" href="_web_client_app_u_i_8cpp-source.html#l00113">113</a> of file <a class="el" href="_web_client_app_u_i_8cpp-source.html">WebClientAppUI.cpp</a>.<p>References <a class="el" href="_web_client_engine_8cpp-source.html#l00277">CWebClientEngine::CancelTransactionL()</a>, and <a class="el" href="_web_client_app_u_i_8h-source.html#l00119">iClient</a>.<div class="fragment"><pre class="fragment"><a name="l00114"></a>00114 {<a name="l00115"></a>00115 <span class="comment">// Issue HTTP get to engine; first cancel possible existing transaction</span><a name="l00116"></a>00116 <a class="code" href="class_c_web_client_app_ui.html#5e67bb399dac4b79b04ee46652765f25">iClient</a>-><a class="code" href="class_c_web_client_engine.html#5b3730609dcbc8696c0ff37e711e965d">CancelTransactionL</a>();<a name="l00117"></a>00117 <a name="l00118"></a>00118 <span class="comment">// URL Query</span><a name="l00119"></a>00119 TBuf<KPrefixedUriNameLength> uri;<a name="l00120"></a>00120 CAknTextQueryDialog* dlg = <span class="keyword">new</span> (ELeave) CAknTextQueryDialog( uri, <a name="l00121"></a>00121 CAknQueryDialog::ENoTone );<a name="l00122"></a>00122 <a name="l00123"></a>00123 <span class="keywordflow">if</span> ( dlg->ExecuteLD( R_WEBCLIENT_DIALOG_URL_QUERY )) <a name="l00124"></a>00124 {<a name="l00125"></a>00125 <span class="comment">// Insert prefix to URL (it must begin with "http://" or "https://")</span><a name="l00126"></a>00126 TBuf8<KPrefixedUriNameLength> uri8;<a name="l00127"></a>00127 uri.LowerCase();<a name="l00128"></a>00128 <span class="keywordflow">if</span>(uri.Find( KHttpPrefix) == KErrNotFound<a name="l00129"></a>00129 && uri.Find( KHttpsPrefix ) == KErrNotFound )<a name="l00130"></a>00130 {<a name="l00131"></a>00131 <span class="comment">// If the URL does not contain http or https, </span><a name="l00132"></a>00132 <span class="comment">// use the default, "http://"</span><a name="l00133"></a>00133 uri8.Append( KHttpPrefix8 );<a name="l00134"></a>00134 uri8.Append( uri );<a name="l00135"></a>00135 } <span class="keywordflow">else</span> {<a name="l00136"></a>00136 uri8.Copy( uri );<a name="l00137"></a>00137 }<a name="l00138"></a>00138 <a name="l00139"></a>00139 <span class="comment">// Set requested URL to label and clear application view</span><a name="l00140"></a>00140 uri.Copy(uri8);<a name="l00141"></a>00141 <a class="code" href="class_c_web_client_app_ui.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a>-><a class="code" href="class_c_web_client_container.html#e1229dd620972e565280418fdb537a51">ResetL</a>( uri );<a name="l00142"></a>00142 <a name="l00143"></a>00143 <span class="comment">// Start transaction</span><a name="l00144"></a>00144 <a class="code" href="class_c_web_client_app_ui.html#5e67bb399dac4b79b04ee46652765f25">iClient</a>-><a class="code" href="class_c_web_client_engine.html#b0657f50d2303b5a4f15a7c3b15cbbdc">IssueHTTPGetL</a>( uri8 );<a name="l00145"></a>00145 <a name="l00146"></a>00146 <span class="comment">// Create the waitdialog</span><a name="l00147"></a>00147 <a class="code" href="class_c_web_client_app_ui.html#08a346f69e11d14fc982d23026669219">iWaitDialog</a> = <span class="keyword">new</span> ( ELeave )CAknWaitDialog(<a name="l00148"></a>00148 reinterpret_cast<CEikDialog**>( &<a class="code" href="class_c_web_client_app_ui.html#08a346f69e11d14fc982d23026669219">iWaitDialog</a> ), ETrue );<a name="l00149"></a>00149 <span class="comment">// Set DialogDissmissed callback</span><a name="l00150"></a>00150 iWaitDialog->SetCallback( <span class="keyword">this</span> ); <a name="l00151"></a>00151 iWaitDialog->ExecuteLD( R_WEBCLIENT_DOWNLOAD_WAIT_NOTE );<a name="l00152"></a>00152 }<a name="l00153"></a>00153 } </pre></div><p> </td> </tr></table><a class="anchor" name="6acdbe8a9b57446075bf46d035e751eb"></a><!-- doxytag: member="CWebClientAppUi::HandleResourceChangeL" ref="6acdbe8a9b57446075bf46d035e751eb" args="(TInt aType)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void CWebClientAppUi::HandleResourceChangeL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TInt </td> <td class="mdname1" valign="top" nowrap> <em>aType</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [private, virtual]</code></td>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -