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 __CONTROLLER_H_ sl@0: #define __CONTROLLER_H_ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #include "keytool_view.h" sl@0: sl@0: sl@0: class CController : public CBase sl@0: { sl@0: public: sl@0: void DisplayErrorL(const TDesC& aError, TInt aErrorCode, TBool aPageWise); sl@0: void DisplayErrorL(const TDesC& aError, TBool aPageWise); sl@0: void DisplayLocalisedMsgL(TInt aResourceId); sl@0: void DisplayLocalisedMsgL(TInt aResourceId, TInt aErrorCode); sl@0: sl@0: void DisplayKeyL(CCTKeyInfo& aKey, TBool aIsDetailed, TBool aPageWise); sl@0: sl@0: void DisplayCertL(CCTCertInfo& aCert, CCertificate& aCertificate, RUidArray aApps, TBool aTrusted, TBool aIsDetailed, TBool aPageWise); sl@0: sl@0: ~CController(); sl@0: MKeyToolView& GetView(); sl@0: sl@0: protected: sl@0: CController(MKeyToolView& aView); sl@0: sl@0: protected: sl@0: MKeyToolView& iView; sl@0: RFs iFsSession; sl@0: RResourceFile iResourceFile; sl@0: }; sl@0: sl@0: #endif