|
1 /* |
|
2 * Copyright (c) 2010 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 #ifndef LOADGEN_LOADATTRIBUTES_H |
|
20 #define LOADGEN_LOADATTRIBUTES_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 #include <badesca.h> // CDesCArray |
|
26 |
|
27 const TInt KCPUSelection_FreeScheduling = -1; |
|
28 const TInt KCPUSelection_AllCPUs = 999; |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 |
|
32 |
|
33 // CLASS DECLARATIONS |
|
34 class TCPULoadAttributes |
|
35 { |
|
36 public: |
|
37 TUint iId; |
|
38 TUint iPriority; |
|
39 TUint iMode; |
|
40 TUint iType; |
|
41 TUint iLength; |
|
42 TUint iIdle; |
|
43 TUint iRandomVariance; |
|
44 // iCpu defines in which CPU the load thread should be executed in |
|
45 // (in SMP environments). 0 = CPU0, 1 = CPU1 etc. Negative value means |
|
46 // that CPU is undefined. When CPU is undefined, Scheduler can schedule |
|
47 // the load thread freely to any CPU as it pleases. |
|
48 TInt iCpu; |
|
49 // Defines how many CPUs the running system has. |
|
50 TUint iCpuCount; |
|
51 }; |
|
52 |
|
53 class TMemoryEatAttributes |
|
54 { |
|
55 public: |
|
56 TUint iId; |
|
57 TUint iPriority; |
|
58 TUint iSource; |
|
59 TUint iType; |
|
60 TUint iBuffer; |
|
61 TUint iIdle; |
|
62 TInt64 iAmount; |
|
63 TInt64 iRandomMin; |
|
64 TInt64 iRandomMax; |
|
65 TBuf<64> iAmountDes; |
|
66 TBuf<64> iRandomMinDes; |
|
67 TBuf<64> iRandomMaxDes; |
|
68 TUint iRandomVariance; |
|
69 TRequestStatus* iDeathStatus; |
|
70 }; |
|
71 |
|
72 class TPhoneCallAttributes |
|
73 { |
|
74 public: |
|
75 TUint iId; |
|
76 TUint iPriority; |
|
77 TBuf<128> iDestination; |
|
78 TUint iLength; |
|
79 TUint iIdle; |
|
80 TUint iRandomVariance; |
|
81 TRequestStatus* iDeathStatus; |
|
82 }; |
|
83 |
|
84 class TNetConnAttributes |
|
85 { |
|
86 public: |
|
87 TUint iId; |
|
88 TUint iPriority; |
|
89 TBuf<128> iDestination; |
|
90 TUint iIdle; |
|
91 TUint iRandomVariance; |
|
92 TRequestStatus* iDeathStatus; |
|
93 }; |
|
94 |
|
95 class TKeyPressAttributes |
|
96 { |
|
97 public: |
|
98 TUint iId; |
|
99 TUint iPriority; |
|
100 TUint iHeartBeat; |
|
101 TUint iRandomVariance; |
|
102 TRequestStatus* iDeathStatus; |
|
103 }; |
|
104 |
|
105 class TPointerEventAttributes |
|
106 { |
|
107 public: |
|
108 TUint iId; |
|
109 TUint iPriority; |
|
110 TUint iHeartBeat; |
|
111 TUint iRandomVariance; |
|
112 TRequestStatus* iDeathStatus; |
|
113 }; |
|
114 |
|
115 class TMessageAttributes |
|
116 { |
|
117 public: |
|
118 TUint iId; |
|
119 TInt iMessageType; |
|
120 TBuf<128> iDestination; |
|
121 TUint iPriority; |
|
122 TUint iAmount; |
|
123 TInt iLength; |
|
124 TUint iIdle; |
|
125 TUint iRandomVariance; |
|
126 TRequestStatus* iDeathStatus; |
|
127 }; |
|
128 |
|
129 class TApplicationsAttributes |
|
130 { |
|
131 public: |
|
132 TUint iId; |
|
133 TUint iPriority; |
|
134 TUint iLaunchingInterval; |
|
135 TUint iKeyPressType; |
|
136 TUint iMaxOpen; |
|
137 TUint iHeartBeat; |
|
138 TUint iRandomVariance; |
|
139 CDesCArray* iAppsArray; |
|
140 TRequestStatus* iDeathStatus; |
|
141 }; |
|
142 |
|
143 |
|
144 class TPhotoCaptureAttributes |
|
145 { |
|
146 public: |
|
147 TUint iId; |
|
148 TInt iPriority; |
|
149 TInt iCameraCount; |
|
150 TInt iCamera; |
|
151 TUint iIdle; |
|
152 TUint iRandomVariance; |
|
153 TRequestStatus* iDeathStatus; |
|
154 }; |
|
155 |
|
156 class TBluetoothAttributes |
|
157 { |
|
158 public: |
|
159 TUint iId; |
|
160 TInt iPriority; |
|
161 TUint iIdle; |
|
162 TUint iRandomVariance; |
|
163 TRequestStatus* iDeathStatus; |
|
164 TBool iBluetoothSupported; |
|
165 }; |
|
166 |
|
167 #endif |