1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/e32test/emi/d_emitest_dev.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,65 @@
1.4 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// e32test\emi\emitest_dev.h
1.18 +//
1.19 +//
1.20 +
1.21 +#ifndef __D_EMITEST_DEV_H__
1.22 +#define __D_EMITEST_DEV_H__
1.23 +
1.24 +/*
1.25 + Logical Device (factory class) for 'EMITest'
1.26 +*/
1.27 +class DEMITestFactory : public DLogicalDevice
1.28 + {
1.29 +public:
1.30 +
1.31 + DEMITestFactory();
1.32 + ~DEMITestFactory();
1.33 + // Inherited from DLogicalDevice
1.34 + virtual TInt Install();
1.35 + virtual void GetCaps(TDes8& aDes) const;
1.36 + virtual TInt Create(DLogicalChannelBase*& aChannel);
1.37 + };
1.38 +
1.39 +
1.40 +/*
1.41 + Logical Channel class for 'EMITest'
1.42 +*/
1.43 +class DEMITestChannel : public DLogicalChannelBase
1.44 + {
1.45 +public:
1.46 +
1.47 + DEMITestChannel();
1.48 + virtual ~DEMITestChannel();
1.49 + TInt Request(TInt aFunction, TAny* a1, TAny* a2);
1.50 + // Inherited from DLogicalChannelBase
1.51 + virtual TInt DoCreate(TInt aUnit, const TDesC8* anInfo, const TVersion& aVer);
1.52 +
1.53 +private:
1.54 +
1.55 + enum TPanic
1.56 + {
1.57 + ERequestFromWrongThread=1,
1.58 + ERequestAlreadyPending
1.59 + };
1.60 + TInt DoRequest(TInt aReqNo, TRequestStatus* aStatus, TAny* a1, TAny* a2);
1.61 + void DoCancel(TUint aMask);
1.62 + static void TagMaskDFC(TAny* aPtr);
1.63 +
1.64 + DThread* iClient;
1.65 + TDfc iTagMaskDFC;
1.66 + };
1.67 +
1.68 +#endif