📄 class_c_address_book_app_ui.html
字号:
</table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>From MEikMenuObserver, is called by EIKON framework just before it displays a menu pane, sets the state of menu items dynamically according to the state of application data. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aResourceId</em> </td><td>specifies dialog-resource ID. </td></tr> <tr><td valign="top"></td><td valign="top"><em>aMenuPane</em> </td><td>specifies menu pane </td></tr> </table></dl><p>Definition at line <a class="el" href="_address_book_app_ui_8cpp-source.html#l00082">82</a> of file <a class="el" href="_address_book_app_ui_8cpp-source.html">AddressBookAppUi.cpp</a>.<p>References <a class="el" href="_address_book_engine_8cpp-source.html#l00675">CAddressBookEngine::Connected()</a>, <a class="el" href="_address_book_view_8cpp-source.html#l00350">CAddressBookView::CurrentContact()</a>, <a class="el" href="_address_book_app_ui_8h-source.html#l00144">iAppContainer</a>, and <a class="el" href="_address_book_app_ui_8h-source.html#l00145">iEngine</a>.<div class="fragment"><pre class="fragment"><a name="l00084"></a>00084 {<a name="l00085"></a>00085 <span class="keywordflow">if</span> (aResourceId == R_ADDRESSBOOK_MENU)<a name="l00086"></a>00086 {<a name="l00087"></a>00087 TBool connected = <a class="code" href="class_c_address_book_app_ui.html#c22846eecaea51cfb97699603e4227b3">iEngine</a>-><a class="code" href="class_c_address_book_engine.html#4b0394a07927e23c977c81ec024a8060">Connected</a>();<a name="l00088"></a>00088 TBool isContact(EFalse);<a name="l00089"></a>00089 <span class="keywordflow">if</span> (<a class="code" href="class_c_address_book_app_ui.html#c25cfbb86775b001ed268ecaef2f307d">iAppContainer</a>-><a class="code" href="class_c_address_book_view.html#3fca94e0717b8f64d65f54d582de140c">CurrentContact</a>())<a name="l00090"></a>00090 isContact = ETrue;<a name="l00091"></a>00091 <a name="l00092"></a>00092 aMenuPane->SetItemDimmed(EAddressBookCmdAppConnect, connected);<a name="l00093"></a>00093 aMenuPane->SetItemDimmed(EAddressBookCmdAppSearch, !connected);<a name="l00094"></a>00094 aMenuPane->SetItemDimmed(EAddressBookCmdAppAdd, !isContact);<a name="l00095"></a>00095 }<a name="l00096"></a>00096 }</pre></div><p> </td> </tr></table><a class="anchor" name="2220dbb6fc6782a5030c8164fcc2c231"></a><!-- doxytag: member="CAddressBookAppUi::DialogDismissedL" ref="2220dbb6fc6782a5030c8164fcc2c231" args="(TInt aButtonId)" --><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 CAddressBookAppUi::DialogDismissedL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TInt </td> <td class="mdname1" valign="top" nowrap> <em>aButtonId</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 MAknBackgroundProcess, is called by the active scheduler to dismiss the dialog <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aButtonId</em> </td><td>specifies button that was pressed </td></tr> </table></dl><p>Definition at line <a class="el" href="_address_book_app_ui_8cpp-source.html#l00230">230</a> of file <a class="el" href="_address_book_app_ui_8cpp-source.html">AddressBookAppUi.cpp</a>.<p>References <a class="el" href="_address_book_engine_8cpp-source.html#l00704">CAddressBookEngine::Cancel()</a>, and <a class="el" href="_address_book_app_ui_8h-source.html#l00145">iEngine</a>.<div class="fragment"><pre class="fragment"><a name="l00231"></a>00231 {<a name="l00232"></a>00232 <span class="keywordflow">if</span> (aButtonId == EAknSoftkeyCancel)<a name="l00233"></a>00233 {<a name="l00234"></a>00234 <a class="code" href="class_c_address_book_app_ui.html#c22846eecaea51cfb97699603e4227b3">iEngine</a>-><a class="code" href="class_c_address_book_engine.html#e5feacc99c7a1d3ff42a6d3109717c3c">Cancel</a>();<a name="l00235"></a>00235 }<a name="l00236"></a>00236 }</pre></div><p> </td> </tr></table><a class="anchor" name="34fc7596f70aed6415e69cc09bec0968"></a><!-- doxytag: member="CAddressBookAppUi::IsProcessDone" ref="34fc7596f70aed6415e69cc09bec0968" args="() const " --><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">TBool CAddressBookAppUi::IsProcessDone </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>From MAknBackgroundProcess, is called by the active scheduler to check if is process already done <p>Definition at line <a class="el" href="_address_book_app_ui_8cpp-source.html#l00244">244</a> of file <a class="el" href="_address_book_app_ui_8cpp-source.html">AddressBookAppUi.cpp</a>.<p>References <a class="el" href="_address_book_app_ui_8h-source.html#l00148">iReady</a>.<div class="fragment"><pre class="fragment"><a name="l00245"></a>00245 {<a name="l00246"></a>00246 <span class="keywordflow">return</span> <a class="code" href="class_c_address_book_app_ui.html#6830bcaace45857cc2764083c896a853">iReady</a>;<a name="l00247"></a>00247 }</pre></div><p> </td> </tr></table><a class="anchor" name="9fadb422c50df5ad198f645d92cf408c"></a><!-- doxytag: member="CAddressBookAppUi::ProcessFinished" ref="9fadb422c50df5ad198f645d92cf408c" 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 CAddressBookAppUi::ProcessFinished </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>From MAknBackgroundProcess is called by the active scheduler to finish the process <p>Definition at line <a class="el" href="_address_book_app_ui_8cpp-source.html#l00255">255</a> of file <a class="el" href="_address_book_app_ui_8cpp-source.html">AddressBookAppUi.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00256"></a>00256 {<a name="l00257"></a>00257 }</pre></div><p> </td> </tr></table><a class="anchor" name="2b047861e8a98fc470be28703b1bd9d0"></a><!-- doxytag: member="CAddressBookAppUi::StepL" ref="2b047861e8a98fc470be28703b1bd9d0" 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 CAddressBookAppUi::StepL </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>From MAknBackgroundProcess, and is called by the active scheduler to do one step of processing Purpose this function in AddressBook to run AddressBookEngine::ConnectL() if connection is not established yet <p>Definition at line <a class="el" href="_address_book_app_ui_8cpp-source.html#l00267">267</a> of file <a class="el" href="_address_book_app_ui_8cpp-source.html">AddressBookAppUi.cpp</a>.<p>References <a class="el" href="_address_book_engine_8cpp-source.html#l00656">CAddressBookEngine::ConnectL()</a>, <a class="el" href="_address_book_app_ui_8h-source.html#l00150">iConnecting</a>, and <a class="el" href="_address_book_app_ui_8h-source.html#l00145">iEngine</a>.<div class="fragment"><pre class="fragment"><a name="l00268"></a>00268 {<a name="l00269"></a>00269 <span class="keywordflow">if</span> (!<a class="code" href="class_c_address_book_app_ui.html#b7587073b932d79e53ffe2aaad4544bb">iConnecting</a>)<a name="l00270"></a>00270 {<a name="l00271"></a>00271 <a class="code" href="class_c_address_book_app_ui.html#b7587073b932d79e53ffe2aaad4544bb">iConnecting</a> = ETrue; <span class="comment">// do this only once</span><a name="l00272"></a>00272 <a class="code" href="class_c_address_book_app_ui.html#c22846eecaea51cfb97699603e4227b3">iEngine</a>-><a class="code" href="class_c_address_book_engine.html#e8a170fa40d8d9d67f0cebf751b96e87">ConnectL</a>();<a name="l00273"></a>00273 }<a name="l00274"></a>00274 }</pre></div><p> </td> </tr></table><a class="anchor" name="a682d228622cea7790645ce10f591242"></a><!-- doxytag: member="CAddressBookAppUi::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 CAddressBookAppUi::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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -