cryptoservices/filebasedcertificateandkeystores/test/keytool/keytool_controller.h
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 /*
       
     2 * Copyright (c) 2004-2009 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __KEYTOOL_CONTROLLER_H_
       
    20 #define __KEYTOOL_CONTROLLER_H_
       
    21 
       
    22 #include <f32file.h>
       
    23 #include <barsc.h>
       
    24 
       
    25 #include "controller.h"
       
    26 
       
    27 #include "keytool_defcontroller.h"
       
    28 #include "keytool_view.h"
       
    29 #include "keytool_engine.h"
       
    30 
       
    31 class CKeyToolParameters;
       
    32 
       
    33 /**
       
    34  * The controller in the MVC pattern for the Symbian OS keytool.
       
    35  */
       
    36 class CKeyToolController : public CController, public KeyToolDefController
       
    37 	{ 
       
    38 	public:
       
    39 		static CKeyToolController* NewLC(MKeyToolView& aView);
       
    40 	
       
    41 		static CKeyToolController* NewL(MKeyToolView& aView);
       
    42 		
       
    43 		~CKeyToolController();		
       
    44 		
       
    45 		/**
       
    46 		 * Given a command code it delegates to the proper handler.
       
    47 		 *
       
    48 		 * @param aCommand The command code to be executed.
       
    49 		 */
       
    50 		void HandleCommandL(TInt aCommand, CKeyToolParameters* aParam);
       
    51 
       
    52 /*	public: 
       
    53 		void DisplayError(const TDesC& aError, TInt aErrorCode);	
       
    54 		void DisplayError(const TDesC& aError);
       
    55 		void DisplayKey(CCTKeyInfo& aKey, TBool aIsDetailed);
       
    56 		void DisplayKeys(RMPointerArray<CCTKeyInfo> aKeyList, TBool aIsDetailed);
       
    57 		void DisplayLocalisedMsg(TInt aResourceId);
       
    58 		void DisplayLocalisedMsg(TInt aResourceId, TInt aErrorCode);
       
    59 */
       
    60 	protected:
       
    61 		void ConstructL();
       
    62 		CKeyToolController(MKeyToolView& aView);	
       
    63 
       
    64 	protected:
       
    65 		//MKeyToolView& 	iView;
       
    66 		CKeyToolEngine* iEngine;
       
    67 		//RFs 			iFsSession;
       
    68 		//RResourceFile 	iResourceFile;
       
    69 	};
       
    70 	
       
    71 #endif    //__KEYTOOL_CONTROLLER_H_