|
1 /* |
|
2 * Copyright (c) 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: Kernel test class for STIF Test Framework TestScripter |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef STIFKERNELTESTCLASS_H |
|
20 #define STIFKERNELTESTCLASS_H |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 #include <e32cmn.h> |
|
25 |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // MACROS |
|
30 |
|
31 // DATA TYPES |
|
32 |
|
33 typedef TBuf8<0x80> TMethodResultDes; |
|
34 typedef TBuf8<0x20> TMethodName; |
|
35 typedef TBuf8<0x100> TMethodParams; |
|
36 |
|
37 |
|
38 // FUNCTION PROTOTYPES |
|
39 |
|
40 // FORWARD DECLARATIONS |
|
41 |
|
42 // CLASS DECLARATION |
|
43 class TStifRunMethodInfo |
|
44 { |
|
45 public: |
|
46 TStifRunMethodInfo() : |
|
47 iResult( 0 ) |
|
48 { |
|
49 iMethodName.Zero(); |
|
50 iMethodParams.Zero(); |
|
51 iMethodResultDes.Zero(); |
|
52 } |
|
53 |
|
54 public: |
|
55 TMethodName iMethodName; |
|
56 TMethodParams iMethodParams; |
|
57 TMethodResultDes iMethodResultDes; |
|
58 TInt iResult; |
|
59 |
|
60 }; |
|
61 |
|
62 // CLASS DECLARATION |
|
63 |
|
64 /** |
|
65 * RStifKernelTestClass kernel test class for STIF Test Framework TestScripter. |
|
66 * ?other_description_lines |
|
67 * |
|
68 * @lib ?library |
|
69 * @since ?Series60_version |
|
70 */ |
|
71 class RStifKernelTestClass : public RBusLogicalChannel |
|
72 { |
|
73 public: |
|
74 // Synchronous operations |
|
75 enum TStifKernelTCOperation |
|
76 { |
|
77 ERunMethod = 1, |
|
78 }; |
|
79 |
|
80 // Version number |
|
81 enum TStifKernelTCVersion |
|
82 { |
|
83 EMajorVersionNumber=1, |
|
84 EMinorVersionNumber=0, |
|
85 EBuildVersionNumber=1 |
|
86 }; |
|
87 |
|
88 public: // Interface functions |
|
89 |
|
90 // Open |
|
91 inline TInt Open( const TVersion& aVer, const TDesC& aDriverName ); |
|
92 |
|
93 // Return required version |
|
94 inline TVersion VersionRequired() const; |
|
95 |
|
96 // Run specific method |
|
97 |
|
98 |
|
99 inline TInt RunMethod( const TDesC8& aMethodName, |
|
100 const TDesC8& aParams, |
|
101 TInt& aResult, |
|
102 TDes8& aResultDes ); |
|
103 |
|
104 }; |
|
105 |
|
106 // Include inline function implementations |
|
107 #include "StifKernelTestClass.inl" |
|
108 |
|
109 #endif // STIFKERNELTESTCLASS_H |
|
110 |
|
111 // End of File |