webengine/wmlengine/src/MVC/include/WimUi.h
changeset 74 91031d3aab7d
parent 68 92a765b5b3e7
child 85 e358f2276d3f
equal deleted inserted replaced
68:92a765b5b3e7 74:91031d3aab7d
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Contains functions for Digital Signing (WIM_ENABLED env. only)
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __WIMUI_H
       
    20 #define __WIMUI_H
       
    21 
       
    22 /* #include <wimsecdlgs.h> */
       
    23 #include <nwx_generic_dlg.h>
       
    24 
       
    25 typedef TInt TDSignDialogType;
       
    26 
       
    27 const TInt KDSignDialogTypeSignText = 0;
       
    28 const TInt KDSignDialogTypeSelectCert = 1;
       
    29 const TInt KDSignDialogTypePinCodeQuery = 2;
       
    30 const TInt KSignTextRequested= 3;
       
    31 
       
    32 const TInt KMaxPINInputLength = 8;
       
    33 const TInt KMinPINInputLength = 1; // currently in use 
       
    34 
       
    35 
       
    36 class CWimUi : public CActive
       
    37 {
       
    38 	public: 
       
    39 
       
    40         /**
       
    41         * EPOC two phased constructor
       
    42         */
       
    43 		static CWimUi* NewL();
       
    44 
       
    45         /**
       
    46         * destructor
       
    47         */
       
    48 		~CWimUi();
       
    49 		
       
    50 		/**
       
    51 		 * Shows Sign Text Dialog
       
    52 		 *
       
    53 		 * @param void* data
       
    54 		 *        void* callbackctx
       
    55 		 *        void* callback
       
    56 		 * @return void
       
    57 		 */
       
    58 		void DoShowSignTextDialogL(void* data, void* callbackctx, void* callback);
       
    59 
       
    60 		/**
       
    61 		 * Shows Select Certificate Dialog
       
    62 		 *
       
    63 		 * @param void* data
       
    64 		 *        void* callbackctx
       
    65 		 *        void* callback
       
    66 		 * @return void
       
    67 		 */
       
    68 		void DoShowSelectCertificateDlgL(void* data, void* callbackctx, void* callback);
       
    69 
       
    70 		/**
       
    71 		 * Shows Select Pin Code Query Dialog
       
    72 		 *
       
    73 		 * @param void* data
       
    74 		 *        void* callbackctx
       
    75 		 *        void* callback
       
    76 		 * @return void
       
    77 		 */
       
    78 		void DoShowPinCodeQueryDialogL(void* data, void* callbackctx, void* callback);
       
    79 
       
    80 	private: // Private methods
       
    81 
       
    82         /**
       
    83         * By default EPOC constructor is private.
       
    84         */
       
    85 		void ConstructL();
       
    86 		
       
    87         /**
       
    88         * C++ default constructor.
       
    89         */
       
    90         CWimUi();
       
    91 
       
    92         /**
       
    93         * Required function for CActive object.
       
    94         */
       
    95 		void RunL();
       
    96 		
       
    97         /**
       
    98         * Required function for CActive object.
       
    99         */
       
   100 		void DoCancel();
       
   101 
       
   102 	private: // Private member variables
       
   103 
       
   104 		void* iData;
       
   105 		void* iCallbackCtx;
       
   106 		void* iCallback;
       
   107 		TBool iBooleanValue;
       
   108 		TInt iSelectedCertIndex;
       
   109 
       
   110 		TWIMPINParams iParams;
       
   111 		const TDialogType iPinPukDialogType;
       
   112 		TPINValue iPinValue;
       
   113 		
       
   114 		MWimSecurityDialogs* iSecDlgs;
       
   115 		TDSignDialogType iDialogType;
       
   116 
       
   117 };
       
   118 
       
   119 #endif