iaupdate/IAD/engine/controller/inc/iaupdateplatformversionroofxmlparser.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_PLATFORM_VERSION_ROOF_XML_PARSER_H
       
    21 #define IA_UPDATE_PLATFORM_VERSION_ROOF_XML_PARSER_H
       
    22 
       
    23 
       
    24 #include <e32cmn.h>
       
    25 
       
    26 #include "iaupdateplatformversionxmlparser.h"
       
    27 
       
    28 /**
       
    29  * CIAUpdatePlatformVersionRoofXmlParser handles the dependency XML elements for
       
    30  * platform roof version.
       
    31  *
       
    32  * @since S60 v3.2
       
    33  */
       
    34 class CIAUpdatePlatformVersionRoofXmlParser : public CIAUpdatePlatformVersionXmlParser
       
    35     {
       
    36 
       
    37 public:
       
    38     
       
    39     /**
       
    40      * @param aDependency The platform dependency information that is
       
    41      * parsed from the XML data is inserted into this object.
       
    42      * @return CIAUpdatePlatformVersionRoofXmlParser* Created object.
       
    43      *
       
    44      * @since S60 v3.2
       
    45      */
       
    46     static CIAUpdatePlatformVersionRoofXmlParser* NewL( 
       
    47                                            CIAUpdatePlatformDependency& aDependency );
       
    48 
       
    49     /**
       
    50      * @see CIAUpdatePlatformVersionRoofXmlParser::NewL
       
    51      *
       
    52      * @since S60 v3.2
       
    53      */
       
    54     static CIAUpdatePlatformVersionRoofXmlParser* NewLC( 
       
    55                                           CIAUpdatePlatformDependency& aDependency );
       
    56 
       
    57 
       
    58     /**
       
    59      * Destructor
       
    60      *
       
    61      * @since S60 v3.2
       
    62      */
       
    63     virtual ~CIAUpdatePlatformVersionRoofXmlParser();
       
    64 
       
    65 
       
    66 public: // CIAUpdatePlatformVersionXmlParser
       
    67 
       
    68     /**
       
    69      * @see CIAUpdatePlatformVersionXmlParser::OnEndElementL
       
    70      *
       
    71      * Sets the version information to its roof value and
       
    72      * delegates the job to the parent class after that.
       
    73      *
       
    74      * @since S60 v3.2
       
    75      */    
       
    76     virtual void OnStartElementL( const Xml::RTagInfo& aElement, 
       
    77                                   const Xml::RAttributeArray& aAttributes, 
       
    78                                   TInt aErrorCode );
       
    79 
       
    80     /**
       
    81      * @see CIAUpdatePlatformVersionXmlParser::OnEndElementL
       
    82      *
       
    83      * After this element has been parsed, it sets the roof version information
       
    84      * to the dependency object.
       
    85      *
       
    86      * @since S60 v3.2
       
    87      */                                  
       
    88     virtual void OnEndElementL( const Xml::RTagInfo& aElement, 
       
    89                                 TInt aErrorCode );    
       
    90 
       
    91 
       
    92 protected:
       
    93     
       
    94     /**
       
    95      * Constructor
       
    96      *
       
    97      * @see CIAUpdatePlatformVersionRoofXmlParser::NewL
       
    98      *
       
    99      * @since S60 v3.2
       
   100      */
       
   101     CIAUpdatePlatformVersionRoofXmlParser( CIAUpdatePlatformDependency& aDependency );
       
   102     
       
   103     /**
       
   104      * 2nd. phase constructor.
       
   105      * Adds the node dependency sub parsers to the parent class sub parser list. 
       
   106      *
       
   107      * @since S60 v3.2
       
   108      */
       
   109     virtual void ConstructL();
       
   110     
       
   111 
       
   112 private:
       
   113     
       
   114     // Prevent these if not implemented
       
   115     CIAUpdatePlatformVersionRoofXmlParser( 
       
   116                       const CIAUpdatePlatformVersionRoofXmlParser& aObject );
       
   117     CIAUpdatePlatformVersionRoofXmlParser& operator =( 
       
   118                       const CIAUpdatePlatformVersionRoofXmlParser& aObject );
       
   119 
       
   120 
       
   121 private: // data
       
   122 
       
   123     };
       
   124 
       
   125 #endif // IA_UPDATE_PLATFORM_VERSION_ROOF_XML_PARSER_H