Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_secure_sockets_8h-source.html
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Tue, 30 Mar 2010 11:42:04 +0100
changeset 4 4816d766a08a
parent 1 25a17d01db0c
permissions -rw-r--r--
Week 12 contribution of SDK documentation_content. See release notes for details. Fixes Bug 1892, Bug 1522, Bug 1520, Bug 394, Bug 1319, Bug 344, Bug 1897

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>TB10.1 Example Applications: examples/Networking/SecureSockets/SecureSockets.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.3 -->
<h1>examples/Networking/SecureSockets/SecureSockets.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).</span>
<a name="l00002"></a>00002 <span class="comment">// All rights reserved.</span>
<a name="l00003"></a>00003 <span class="comment">// This component and the accompanying materials are made available</span>
<a name="l00004"></a>00004 <span class="comment">// under the terms of "Eclipse Public License v1.0"</span>
<a name="l00005"></a>00005 <span class="comment">// which accompanies this distribution, and is available</span>
<a name="l00006"></a>00006 <span class="comment">// at the URL "http://www.eclipse.org/legal/epl-v10.html".</span>
<a name="l00007"></a>00007 <span class="comment">//</span>
<a name="l00008"></a>00008 <span class="comment">// Initial Contributors:</span>
<a name="l00009"></a>00009 <span class="comment">// Nokia Corporation - initial contribution.</span>
<a name="l00010"></a>00010 <span class="comment">//</span>
<a name="l00011"></a>00011 <span class="comment">// Contributors:</span>
<a name="l00012"></a>00012 <span class="comment">//</span>
<a name="l00013"></a>00013 <span class="comment">// Description:</span>
<a name="l00014"></a>00014 <span class="comment">//</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;basched.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;eikenv.h&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;coecntrl.h&gt;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;eikappui.h&gt;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;e32keys.h&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;eikconso.h&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;eikapp.h&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;eikdoc.h&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;eikon.rsg&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;eikinfo.h&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;eikon.hrh&gt;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;securesockets.rsg&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include "SecEngine.h"</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#ifndef _SECAPP_H_</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define _SECAPP_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 
<a name="l00036"></a>00036 <span class="keyword">const</span> TUid KUidSecApp = {0xE8000068};
<a name="l00037"></a>00037 
<a name="l00041"></a><a class="code" href="class_c_console_control.html">00041</a> <span class="keyword">class </span><a class="code" href="class_c_console_control.html">CConsoleControl</a> : <span class="keyword">public</span> CCoeControl
<a name="l00042"></a>00042         {
<a name="l00043"></a>00043 <span class="keyword">public</span>:
<a name="l00044"></a>00044         <span class="keyword">static</span> <a class="code" href="class_c_console_control.html">CConsoleControl</a>* <a class="code" href="class_c_console_control.html#7882b336d8cca24f12beec79e1e3b07b">NewL</a>(<span class="keyword">const</span> TRect&amp; aClientRect);
<a name="l00045"></a>00045         <a class="code" href="class_c_console_control.html#fcc2f7d89a4e264eeb7ebbbdd7847b64">~CConsoleControl</a>();
<a name="l00046"></a>00046         <span class="keywordtype">void</span> <a class="code" href="class_c_console_control.html#1d0deb7a7e74ef98b91bd6998109558f">ConstructL</a>(<span class="keyword">const</span> TRect&amp; aClientRect);
<a name="l00047"></a>00047         CConsoleBase&amp; <a class="code" href="class_c_console_control.html#a412afac164ff5e72064cb6c4a02fb1e">Console</a>();
<a name="l00048"></a>00048 
<a name="l00049"></a>00049         <span class="comment">// Override CCoeControl</span>
<a name="l00050"></a>00050     <span class="keywordtype">void</span> <a class="code" href="class_c_console_control.html#0a03a5108e06a2a94c37c256f49c71b0">ActivateL</a>();
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="keyword">protected</span>:
<a name="l00053"></a><a class="code" href="class_c_console_control.html#608da2fc209359390bcfb962cf9b7803">00053</a>         <a class="code" href="class_c_console_control.html#608da2fc209359390bcfb962cf9b7803">CConsoleControl</a>() {}
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 <span class="keyword">private</span>:
<a name="l00056"></a>00056         CEikConsoleScreen* iConsole;    <span class="comment">// Standard console control</span>
<a name="l00057"></a>00057         };
<a name="l00058"></a>00058 
<a name="l00062"></a><a class="code" href="class_c_settings_dialog.html">00062</a> <span class="keyword">class </span><a class="code" href="class_c_settings_dialog.html">CSettingsDialog</a>: <span class="keyword">public</span> CEikDialog
<a name="l00063"></a>00063         {
<a name="l00064"></a>00064 <span class="keyword">public</span>:
<a name="l00070"></a>00070         <span class="keyword">static</span> TBool <a class="code" href="class_c_settings_dialog.html#0afdd3a25e18080ecddd901348af6b57">RunDlgLD</a>(<a class="code" href="struct_t_connect_settings.html">TConnectSettings</a>&amp; aConnectSettings);
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 <span class="keyword">private</span>:
<a name="l00077"></a>00077         <a class="code" href="class_c_settings_dialog.html">CSettingsDialog</a>(<a class="code" href="struct_t_connect_settings.html">TConnectSettings</a>&amp; aConnectSettings);
<a name="l00078"></a>00078 
<a name="l00079"></a>00079         <span class="comment">// From CEikDialog</span>
<a name="l00081"></a>00081 <span class="comment"></span>        <span class="keywordtype">void</span> PreLayoutDynInitL();
<a name="l00083"></a>00083         TBool OkToExitL(TInt aButtonId);
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 <span class="keyword">private</span>:
<a name="l00087"></a>00087         <a class="code" href="struct_t_connect_settings.html">TConnectSettings</a>&amp; iConnectSettings;
<a name="l00088"></a>00088         };
<a name="l00089"></a>00089 
<a name="l00093"></a><a class="code" href="class_c_sec_app_ui.html">00093</a> <span class="keyword">class </span><a class="code" href="class_c_sec_app_ui.html">CSecAppUi</a> : <span class="keyword">public</span> CEikAppUi
<a name="l00094"></a>00094     {
<a name="l00095"></a>00095 <span class="keyword">public</span>:
<a name="l00096"></a>00096         <a class="code" href="class_c_sec_app_ui.html#b4fef66837e4d642eb3b59619475b827">CSecAppUi</a>(<a class="code" href="class_c_sec_engine.html">CSecEngine</a>* aSecEngine);
<a name="l00097"></a>00097     <span class="keywordtype">void</span> <a class="code" href="class_c_sec_app_ui.html#aafa739699d5f2bf470abd1b7ae140d0">ConstructL</a>();
<a name="l00098"></a>00098         <a class="code" href="class_c_sec_app_ui.html#be80a37fedd085ff54be139310b5d13f">~CSecAppUi</a>();
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 <span class="keyword">private</span>:
<a name="l00101"></a>00101         <span class="comment">// Override CEikAppUi</span>
<a name="l00102"></a>00102     <span class="keywordtype">void</span> HandleCommandL(TInt aCommand);
<a name="l00103"></a>00103         <span class="keywordtype">void</span> DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="keyword">private</span>:
<a name="l00106"></a>00106         <a class="code" href="class_c_console_control.html">CConsoleControl</a>* iConsoleControl;
<a name="l00107"></a>00107         <a class="code" href="class_c_sec_engine.html">CSecEngine</a>* iSecEngine;
<a name="l00108"></a>00108         <a class="code" href="struct_t_connect_settings.html">TConnectSettings</a> iConnectSettings;
<a name="l00109"></a>00109 
<a name="l00110"></a>00110         RFile iOutputFile;
<a name="l00111"></a>00111         TFileName iOutputFileName;
<a name="l00112"></a>00112         };
<a name="l00113"></a>00113 
<a name="l00117"></a><a class="code" href="class_c_sec_document.html">00117</a> <span class="keyword">class </span><a class="code" href="class_c_sec_document.html">CSecDocument</a> : <span class="keyword">public</span> CEikDocument
<a name="l00118"></a>00118         {
<a name="l00119"></a>00119 <span class="keyword">public</span>:
<a name="l00120"></a>00120         <a class="code" href="class_c_sec_document.html#bd904d8ada9a0d20849fa6a527326a01">CSecDocument</a>(CEikApplication&amp; aApp);
<a name="l00121"></a>00121         <span class="keyword">static</span> <a class="code" href="class_c_sec_document.html">CSecDocument</a>* <a class="code" href="class_c_sec_document.html#bca5605d859bc7299849450586a6cf53">NewL</a>(CEikApplication&amp; aApp);
<a name="l00122"></a>00122         <a class="code" href="class_c_sec_document.html#af1709f1183dbba6557a5798a979f004">~CSecDocument</a>();
<a name="l00123"></a>00123         <span class="keywordtype">void</span> <a class="code" href="class_c_sec_document.html#4f52ece8c2b90242b8422b0bcd8bdfce">ConstructL</a>();
<a name="l00124"></a>00124 <span class="keyword">private</span>:
<a name="l00125"></a>00125         <span class="comment">// Override CApaDocument</span>
<a name="l00126"></a>00126         CEikAppUi* CreateAppUiL();
<a name="l00127"></a>00127 <span class="keyword">private</span>:
<a name="l00128"></a>00128         <a class="code" href="class_c_sec_engine.html">CSecEngine</a>* iSecEngine; <span class="comment">// Document owns the engine</span>
<a name="l00129"></a>00129         };
<a name="l00130"></a>00130 
<a name="l00134"></a><a class="code" href="class_c_sec_application.html">00134</a> <span class="keyword">class </span><a class="code" href="class_c_sec_application.html">CSecApplication</a> : <span class="keyword">public</span> CEikApplication
<a name="l00135"></a>00135         {
<a name="l00136"></a>00136 <span class="keyword">private</span>: <span class="comment">// from CApaApplication</span>
<a name="l00137"></a>00137         CApaDocument* CreateDocumentL();
<a name="l00138"></a>00138         TUid AppDllUid() <span class="keyword">const</span>;
<a name="l00139"></a>00139         };
<a name="l00140"></a>00140 <span class="preprocessor">#endif</span>
<a name="l00141"></a>00141 <span class="preprocessor"></span>
<a name="l00142"></a>00142 
<a name="l00143"></a>00143 
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:33:00 2010 for TB10.1 Example Applications by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>