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 the License "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 * Common header for flextimer panic codes. |
|
16 * |
|
17 */ |
|
18 /* |
|
19 * %version: 1 % |
|
20 */ |
|
21 #ifndef FLEXTIMERPANIC_H |
|
22 #define FLEXTIMERPANIC_H |
|
23 // System includes |
|
24 #include <e32base.h> |
|
25 |
|
26 |
|
27 /** |
|
28 * Server and session panic category and codes |
|
29 */ |
|
30 // Panic category |
|
31 _LIT( KRFlexTimerPanicCat, "RFlexTimer"); |
|
32 _LIT( KCFlexTimerPanicCat, "CFlexTimer"); |
|
33 _LIT( KCFlexPeriodicPanicCat, "CFlexPeriodic"); |
|
34 _LIT( KFlexTimerServerPanicCat, "FlexTimerServer" ); |
|
35 _LIT( KFlexTimerSessionPanicCat, "FlexTimerSession" ); |
|
36 _LIT( KFlexTimerContainerPanicCat, "FlexTimerContainer" ); |
|
37 |
|
38 enum TFlexTimerPanic |
|
39 { |
|
40 /** |
|
41 * Timer After-function has been provided with a negative interval value. |
|
42 * @see RFlexTimer |
|
43 */ |
|
44 EFlexTimerAfterIntervalLessThanZero = 1, |
|
45 |
|
46 /** |
|
47 * Timer AfterTicks-function has been provided with a negative interval |
|
48 * value. |
|
49 * @see RFlexTimer |
|
50 */ |
|
51 EFlexTimerAfterTicksIntervalLessThanZero = 2, |
|
52 |
|
53 /** |
|
54 * Timer At-function has been provided with an expiry time prior to |
|
55 * TTime::HomeTime. |
|
56 * @see RFlexTimer |
|
57 * @see TTime |
|
58 */ |
|
59 EFlexTimerAtIntervalLessThanZero = 3, |
|
60 |
|
61 /** |
|
62 * Timer AtUTC-function has been provided with an expiry time prior to |
|
63 * TTime::UniversalTime. |
|
64 * @see RFlexTimer |
|
65 * @see TTime |
|
66 */ |
|
67 EFlexTimerAtUTCIntervalLessThanZero = 4, |
|
68 |
|
69 /** |
|
70 * Timer has been configured with flexible window size less than zero. |
|
71 * @see RFlexTimer |
|
72 */ |
|
73 EFlexTimerWindowLessThanZero = 5, |
|
74 |
|
75 /** |
|
76 * Periodic timer Start-function has been called with delay value less |
|
77 * than zero. |
|
78 * @see CFlexPeriodic |
|
79 */ |
|
80 EFlexPeriodicDelayLessThanZero = 6, |
|
81 |
|
82 /** |
|
83 * Periodic timer Start-function has been called with interval value less |
|
84 * than one microsecond. |
|
85 * @see CFlexPeriodic |
|
86 */ |
|
87 EFlexPeriodicIntervalTooSmall = 7, |
|
88 |
|
89 /** |
|
90 * Periodic has been configured with delay window size less than zero. |
|
91 * @see CFlexPeriodic |
|
92 */ |
|
93 EFlexPeriodicDelayWindowLessThanZero = 8, |
|
94 |
|
95 /** |
|
96 * Periodic has been configured with interval window size less than zero. |
|
97 * @see CFlexPeriodic |
|
98 */ |
|
99 EFlexPeriodicIntervalWindowLessThanZero = 9, |
|
100 |
|
101 /** |
|
102 * This panic is raised by the At(), After() and Lock() member functions |
|
103 * of the CFlexTimer active object. |
|
104 * |
|
105 * It is caused by an attempt to request a timer event when the CFlexTimer |
|
106 * active object has not been added to the active scheduler. |
|
107 * @see CFlexTimer |
|
108 */ |
|
109 EFlexTimerNotAddedToActiveScheduler = 10, |
|
110 |
|
111 /** |
|
112 * New timer has been issued while previous operation is still pending |
|
113 * @see RFlexTimer |
|
114 */ |
|
115 EFlexTimerServerErrorPendingTimer = 15, |
|
116 |
|
117 /** |
|
118 * Cleanup stack memory creation failed for FlexTimer server process |
|
119 */ |
|
120 EFlexTimerServerCleanupStack = 20, |
|
121 |
|
122 /** |
|
123 * Memory allocation for active scheduler object filed in server creation |
|
124 */ |
|
125 EFlexTimerServerActiveScheduler = 21, |
|
126 |
|
127 /** |
|
128 * Starting CServer2 based FlexTimer server failed |
|
129 */ |
|
130 EFlexTimerServerStartServer = 23, |
|
131 |
|
132 /** |
|
133 * User has issued a timer request with parameters that can not be |
|
134 * fulfilled |
|
135 */ |
|
136 EFlexTimerServerIllegalTimerValue = 24, |
|
137 |
|
138 /** |
|
139 * FlexTimer session failed to read tick period from HAL. This means that |
|
140 * we are not able to map our tick time to system time. |
|
141 */ |
|
142 EFlexTimerContainerNoTickPeriod = 30, |
|
143 |
|
144 /** |
|
145 * In CFlexPeriodic::Start() has been passed a NULL function pointer in |
|
146 * TCallBack aCallBack parameter. |
|
147 */ |
|
148 EFlexPeriodicCallbackFunctionIsNull = 31, |
|
149 |
|
150 /** |
|
151 * In CFlexPeriodic::Start() has been passed a NULL function pointer in |
|
152 * TCallBack aCallBackError parameter and error has occurred. |
|
153 */ |
|
154 EFlexPeriodicErrorCallbackFunctionIsNull = 32, |
|
155 |
|
156 /** |
|
157 * RFlexTimer::Connect() has been called twice without closing the handle |
|
158 * first. |
|
159 */ |
|
160 EFlexTimerAlreadyConnected = 33 |
|
161 }; |
|
162 |
|
163 #endif /* FLEXTIMERPANIC_H */ |
|