|
1 /* |
|
2 * Copyright (c) 2003 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: SVG Implementation header file |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _INC_TSVGANIMTIMINGPARSER_ |
|
20 #define _INC_TSVGANIMTIMINGPARSER_ |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "SVGEvent.h" |
|
25 |
|
26 |
|
27 /** |
|
28 * Class description goes here. |
|
29 * |
|
30 * @lib SVGEngine.lib |
|
31 * @since 1.0 |
|
32 */ |
|
33 class CSvgAnimTimingParser : public CBase |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Need method description |
|
39 * |
|
40 * @since 1.0 |
|
41 * @param |
|
42 * @return |
|
43 */ |
|
44 static CSvgAnimTimingParser* NewL( const TDesC& aTimingDes, CSvgElementImpl* aElement ); |
|
45 |
|
46 /** |
|
47 * Need method description |
|
48 * |
|
49 * @since 1.0 |
|
50 * @param |
|
51 * @return |
|
52 */ |
|
53 static CSvgAnimTimingParser* NewLC( const TDesC& aTimingDes, CSvgElementImpl* aElement ); |
|
54 |
|
55 /** |
|
56 * Need method description |
|
57 * |
|
58 * @since 1.0 |
|
59 * @param |
|
60 * @return |
|
61 */ |
|
62 ~CSvgAnimTimingParser(); |
|
63 private: |
|
64 |
|
65 /** |
|
66 * Need method description |
|
67 * |
|
68 * @since 1.0 |
|
69 * @param |
|
70 * @return |
|
71 */ |
|
72 CSvgAnimTimingParser(); |
|
73 |
|
74 /** |
|
75 * Need method description |
|
76 * |
|
77 * @since 1.0 |
|
78 * @param |
|
79 * @return |
|
80 */ |
|
81 void ConstructL( const TDesC& aTimingDes, CSvgElementImpl* aElement ); |
|
82 |
|
83 |
|
84 public: |
|
85 |
|
86 /** |
|
87 * Need method description |
|
88 * |
|
89 * @since 1.0 |
|
90 * @param |
|
91 * @return |
|
92 */ |
|
93 void Parse( TDes& aIdValue, |
|
94 TSvgEvent& aEvent, |
|
95 TInt32& aClockValue, |
|
96 TReal32& aRepeatValue, |
|
97 TBool aBeginAttribute); |
|
98 |
|
99 /** |
|
100 * Need method description |
|
101 * |
|
102 * @since 1.0 |
|
103 * @param |
|
104 * @return |
|
105 */ |
|
106 void ParseEvent( TInt32 aEventNumber, |
|
107 TDes& aIdValue, |
|
108 TSvgEvent& aEvent, |
|
109 TInt32& aClockValue ); |
|
110 |
|
111 |
|
112 |
|
113 /** |
|
114 * Need method description |
|
115 * |
|
116 * @since 1.0 |
|
117 * @param |
|
118 * @return |
|
119 */ |
|
120 inline TUint WallClockValue() |
|
121 { |
|
122 return iWallClockValue; |
|
123 } |
|
124 |
|
125 /** |
|
126 * Need method description |
|
127 * |
|
128 * @since 1.0 |
|
129 * @param |
|
130 * @return |
|
131 */ |
|
132 inline TUint16 AccekeyValue() |
|
133 { |
|
134 return iAccessKeyValue; |
|
135 } |
|
136 |
|
137 /** |
|
138 * Need method description |
|
139 * |
|
140 * @since 1.0 |
|
141 * @param |
|
142 * @return |
|
143 */ |
|
144 inline TUint RepeatValue() |
|
145 { |
|
146 return iRepeatCount; |
|
147 } |
|
148 |
|
149 |
|
150 /** |
|
151 * Need method description |
|
152 * |
|
153 * @since 1.0 |
|
154 * @param |
|
155 * @return |
|
156 */ |
|
157 void ParseClockValue( TLex& aLex, TInt32& aClockValue ); |
|
158 |
|
159 |
|
160 private: |
|
161 |
|
162 /** |
|
163 * Need method description |
|
164 * |
|
165 * @since 1.0 |
|
166 * @param |
|
167 * @return |
|
168 */ |
|
169 void ParseWallclockValue( TLex& aLex ); // Not yet implemented |
|
170 |
|
171 /** |
|
172 * Need method description |
|
173 * |
|
174 * @since 1.0 |
|
175 * @param |
|
176 * @return |
|
177 */ |
|
178 TSvgEvent DesToEventId( const TDesC& aEventDes ); |
|
179 |
|
180 /** |
|
181 * Need method description |
|
182 * |
|
183 * @since 1.0 |
|
184 * @param |
|
185 * @return |
|
186 */ |
|
187 void SkipUntilNumEnd( TLex& aLex ); |
|
188 |
|
189 /** |
|
190 * Need method description |
|
191 * |
|
192 * @since 1.0 |
|
193 * @param |
|
194 * @return |
|
195 */ |
|
196 void SkipAlphaNumeric( TLex& aLex ); |
|
197 |
|
198 private: |
|
199 TUint iWallClockValue; |
|
200 TUint16 iAccessKeyValue; // A Unicode character |
|
201 TUint iRepeatCount; |
|
202 |
|
203 TPtr iTimingDes; |
|
204 HBufC* iBuf; |
|
205 CSvgElementImpl* iElement; |
|
206 }; |
|
207 |
|
208 |
|
209 #endif // _INC_TSvgAnimTimingParser_ |