?? class_c_focus_event_app_ui.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>CFocusEventAppUi Class Reference</title><link href="style.css" rel="stylesheet" type="text/css"></head><table border="0" width="100%" height="8" bgcolor="#eeeeee"><tr> <td width="100%" height="1"><b><font size="2" color="#000000" face="Arial, Helvetica, sans-serif"><strong><a name=Top></a>S60 3rd Edition SDK FP1 for Symbian OS </strong></font></b><br><i>Example Applications Guide</i></td></tr> </table><!-- Generated by Doxygen 1.4.5 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li id="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div><h1>CFocusEventAppUi Class Reference</h1><!-- doxytag: class="CFocusEventAppUi" --><!-- doxytag: inherits="CAknAppUi" --><code>#include <<a class="el" href="focuseventappui_8h-source.html">focuseventappui.h</a>></code><p>Inherits CAknAppUi.<p>Inheritance diagram for CFocusEventAppUi:<p><center><img src="class_c_focus_event_app_ui__inherit__graph.png" border="0" usemap="#_c_focus_event_app_ui__inherit__map" alt="Inheritance graph"></center><a href="class_c_focus_event_app_ui-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>CFocusEventAppUi application UI class. Interacts with the user through the UI and request message processing from the handler class <p><p>Definition at line <a class="el" href="focuseventappui_8h-source.html#l00031">31</a> of file <a class="el" href="focuseventappui_8h-source.html">focuseventappui.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_ui.html#200ee3b36e56213ee1a3c193757fcfe9">CFocusEventAppUi</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_ui.html#e6e1a0c6a31601eb0674658efa64e7fc">~CFocusEventAppUi</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_ui.html#a5d42e049d7c33367af550ae356b7f8d">HandleForegroundEventL</a> (TBool aForeground)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_ui.html#a682d228622cea7790645ce10f591242">HandleCommandL</a> (TInt aCommand)</td></tr><tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_ui.html#9ce34ba0b947863222da3c63d0481044">ConstructL</a> ()</td></tr><tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_c_focus_event_app_view.html">CFocusEventAppView</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1">iAppView</a></td></tr></table><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="200ee3b36e56213ee1a3c193757fcfe9"></a><!-- doxytag: member="CFocusEventAppUi::CFocusEventAppUi" ref="200ee3b36e56213ee1a3c193757fcfe9" 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">CFocusEventAppUi::CFocusEventAppUi </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>CFocusEventAppUi. C++ default constructor. This needs to be public due to the way the framework constructs the AppUi <p>Definition at line <a class="el" href="focuseventappui_8cpp-source.html#l00033">33</a> of file <a class="el" href="focuseventappui_8cpp-source.html">focuseventappui.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00034"></a>00034 {<a name="l00035"></a>00035 <span class="comment">// No implementation required</span><a name="l00036"></a>00036 }</pre></div><p> </td> </tr></table><a class="anchor" name="e6e1a0c6a31601eb0674658efa64e7fc"></a><!-- doxytag: member="CFocusEventAppUi::~CFocusEventAppUi" ref="e6e1a0c6a31601eb0674658efa64e7fc" 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">CFocusEventAppUi::~CFocusEventAppUi </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> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>~CFocusEventAppUi. Virtual Destructor. <p>Definition at line <a class="el" href="focuseventappui_8cpp-source.html#l00057">57</a> of file <a class="el" href="focuseventappui_8cpp-source.html">focuseventappui.cpp</a>.<p>References <a class="el" href="focuseventappui_8h-source.html#l00078">iAppView</a>.<div class="fragment"><pre class="fragment"><a name="l00058"></a>00058 {<a name="l00059"></a>00059 <span class="keywordflow">if</span> ( <a class="code" href="class_c_focus_event_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1">iAppView</a> )<a name="l00060"></a>00060 {<a name="l00061"></a>00061 iEikonEnv->RemoveFromStack( <a class="code" href="class_c_focus_event_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1">iAppView</a> );<a name="l00062"></a>00062 <span class="keyword">delete</span> iAppView;<a name="l00063"></a>00063 iAppView = NULL;<a name="l00064"></a>00064 }<a name="l00065"></a>00065 }</pre></div><p> </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="a5d42e049d7c33367af550ae356b7f8d"></a><!-- doxytag: member="CFocusEventAppUi::HandleForegroundEventL" ref="a5d42e049d7c33367af550ae356b7f8d" args="(TBool aForeground)" --><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 CFocusEventAppUi::HandleForegroundEventL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TBool </td> <td class="mdname1" valign="top" nowrap> <em>aForeground</em> </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>From CAknAppUi, HandleForegroundEventL. Handles a change of focus. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aForeground</em> </td><td>is ETrue is this application has focus. </td></tr> </table></dl><p>Definition at line <a class="el" href="focuseventappui_8cpp-source.html#l00092">92</a> of file <a class="el" href="focuseventappui_8cpp-source.html">focuseventappui.cpp</a>.<p>References <a class="el" href="focuseventappui_8h-source.html#l00078">iAppView</a>, <a class="el" href="focuseventappview_8cpp-source.html#l00124">CFocusEventAppView::Print()</a>, and <a class="el" href="focuseventappview_8cpp-source.html#l00155">CFocusEventAppView::PrintNewLineL()</a>.<div class="fragment"><pre class="fragment"><a name="l00093"></a>00093 {<a name="l00094"></a>00094 <span class="keywordflow">if</span> ( !aForeground ) <span class="comment">// Focus lost</span><a name="l00095"></a>00095 {<a name="l00096"></a>00096 <span class="comment">// Load a string from the resource file.</span><a name="l00097"></a>00097 HBufC* lostFocusMessage = StringLoader::LoadLC<a name="l00098"></a>00098 ( R_FOCU_LOST_FOCUS_TEXT );<a name="l00099"></a>00099 #ifdef __WINS__
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -