iaupdate/IAD/engine/controller/src/iaupdatedependencyxmlparser.cpp
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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 "iaupdatedependencyxmlparser.h"
       
    21 #include "iaupdatedependencyxmlsubparser.h"
       
    22 
       
    23 
       
    24 CIAUpdateDependencyXmlParser* CIAUpdateDependencyXmlParser::NewL( 
       
    25                   RPointerArray< CIAUpdateNodeDependency>& aNodeDependencies,
       
    26                   CIAUpdatePlatformDependency& aPlatformDependency )
       
    27     {
       
    28     CIAUpdateDependencyXmlParser* self =
       
    29         CIAUpdateDependencyXmlParser::NewLC( aNodeDependencies, 
       
    30                                              aPlatformDependency );
       
    31     CleanupStack::Pop( self );
       
    32     return self;
       
    33     }
       
    34 
       
    35 
       
    36 CIAUpdateDependencyXmlParser* CIAUpdateDependencyXmlParser::NewLC( 
       
    37                   RPointerArray< CIAUpdateNodeDependency>& aNodeDependencies,
       
    38                   CIAUpdatePlatformDependency& aPlatformDependency )
       
    39     {
       
    40     // Create sub parser that will handle the given elements.
       
    41     CIAUpdateDependencyXmlSubParser* subParser =
       
    42         CIAUpdateDependencyXmlSubParser::NewLC( aNodeDependencies, aPlatformDependency );
       
    43 
       
    44     // Create the actual XML parser that uses subParser.
       
    45     // Notice, that the ownership of the subParser is
       
    46     // transferred here to the parser.
       
    47     CIAUpdateDependencyXmlParser* self =
       
    48         new( ELeave ) CIAUpdateDependencyXmlParser( subParser );
       
    49 
       
    50     CleanupStack::Pop( subParser );
       
    51 
       
    52     CleanupStack::PushL( self );
       
    53     self->ConstructL();
       
    54     return self;    
       
    55     }
       
    56 
       
    57 
       
    58 CIAUpdateDependencyXmlParser::CIAUpdateDependencyXmlParser( 
       
    59                                    CIAUpdateDependencyXmlSubParser* aSubParser )
       
    60 : CIAUpdateXmlParser( aSubParser )
       
    61     {
       
    62     
       
    63     }
       
    64     
       
    65     
       
    66 void CIAUpdateDependencyXmlParser::ConstructL()
       
    67     {
       
    68     CIAUpdateXmlParser::ConstructL();
       
    69     }
       
    70 
       
    71 
       
    72 CIAUpdateDependencyXmlParser::~CIAUpdateDependencyXmlParser()
       
    73     {
       
    74     }