os/security/cryptoservices/filebasedcertificateandkeystores/test/keytool/keytool_controller.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 	protected:
    53 		void ConstructL();
    54 		CKeyToolController(MKeyToolView& aView);	
    55 
    56 	protected:
    57 		CKeyToolEngine* iEngine;
    58 	};
    59 	
    60 #endif    //__KEYTOOL_CONTROLLER_H_
    61