sl@0: // Copyright (c) 2006-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: // f32test\plugins\hexrypt\t_hexhook.h sl@0: // sl@0: // sl@0: sl@0: #if !defined(__T_HEXHOOK_H__) sl@0: #define __T_HEXHOOK_H__ sl@0: sl@0: #include sl@0: sl@0: sl@0: /** sl@0: The actual implementation of the test hex plugin hook. sl@0: It implements all of the pure virtual functions from CTestHexHook. sl@0: @internalComponent sl@0: */ sl@0: class CTestHexHook: public CFsPlugin sl@0: { sl@0: public: sl@0: static CTestHexHook* NewL(); sl@0: ~CTestHexHook(); sl@0: sl@0: virtual void InitialiseL(); sl@0: virtual TInt DoRequestL(TFsPluginRequest& aRequest); sl@0: sl@0: private: sl@0: enum TOperation {EFileOpen, EFileDelete, EFileRename, EFileClose}; sl@0: sl@0: private: sl@0: CTestHexHook(); sl@0: sl@0: TInt HexFileOpen(TFsPluginRequest& aRequest); sl@0: TInt HexFileRead(TFsPluginRequest& aRequest); sl@0: sl@0: public: sl@0: private: sl@0: TInt HexPluginName(TDes& aName); sl@0: sl@0: private: sl@0: TInt iDrvNumber; sl@0: RFs iFs; sl@0: TBuf8<64> iHexBuf; sl@0: TBuf8<32> iBinBuf; sl@0: }; sl@0: sl@0: #endif