iaupdate/IAD/engine/controller/inc/iaupdateplatformversionxmlparser.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_XML_PARSER_H
       
    21 #define IA_UPDATE_PLATFORM_VERSION_XML_PARSER_H
       
    22 
       
    23 
       
    24 #include <e32cmn.h>
       
    25 
       
    26 #include "iaupdatexmlsubparser.h"
       
    27 #include "iaupdateversion.h"
       
    28 
       
    29 class CIAUpdatePlatformDependency;
       
    30 
       
    31 
       
    32 /**
       
    33  * CIAUpdatePlatformVersionXmlParser handles the dependency XML elements for
       
    34  * platform version.
       
    35  *
       
    36  * @since S60 v3.2
       
    37  */
       
    38 class CIAUpdatePlatformVersionXmlParser : public CIAUpdateXmlSubParser
       
    39     {
       
    40 
       
    41 public:
       
    42     
       
    43     /**
       
    44      * Destructor
       
    45      *
       
    46      * @since S60 v3.2
       
    47      */
       
    48     virtual ~CIAUpdatePlatformVersionXmlParser();
       
    49     
       
    50 
       
    51 protected:
       
    52     
       
    53     /**
       
    54      * Constructor
       
    55      *
       
    56      * @see CIAUpdatePlatformVersionXmlParser::NewL
       
    57      *
       
    58      * @since S60 v3.2
       
    59      */
       
    60     CIAUpdatePlatformVersionXmlParser( CIAUpdatePlatformDependency& aDependency );
       
    61     
       
    62     /**
       
    63      * 2nd. phase constructor.
       
    64      * Adds the node dependency sub parsers to the parent class sub parser list. 
       
    65      *
       
    66      * @since S60 v3.2
       
    67      */
       
    68     virtual void ConstructL( const TDesC8& aElementLocalName );
       
    69 
       
    70 
       
    71     /**
       
    72      * @return CIAUpdatePlatformDependency& The platform dependency information that is
       
    73      * parsed from the XML data is inserted into this object.
       
    74      *
       
    75      * @since S60 v3.2
       
    76      */
       
    77     CIAUpdatePlatformDependency& Dependency();
       
    78 
       
    79 
       
    80     /**
       
    81      * @return TIAUpdateVersion& Reference to the version variable.
       
    82      *
       
    83      * @since S60 v3.2
       
    84      */    
       
    85     TIAUpdateVersion& Version();
       
    86     
       
    87     
       
    88 private:
       
    89     
       
    90     // Prevent these if not implemented
       
    91     CIAUpdatePlatformVersionXmlParser( 
       
    92                     const CIAUpdatePlatformVersionXmlParser& aObject );
       
    93     CIAUpdatePlatformVersionXmlParser& operator =( 
       
    94                     const CIAUpdatePlatformVersionXmlParser& aObject );
       
    95 
       
    96 
       
    97 private: // data
       
    98 
       
    99     CIAUpdatePlatformDependency& iDependency;
       
   100 
       
   101     // This version will contain the parsed version information after version element
       
   102     // is completed.
       
   103     TIAUpdateVersion iVersion;
       
   104 
       
   105     };
       
   106 
       
   107 #endif // IA_UPDATE_PLATFORM_VERSION_XML_PARSER_H