diff -r 000000000000 -r bde4ae8d615e os/kernelhwsrv/kerneltest/f32test/plugins/version_2beta/hex/t_hexhook.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/kernelhwsrv/kerneltest/f32test/plugins/version_2beta/hex/t_hexhook.h Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,58 @@ +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// f32test\plugins\hexrypt\t_hexhook.h +// +// + +#if !defined(__T_HEXHOOK_H__) +#define __T_HEXHOOK_H__ + +#include + + +/** +The actual implementation of the test hex plugin hook. +It implements all of the pure virtual functions from CTestHexHook. +@internalComponent +*/ +class CTestHexHook: public CFsPlugin + { +public: + static CTestHexHook* NewL(); + ~CTestHexHook(); + + virtual void InitialiseL(); + virtual TInt DoRequestL(TFsPluginRequest& aRequest); + +private: + enum TOperation {EFileOpen, EFileDelete, EFileRename, EFileClose}; + +private: + CTestHexHook(); + + TInt HexFileOpen(TFsPluginRequest& aRequest); + TInt HexFileRead(TFsPluginRequest& aRequest); + +public: +private: + TInt HexPluginName(TDes& aName); + +private: + TInt iDrvNumber; + RFs iFs; + TBuf8<64> iHexBuf; + TBuf8<32> iBinBuf; + }; + +#endif