|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #if (!defined __T_MMCSDPSUBASE_DRIVER_DATA_H__) |
|
20 #define __T_MMCSDPSUBASE_DRIVER_DATA_H__ |
|
21 |
|
22 // User Includes |
|
23 #include "T_MmcSDDriverData.h" |
|
24 |
|
25 /** |
|
26 * Test MMCSD PowerSupply class |
|
27 * |
|
28 */ |
|
29 class CT_MMCSDPsuBaseDriverData : public CT_MmcSDDriverData |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * Public destructor |
|
34 */ |
|
35 ~CT_MMCSDPsuBaseDriverData(); |
|
36 |
|
37 /** |
|
38 * Two phase constructor |
|
39 * |
|
40 * @leave system wide error |
|
41 */ |
|
42 static CT_MMCSDPsuBaseDriverData* NewL(); |
|
43 |
|
44 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
45 |
|
46 protected: |
|
47 /** |
|
48 * Protected constructor. First phase construction |
|
49 */ |
|
50 CT_MMCSDPsuBaseDriverData(); |
|
51 void ConstructL(); |
|
52 |
|
53 void DoCmdIsLocked(const TDesC& aSection); |
|
54 void DoCmdIsOff(const TDesC& aSection); |
|
55 void DoCmdMaxCurrentInMicroAmps(const TDesC& aSection); |
|
56 void DoCmdResetInactivityTimer(); |
|
57 void DoCmdVoltageSupported(const TDesC& aSection); |
|
58 void DoCmdInactivityCount(const TDesC& aSection); |
|
59 void DoCmdNotLockedCount(const TDesC& aSection); |
|
60 void DoCmdInactivityTimeout(const TDesC& aSection); |
|
61 void DoCmdNotLockedTimeout(const TDesC& aSection); |
|
62 void DoCmdMemVoltageSupported(const TDesC& aSection); |
|
63 void DoCmdMemMaxCurrentInMicroAmps(const TDesC& aSection); |
|
64 void DoCmdVoltCheckInterval(const TDesC& aSection); |
|
65 |
|
66 private: |
|
67 TInt iAsyncErrorIndex; |
|
68 }; |
|
69 |
|
70 #endif /* __T_MMCSDPSUBASE_DRIVER_DATA_H__ */ |