📄 class_c_multi_views_view2.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>CMultiViewsView2 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>CMultiViewsView2 Class Reference</h1><!-- doxytag: class="CMultiViewsView2" --><!-- doxytag: inherits="CAknView" --><code>#include <<a class="el" href="multiviewsview2_8h-source.html">multiviewsview2.h</a>></code><p>Inherits CAknView.<p>Inheritance diagram for CMultiViewsView2:<p><center><img src="class_c_multi_views_view2__inherit__graph.png" border="0" usemap="#_c_multi_views_view2__inherit__map" alt="Inheritance graph"></center><a href="class_c_multi_views_view2-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>CMultiViewsView2 view class. An instance of the Application View object for the MultiViews example application <p><p>Definition at line <a class="el" href="multiviewsview2_8h-source.html#l00036">36</a> of file <a class="el" href="multiviewsview2_8h-source.html">multiviewsview2.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">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_view2.html#a6ce3760963e1c88182fffea6a4797fa">~CMultiViewsView2</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TUid </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_view2.html#a9048c3ff4f288da47ab9b2de1833749">Id</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_view2.html#a682d228622cea7790645ce10f591242">HandleCommandL</a> (TInt aCommand)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_view2.html#366b9bdc3feb98c2fa8b54b12561be7f">DoActivateL</a> (const TVwsViewId &aPrevViewId, TUid aCustomMessageId, const TDesC8 &aCustomMessage)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_view2.html#8dc3833be5508368363dce246e04a18f">DoDeactivate</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_multi_views_view2.html#64981e38a948501cd02bc05adb30be05">HandleSizeChange</a> (TInt aType)</td></tr><tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_multi_views_view2.html">CMultiViewsView2</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_view2.html#990716240ccf3341f7fdbf289ec927ad">NewL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_multi_views_view2.html">CMultiViewsView2</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_view2.html#94389c6729b439332fc74a54ac683740">NewLC</a> ()</td></tr><tr><td colspan="2"><br><h2>Private 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_multi_views_view2.html#bef9664b585b1490e3025fef27ae4519">CMultiViewsView2</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_multi_views_view2.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_multi_views_container2.html">CMultiViewsContainer2</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_view2.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TUid </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_view2.html#a447b089754843a72b8d80a2eadf8681">iIdentifier</a></td></tr></table><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="a6ce3760963e1c88182fffea6a4797fa"></a><!-- doxytag: member="CMultiViewsView2::~CMultiViewsView2" ref="a6ce3760963e1c88182fffea6a4797fa" 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">CMultiViewsView2::~CMultiViewsView2 </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>~CMultiViewsView2. Virtual Destructor. <p>Definition at line <a class="el" href="multiviewsview2_8cpp-source.html#l00080">80</a> of file <a class="el" href="multiviewsview2_8cpp-source.html">multiviewsview2.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00081"></a>00081 {<a name="l00082"></a>00082 <span class="comment">// No implementation required</span><a name="l00083"></a>00083 }</pre></div><p> </td> </tr></table><a class="anchor" name="bef9664b585b1490e3025fef27ae4519"></a><!-- doxytag: member="CMultiViewsView2::CMultiViewsView2" ref="bef9664b585b1490e3025fef27ae4519" 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">CMultiViewsView2::CMultiViewsView2 </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>CMultiViewsView2. C++ default constructor. <p>Definition at line <a class="el" href="multiviewsview2_8cpp-source.html#l00035">35</a> of file <a class="el" href="multiviewsview2_8cpp-source.html">multiviewsview2.cpp</a>.<p>Referenced by <a class="el" href="multiviewsview2_8cpp-source.html#l00057">NewLC()</a>.<div class="fragment"><pre class="fragment"><a name="l00036"></a>00036 {<a name="l00037"></a>00037 <span class="comment">// No implementation required</span><a name="l00038"></a>00038 }</pre></div><p> </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="990716240ccf3341f7fdbf289ec927ad"></a><!-- doxytag: member="CMultiViewsView2::NewL" ref="990716240ccf3341f7fdbf289ec927ad" 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"><a class="el" href="class_c_multi_views_view2.html">CMultiViewsView2</a> * CMultiViewsView2::NewL </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> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>NewL. Two-phased constructor. Construct a CMultiViewsView2 for the AVKON application aApp. Using two phase construction,and return a pointer to the created object. <dl compact><dt><b>Returns:</b></dt><dd>a pointer to the created instance of CMultiViewsView2 </dd></dl><p>Definition at line <a class="el" href="multiviewsview2_8cpp-source.html#l00045">45</a> of file <a class="el" href="multiviewsview2_8cpp-source.html">multiviewsview2.cpp</a>.<p>References <a class="el" href="multiviewsview2_8cpp-source.html#l00057">NewLC()</a>.<p>Referenced by <a class="el" href="multiviewsappui_8cpp-source.html#l00033">CMultiViewsAppUi::ConstructL()</a>.<div class="fragment"><pre class="fragment"><a name="l00046"></a>00046 {<a name="l00047"></a>00047 <a class="code" href="class_c_multi_views_view2.html">CMultiViewsView2</a>* <span class="keyword">self</span> = <a class="code" href="class_c_multi_views_view2.html#94389c6729b439332fc74a54ac683740">CMultiViewsView2::NewLC</a>();<a name="l00048"></a>00048 CleanupStack::Pop( <span class="keyword">self</span> );<a name="l00049"></a>00049 <span class="keywordflow">return</span> <span class="keyword">self</span>;<a name="l00050"></a>00050 }</pre></div><p> </td> </tr></table><a class="anchor" name="94389c6729b439332fc74a54ac683740"></a><!-- doxytag: member="CMultiViewsView2::NewLC" ref="94389c6729b439332fc74a54ac683740" 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"><a class="el" href="class_c_multi_views_view2.html">CMultiViewsView2</a> * CMultiViewsView2::NewLC </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> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>NewLC. Two-phased constructor. Construct a CMultiViewsView2 for the AVKON application aApp. Using two phase construction,and return a pointer to the created object. <dl compact><dt><b>Returns:</b></dt><dd>a pointer to the created instance of CMultiViewsView2 </dd></dl><p>Definition at line <a class="el" href="multiviewsview2_8cpp-source.html#l00057">57</a> of file <a class="el" href="multiviewsview2_8cpp-source.html">multiviewsview2.cpp</a>.<p>References <a class="el" href="multiviewsview2_8cpp-source.html#l00035">CMultiViewsView2()</a>.<p>Referenced by <a class="el" href="multiviewsview2_8cpp-source.html#l00045">NewL()</a>.<div class="fragment"><pre class="fragment"><a name="l00058"></a>00058 {<a name="l00059"></a>00059 <a class="code" href="class_c_multi_views_view2.html">CMultiViewsView2</a>* <span class="keyword">self</span> = <span class="keyword">new</span> ( ELeave ) <a class="code" href="class_c_multi_views_view2.html#bef9664b585b1490e3025fef27ae4519">CMultiViewsView2</a>();<a name="l00060"></a>00060 CleanupStack::PushL( <span class="keyword">self</span> );<a name="l00061"></a>00061 <span class="keyword">self</span>->ConstructL();<a name="l00062"></a>00062 <span class="keywordflow">return</span> <span class="keyword">self</span>;<a name="l00063"></a>00063 }</pre></div><p> </td> </tr></table><a class="anchor" name="a9048c3ff4f288da47ab9b2de1833749"></a><!-- doxytag: member="CMultiViewsView2::Id" ref="a9048c3ff4f288da47ab9b2de1833749" 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">TUid CMultiViewsView2::Id </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</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Id From CAknView, return Uid. <dl compact><dt><b>Returns:</b></dt><dd>Uid Uid value </dd></dl><p>Definition at line <a class="el" href="multiviewsview2_8cpp-source.html#l00090">90</a> of file <a class="el" href="multiviewsview2_8cpp-source.html">multiviewsview2.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00091"></a>00091 {<a name="l00092"></a>00092 <span class="keywordflow">return</span> TUid::Uid( EMultiViewsView2Id );<a name="l00093"></a>00093 }</pre></div><p> </td> </tr></table><a class="anchor" name="a682d228622cea7790645ce10f591242"></a><!-- doxytag: member="CMultiViewsView2::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 CMultiViewsView2::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></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>HandleCommandL From CAknView, takes care of command handling. <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 to be handled </td></tr> </table></dl><p>Definition at line <a class="el" href="multiviewsview2_8cpp-source.html#l00128">128</a> of file <a class="el" href="multiviewsview2_8cpp-source.html">multiviewsview2.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00129"></a>00129 {<a name="l00130"></a>00130 <span class="keywordflow">if</span> ( aCommand == EMultiViewsCommand1 )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -