|
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_DEPENDENCY_XML_SUB_PARSER_H |
|
21 #define IA_UPDATE_DEPENDENCY_XML_SUB_PARSER_H |
|
22 |
|
23 |
|
24 #include "iaupdatexmlsubparser.h" |
|
25 |
|
26 class CIAUpdateNodeDependency; |
|
27 class CIAUpdatePlatformDependency; |
|
28 |
|
29 |
|
30 /** |
|
31 * CIAUpdateDependencyXmlSubParser handles the dependency XML elements for both |
|
32 * platform dependency and software dependency. All the work is mainly delegated |
|
33 * to the corresponding sub parsers that are created in this class object. |
|
34 * |
|
35 * @since S60 v3.2 |
|
36 */ |
|
37 class CIAUpdateDependencyXmlSubParser : public CIAUpdateXmlSubParser |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 /** |
|
43 * @param aNodeDependencies Node dependency array that will contain nodes that are |
|
44 * initialized with the parsed dependency data. |
|
45 * @param aPlatformDependency Platform dependency object that will be initialized |
|
46 * with the parsed dependency data. |
|
47 * @return CIAUpdateDependencyXmlSubParser* Created object. |
|
48 * |
|
49 * @since S60 v3.2 |
|
50 */ |
|
51 static CIAUpdateDependencyXmlSubParser* NewL( |
|
52 RPointerArray< CIAUpdateNodeDependency>& aNodeDependencies, |
|
53 CIAUpdatePlatformDependency& aPlatformDependency ); |
|
54 |
|
55 /** |
|
56 * @see CIAUpdateDependencyXmlSubParser::NewL |
|
57 * |
|
58 * @since S60 v3.2 |
|
59 */ |
|
60 static CIAUpdateDependencyXmlSubParser* NewLC( |
|
61 RPointerArray< CIAUpdateNodeDependency>& aNodeDependencies, |
|
62 CIAUpdatePlatformDependency& aPlatformDependency ); |
|
63 |
|
64 |
|
65 /** |
|
66 * Destructor |
|
67 * |
|
68 * @since S60 v3.2 |
|
69 */ |
|
70 virtual ~CIAUpdateDependencyXmlSubParser(); |
|
71 |
|
72 |
|
73 protected: |
|
74 |
|
75 /** |
|
76 * Constructor |
|
77 * |
|
78 * @since S60 v3.2 |
|
79 */ |
|
80 CIAUpdateDependencyXmlSubParser(); |
|
81 |
|
82 /** |
|
83 * 2nd. phase constructor. |
|
84 * Adds the node dependency sub parsers to the parent class sub parser list. |
|
85 * |
|
86 * @see CIAUpdateDependencyXmlSubParser::NewL |
|
87 * |
|
88 * @since S60 v3.2 |
|
89 */ |
|
90 virtual void ConstructL( RPointerArray< CIAUpdateNodeDependency>& aNodeDependencies, |
|
91 CIAUpdatePlatformDependency& aPlatformDependency ); |
|
92 |
|
93 |
|
94 private: |
|
95 |
|
96 // Prevent these if not implemented |
|
97 CIAUpdateDependencyXmlSubParser( const CIAUpdateDependencyXmlSubParser& aObject ); |
|
98 CIAUpdateDependencyXmlSubParser& operator =( const CIAUpdateDependencyXmlSubParser& aObject ); |
|
99 |
|
100 private: // data |
|
101 |
|
102 }; |
|
103 |
|
104 #endif // IA_UPDATE_DEPENDENCY_XML_SUB_PARSER_H |