|
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 #include <xml/documentparameters.h> |
|
21 #include <xml/taginfo.h> |
|
22 #include <xml/attribute.h> |
|
23 |
|
24 #include "iaupdatenodedependencyxmlparser.h" |
|
25 #include "iaupdateinterdepxmlparser.h" |
|
26 #include "iaupdateprotocolconsts.h" |
|
27 |
|
28 |
|
29 CIAUpdateNodeDependencyXmlParser* CIAUpdateNodeDependencyXmlParser::NewL( |
|
30 RPointerArray< CIAUpdateNodeDependency >& aDependencies ) |
|
31 { |
|
32 CIAUpdateNodeDependencyXmlParser* self = |
|
33 CIAUpdateNodeDependencyXmlParser::NewLC( aDependencies ); |
|
34 CleanupStack::Pop( self ); |
|
35 return self; |
|
36 } |
|
37 |
|
38 |
|
39 CIAUpdateNodeDependencyXmlParser* CIAUpdateNodeDependencyXmlParser::NewLC( |
|
40 RPointerArray< CIAUpdateNodeDependency >& aDependencies ) |
|
41 { |
|
42 CIAUpdateNodeDependencyXmlParser* self = |
|
43 new( ELeave ) CIAUpdateNodeDependencyXmlParser( aDependencies ); |
|
44 CleanupStack::PushL( self ); |
|
45 self->ConstructL(); |
|
46 return self; |
|
47 } |
|
48 |
|
49 |
|
50 CIAUpdateNodeDependencyXmlParser::CIAUpdateNodeDependencyXmlParser( |
|
51 RPointerArray< CIAUpdateNodeDependency >& aDependencies ) |
|
52 : CIAUpdateXmlSubParser(), |
|
53 iDependencies( aDependencies ) |
|
54 { |
|
55 |
|
56 } |
|
57 |
|
58 |
|
59 void CIAUpdateNodeDependencyXmlParser::ConstructL() |
|
60 { |
|
61 CIAUpdateXmlSubParser::ConstructL( IAUpdateProtocolConsts::KNodeDependencies() ); |
|
62 |
|
63 // Add sub parsers to the list |
|
64 |
|
65 CIAUpdateInterDepXmlParser* parser( |
|
66 CIAUpdateInterDepXmlParser::NewLC( Dependencies() ) ); |
|
67 SubParsers().AppendL( parser ); |
|
68 CleanupStack::Pop( parser ); |
|
69 } |
|
70 |
|
71 |
|
72 CIAUpdateNodeDependencyXmlParser::~CIAUpdateNodeDependencyXmlParser() |
|
73 { |
|
74 } |
|
75 |
|
76 |
|
77 RPointerArray< CIAUpdateNodeDependency >& CIAUpdateNodeDependencyXmlParser::Dependencies() |
|
78 { |
|
79 return iDependencies; |
|
80 } |