0
|
1 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// e32test\emi\emitest_dev.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef __D_EMITEST_DEV_H__
|
|
19 |
#define __D_EMITEST_DEV_H__
|
|
20 |
|
|
21 |
/*
|
|
22 |
Logical Device (factory class) for 'EMITest'
|
|
23 |
*/
|
|
24 |
class DEMITestFactory : public DLogicalDevice
|
|
25 |
{
|
|
26 |
public:
|
|
27 |
|
|
28 |
DEMITestFactory();
|
|
29 |
~DEMITestFactory();
|
|
30 |
// Inherited from DLogicalDevice
|
|
31 |
virtual TInt Install();
|
|
32 |
virtual void GetCaps(TDes8& aDes) const;
|
|
33 |
virtual TInt Create(DLogicalChannelBase*& aChannel);
|
|
34 |
};
|
|
35 |
|
|
36 |
|
|
37 |
/*
|
|
38 |
Logical Channel class for 'EMITest'
|
|
39 |
*/
|
|
40 |
class DEMITestChannel : public DLogicalChannelBase
|
|
41 |
{
|
|
42 |
public:
|
|
43 |
|
|
44 |
DEMITestChannel();
|
|
45 |
virtual ~DEMITestChannel();
|
|
46 |
TInt Request(TInt aFunction, TAny* a1, TAny* a2);
|
|
47 |
// Inherited from DLogicalChannelBase
|
|
48 |
virtual TInt DoCreate(TInt aUnit, const TDesC8* anInfo, const TVersion& aVer);
|
|
49 |
|
|
50 |
private:
|
|
51 |
|
|
52 |
enum TPanic
|
|
53 |
{
|
|
54 |
ERequestFromWrongThread=1,
|
|
55 |
ERequestAlreadyPending
|
|
56 |
};
|
|
57 |
TInt DoRequest(TInt aReqNo, TRequestStatus* aStatus, TAny* a1, TAny* a2);
|
|
58 |
void DoCancel(TUint aMask);
|
|
59 |
static void TagMaskDFC(TAny* aPtr);
|
|
60 |
|
|
61 |
DThread* iClient;
|
|
62 |
TDfc iTagMaskDFC;
|
|
63 |
};
|
|
64 |
|
|
65 |
#endif
|