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