Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_txt_viewer_app_view_8h_source.html
changeset 6 43e37759235e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_txt_viewer_app_view_8h_source.html	Tue Mar 30 16:16:55 2010 +0100
@@ -0,0 +1,119 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<title>TB9.2 Example Applications: examples/ForumNokia/S60_3rd_Edition_TextMTM_Example/modules/Viewer/inc/TxtViewerAppView.h Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<link href="doxygen.css" rel="stylesheet" type="text/css"/>
+</head>
+<body>
+<!-- Generated by Doxygen 1.6.2 -->
+<h1>examples/ForumNokia/S60_3rd_Edition_TextMTM_Example/modules/Viewer/inc/TxtViewerAppView.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
+<a name="l00002"></a>00002 
+<a name="l00003"></a>00003 <span class="preprocessor">#ifndef __TXTVIEWVERAPPVIEW_H__</span>
+<a name="l00004"></a>00004 <span class="preprocessor"></span><span class="preprocessor">#define __TXTVIEWVERAPPVIEW_H__</span>
+<a name="l00005"></a>00005 <span class="preprocessor"></span>
+<a name="l00006"></a>00006 <span class="comment">// INCLUDES</span>
+<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;eikedwin.h&gt;</span> 
+<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;EIKRTED.H&quot;</span>
+<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;TXTCMDS.HRH&gt;</span>
+<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;coecntrl.h&gt;</span>
+<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;MSVSTD.H&gt;</span>
+<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;msvapi.h&gt;</span>
+<a name="l00013"></a>00013 <span class="keyword">class </span><a class="code" href="class_c_text_mtm_client.html">CTextMtmClient</a>; 
+<a name="l00014"></a>00014 <span class="keyword">class </span><a class="code" href="class_c_text_mtm_ui.html">CTextMtmUi</a>; 
+<a name="l00015"></a>00015 
+<a name="l00016"></a>00016 <span class="keyword">class </span>CMsvSession;
+<a name="l00017"></a>00017 <span class="keyword">class </span>CMsvStore;
+<a name="l00018"></a>00018 <span class="keyword">class </span>CEikRichTextEditor;
+<a name="l00019"></a>00019 <span class="keyword">class </span>CClientMtmRegistry;
+<a name="l00020"></a>00020 <span class="keyword">class </span>CMtmUiRegistry;
+<a name="l00021"></a>00021 <span class="keyword">class </span>CMsvOperation;
+<a name="l00022"></a>00022 <span class="keyword">class </span>CMsvEntrySelection;
+<a name="l00023"></a>00023 <span class="comment">// CLASS DECLARATION</span>
+<a name="l00024"></a>00024 <span class="keyword">class </span>TDummyObserver : <span class="keyword">public</span> MMsvSessionObserver
+<a name="l00025"></a>00025         {
+<a name="l00026"></a>00026 <span class="keyword">public</span>:
+<a name="l00027"></a>00027         <span class="keywordtype">void</span> HandleSessionEventL(TMsvSessionEvent <span class="comment">/*aEvent*/</span>, TAny* <span class="comment">/*aArg1*/</span>, TAny* <span class="comment">/*aArg2*/</span>, TAny* <span class="comment">/*aArg3*/</span>) {};
+<a name="l00028"></a>00028         };
+<a name="l00029"></a><a class="code" href="class_c_txt_viewer_app_view.html">00029</a> <span class="keyword">class </span><a class="code" href="class_c_txt_viewer_app_view.html">CTxtViewerAppView</a> : <span class="keyword">public</span> CCoeControl
+<a name="l00030"></a>00030     {
+<a name="l00031"></a>00031     <span class="keyword">public</span>: <span class="comment">// New methods</span>
+<a name="l00032"></a>00032                 TRequestStatus* it;
+<a name="l00033"></a>00033                 CMsvOperation* iop;
+<a name="l00034"></a>00034                 CMsvEntrySelection* iselection;
+<a name="l00035"></a>00035                 
+<a name="l00036"></a>00036                 TBuf8&lt;1&gt; iscrap;
+<a name="l00037"></a>00037         
+<a name="l00038"></a>00038         <span class="comment">//Loads body from the store to the editor</span>
+<a name="l00039"></a>00039         <span class="keywordtype">void</span> LoadBodyL();
+<a name="l00040"></a>00040 
+<a name="l00041"></a>00041         <span class="comment">//Saves body from the editor to the store</span>
+<a name="l00042"></a>00042         <span class="keywordtype">void</span> SaveBodyL();
+<a name="l00043"></a>00043 
+<a name="l00044"></a>00044         <span class="keywordtype">void</span> ExportToFileL( <span class="keyword">const</span> TDes&amp; aFileName );
+<a name="l00045"></a>00045 
+<a name="l00046"></a>00046                 <a class="code" href="class_c_text_mtm_ui.html">CTextMtmUi</a>* UiMtm() 
+<a name="l00047"></a>00047                 {
+<a name="l00048"></a>00048                         <span class="keywordflow">return</span> iUiMtm;
+<a name="l00049"></a>00049                 }
+<a name="l00050"></a>00050                 
+<a name="l00051"></a>00051                 TMsvId EntryId();
+<a name="l00052"></a>00052 
+<a name="l00053"></a>00053                 TBool OpenedForEditing();
+<a name="l00054"></a>00054                 
+<a name="l00055"></a>00055                 <span class="keywordtype">void</span> Notify();
+<a name="l00056"></a>00056                 
+<a name="l00064"></a>00064         <span class="keyword">static</span> <a class="code" href="class_c_txt_viewer_app_view.html">CTxtViewerAppView</a>* <a class="code" href="class_c_txt_viewer_app_view.html#a7e09c1fd7708ad2ae159310677f63bae">NewL</a>( <span class="keyword">const</span> TRect&amp; aRect );
+<a name="l00065"></a>00065 
+<a name="l00074"></a>00074         <span class="keyword">static</span> <a class="code" href="class_c_txt_viewer_app_view.html">CTxtViewerAppView</a>* <a class="code" href="class_c_txt_viewer_app_view.html#a8d1fac9534b9bedb16e07e2e978fb80a">NewLC</a>( <span class="keyword">const</span> TRect&amp; aRect );
+<a name="l00075"></a>00075 
+<a name="l00080"></a>00080         <span class="keyword">virtual</span> <a class="code" href="class_c_txt_viewer_app_view.html#a3dc00011be0b2d62f27c9fbadfdca61e">~CTxtViewerAppView</a>();
+<a name="l00081"></a>00081 
+<a name="l00082"></a>00082     <span class="keyword">public</span>:  <span class="comment">// Functions from base classes</span>
+<a name="l00083"></a>00083 <span class="keywordtype">void</span> InitializeMTMsL();
+<a name="l00084"></a>00084         
+<a name="l00090"></a>00090         <span class="keywordtype">void</span> <a class="code" href="class_c_txt_viewer_app_view.html#a7bdf1bd8212448ee05a191b4dabf60a4">Draw</a>( <span class="keyword">const</span> TRect&amp; aRect ) <span class="keyword">const</span>;
+<a name="l00091"></a>00091 
+<a name="l00096"></a>00096         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_txt_viewer_app_view.html#adcb735423b6b32f46c0438c8929c47ae">SizeChanged</a>();
+<a name="l00097"></a>00097 
+<a name="l00098"></a>00098            TKeyResponse OfferKeyEventL(<span class="keyword">const</span> TKeyEvent &amp;aKeyEvent, TEventCode aType);
+<a name="l00099"></a>00099 
+<a name="l00100"></a>00100 
+<a name="l00101"></a>00101 
+<a name="l00102"></a>00102     <span class="keyword">private</span>: <span class="comment">// Constructors</span>
+<a name="l00103"></a>00103 
+<a name="l00111"></a>00111         <span class="keywordtype">void</span> ConstructL(<span class="keyword">const</span> TRect&amp; aRect);
+<a name="l00112"></a>00112 
+<a name="l00117"></a>00117         <a class="code" href="class_c_txt_viewer_app_view.html">CTxtViewerAppView</a>();
+<a name="l00118"></a>00118         
+<a name="l00119"></a>00119       
+<a name="l00120"></a>00120         
+<a name="l00121"></a>00121         
+<a name="l00122"></a>00122         
+<a name="l00123"></a>00123 
+<a name="l00124"></a>00124         <span class="keyword">private</span>:
+<a name="l00125"></a>00125                 CMsvSession* iSession;
+<a name="l00126"></a>00126                 CMsvStore* iStore;
+<a name="l00127"></a>00127                 CEikRichTextEditor* iEditor;
+<a name="l00128"></a>00128                 HBufC* iText;
+<a name="l00129"></a>00129                 <a class="code" href="class_c_text_mtm_client.html">CTextMtmClient</a>* iClientMtm; 
+<a name="l00130"></a>00130                 <a class="code" href="class_c_text_mtm_ui.html">CTextMtmUi</a>* iUiMtm; 
+<a name="l00131"></a>00131                 CClientMtmRegistry* iClientReg;
+<a name="l00132"></a>00132                 CMtmUiRegistry* iUiReg;
+<a name="l00133"></a>00133 
+<a name="l00134"></a>00134                 TDummyObserver iOb;
+<a name="l00135"></a>00135                 
+<a name="l00136"></a>00136 
+<a name="l00137"></a>00137     };
+<a name="l00138"></a>00138 
+<a name="l00139"></a>00139 <span class="preprocessor">#endif // __TXTVIEWVERAPPVIEW_H__</span>
+<a name="l00140"></a>00140 <span class="preprocessor"></span>
+<a name="l00141"></a>00141 <span class="comment">// End of File</span>
+<a name="l00142"></a>00142 
+</pre></div></div>
+<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
+</body>
+</html>