|
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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef IA_UPDATE_PLATFORM_DESCRIPTION_XML_PARSER_H |
|
21 #define IA_UPDATE_PLATFORM_DESCRIPTION_XML_PARSER_H |
|
22 |
|
23 |
|
24 #include <e32cmn.h> |
|
25 |
|
26 #include "iaupdatexmlsubparser.h" |
|
27 |
|
28 class CIAUpdatePlatformDependency; |
|
29 |
|
30 |
|
31 /** |
|
32 * CIAUpdatePlatformDescriptionXmlParser handles the dependency XML elements for |
|
33 * platform description. |
|
34 * |
|
35 * @since S60 v3.2 |
|
36 */ |
|
37 class CIAUpdatePlatformDescriptionXmlParser : public CIAUpdateXmlSubParser |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 /** |
|
43 * @param aDependency The platform dependency information that is |
|
44 * parsed from the XML data is inserted into this object. |
|
45 * @return CIAUpdatePlatformDescriptionXmlParser* Created object. |
|
46 * |
|
47 * @since S60 v3.2 |
|
48 */ |
|
49 static CIAUpdatePlatformDescriptionXmlParser* NewL( |
|
50 CIAUpdatePlatformDependency& aDependency ); |
|
51 |
|
52 /** |
|
53 * @see CIAUpdatePlatformDescriptionXmlParser::NewL |
|
54 * |
|
55 * @since S60 v3.2 |
|
56 */ |
|
57 static CIAUpdatePlatformDescriptionXmlParser* NewLC( |
|
58 CIAUpdatePlatformDependency& aDependency ); |
|
59 |
|
60 |
|
61 /** |
|
62 * Destructor |
|
63 * |
|
64 * @since S60 v3.2 |
|
65 */ |
|
66 virtual ~CIAUpdatePlatformDescriptionXmlParser(); |
|
67 |
|
68 |
|
69 public: // CIAUpdateXmlSubParser |
|
70 |
|
71 /** |
|
72 * @see CIAUpdateXmlSubParser::OnContentL |
|
73 * |
|
74 * Sets the platform description information for the dependency. |
|
75 * |
|
76 * @since S60 v3.2 |
|
77 */ |
|
78 virtual void OnContentL( const TDesC8& aBytes, |
|
79 TInt aErrorCode ); |
|
80 |
|
81 |
|
82 protected: |
|
83 |
|
84 /** |
|
85 * Constructor |
|
86 * |
|
87 * @see CIAUpdatePlatformDescriptionXmlParser::NewL |
|
88 * |
|
89 * @since S60 v3.2 |
|
90 */ |
|
91 CIAUpdatePlatformDescriptionXmlParser( CIAUpdatePlatformDependency& aDependency ); |
|
92 |
|
93 /** |
|
94 * 2nd. phase constructor. |
|
95 * Adds the node dependency sub parsers to the parent class sub parser list. |
|
96 * |
|
97 * @since S60 v3.2 |
|
98 */ |
|
99 virtual void ConstructL(); |
|
100 |
|
101 |
|
102 /** |
|
103 * @return CIAUpdatePlatformDependency& The platform dependency information that is |
|
104 * parsed from the XML data is inserted into this object. |
|
105 * |
|
106 * @since S60 v3.2 |
|
107 */ |
|
108 CIAUpdatePlatformDependency& Dependency(); |
|
109 |
|
110 |
|
111 private: |
|
112 |
|
113 // Prevent these if not implemented |
|
114 CIAUpdatePlatformDescriptionXmlParser( |
|
115 const CIAUpdatePlatformDescriptionXmlParser& aObject ); |
|
116 CIAUpdatePlatformDescriptionXmlParser& operator =( |
|
117 const CIAUpdatePlatformDescriptionXmlParser& aObject ); |
|
118 |
|
119 |
|
120 private: // data |
|
121 |
|
122 CIAUpdatePlatformDependency& iDependency; |
|
123 |
|
124 }; |
|
125 |
|
126 #endif // IA_UPDATE_PLATFORM_DESCRIPTION_XML_PARSER_H |