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