|
1 /* |
|
2 * Copyright (c) 2002 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 * Inline method definitions of class CodParser. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef COD_PARSER_INL |
|
22 #define COD_PARSER_INL |
|
23 |
|
24 // ================= MEMBER FUNCTIONS ======================= |
|
25 |
|
26 // --------------------------------------------------------- |
|
27 // TCodParser::TCodParser() |
|
28 // --------------------------------------------------------- |
|
29 // |
|
30 TCodParser::TCodParser() |
|
31 { |
|
32 // NULL pointers for clarity. |
|
33 // Otherwise, semantics ensure hat these are never used |
|
34 // uninitialized (the only public method takes the data as arguments). |
|
35 iBuf = NULL; |
|
36 iData = NULL; |
|
37 iCurP = NULL; |
|
38 iEndP = NULL; |
|
39 } |
|
40 |
|
41 // --------------------------------------------------------- |
|
42 // TCodParser::Error() |
|
43 // --------------------------------------------------------- |
|
44 // |
|
45 void TCodParser::Error( TInt aError ) |
|
46 { |
|
47 // Store error, but keep going. We can still get the installNotifyURI and |
|
48 // report. Parsing will leave with the stored error code after processing |
|
49 // is done. |
|
50 if ( !iError ) |
|
51 { |
|
52 iError = aError; |
|
53 } |
|
54 } |
|
55 |
|
56 #endif /* def COD_PARSER_INL */ |