sl@0: /* sl@0: * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #ifndef __CERTTOOL_CONTROLLER_H_ sl@0: #define __CERTTOOL_CONTROLLER_H_ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #include "certtool_defcontroller.h" sl@0: #include "certtool_engine.h" sl@0: #include "keytool_view.h" sl@0: #include "controller.h" sl@0: sl@0: class CKeyToolParameters; sl@0: sl@0: /** sl@0: * The controller in the MVC pattern for the Symbian OS certtool. sl@0: */ sl@0: class CCertToolController : public CController, public CertToolDefController sl@0: { sl@0: public: sl@0: static CCertToolController* NewLC(MKeyToolView& aView); sl@0: sl@0: ~CCertToolController(); sl@0: sl@0: /** sl@0: * Given a command code it delegates to the proper handler. sl@0: * sl@0: * @param aCommand The command code to be executed. sl@0: */ sl@0: void HandleCommandL(TInt aCommand, CKeyToolParameters* aParam); sl@0: sl@0: protected: sl@0: void ConstructL(); sl@0: sl@0: private: sl@0: CCertToolController(MKeyToolView& aView); sl@0: sl@0: protected: sl@0: CCertToolEngine* iEngine; sl@0: }; sl@0: sl@0: #endif //__CERTTOOL_CONTROLLER_H_ sl@0: