iaupdate/IAD/engine/controller/inc/iaupdateservicepacknode.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:   This file contains the header file of CIAUpdateServicePackNode class 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IA_UPDATE_SERVICE_PACK_NODE_H
       
    20 #define IA_UPDATE_SERVICE_PACK_NODE_H
       
    21 
       
    22 
       
    23 #include "iaupdatenodeimpl.h"
       
    24 
       
    25 
       
    26 /**
       
    27  * CIAUpdateServicePackNode
       
    28  * This class provides service pack specific functionality
       
    29  * for the node.
       
    30  */
       
    31 class CIAUpdateServicePackNode : public CIAUpdateNode
       
    32     {
       
    33 
       
    34 public:
       
    35 
       
    36     /**
       
    37      * @see IAUpdateNodeFactory::CreateNodeLC
       
    38      **/
       
    39     static CIAUpdateServicePackNode* NewLC( 
       
    40         MNcdNode* aNode,
       
    41         CIAUpdateController& aController );
       
    42     
       
    43     /**
       
    44      * @see CIAUpdateServicePackNode::NewLC
       
    45      **/
       
    46     static CIAUpdateServicePackNode* NewL( 
       
    47         MNcdNode* aNode,
       
    48         CIAUpdateController& aController );
       
    49     
       
    50     
       
    51     /**
       
    52      * Destructor
       
    53      **/
       
    54     virtual ~CIAUpdateServicePackNode();
       
    55 
       
    56 
       
    57 public: // CIAUpdateNode
       
    58 
       
    59     /**
       
    60      * @see CIAUpdateNode::SetInstallStatusToPurchaseHistoryL
       
    61      */
       
    62     virtual void SetInstallStatusToPurchaseHistoryL( 
       
    63         TInt aErrorCode, TBool aForceVisibleInHistory );
       
    64 
       
    65 
       
    66     /**
       
    67      * This implementation checks if the given error code
       
    68      * has correct base value included before giving the
       
    69      * error value to parent class function.
       
    70      *
       
    71      * @see CIAUpdateNode::SetIdleErrorToPurchaseHistoryL
       
    72      */
       
    73     virtual void SetIdleErrorToPurchaseHistoryL( 
       
    74         TInt aError, TBool aForceVisibleInHistory );
       
    75     
       
    76 
       
    77     /**
       
    78      * @see CIAUpdateNode::Type
       
    79      * @return TPackageType This returns always 
       
    80      * MIAUpdateNode::EPackageTypeServicePack
       
    81      * because this class is service pack.
       
    82      **/
       
    83     virtual TPackageType Type() const;
       
    84 
       
    85 
       
    86 protected: // CIAUpdateNode
       
    87 
       
    88     /**
       
    89      * @note This function should not be called before 
       
    90      * dependency chains are created.
       
    91      *
       
    92      * @see CIAUpdateNode::IsPurchasedL
       
    93      * @return ETrue if all the direct dependencies are purchased.
       
    94      **/
       
    95     virtual TBool IsPurchasedL() const;
       
    96     
       
    97 
       
    98     /**
       
    99      * @note This function should not be called before 
       
   100      * dependency chains are created.
       
   101      *
       
   102      * @see CIAUpdateNode::IsDownloadedL
       
   103      * @return ETrue if all the direct dependencies are downloaded.
       
   104      **/
       
   105     virtual TBool IsDownloadedL() const;
       
   106     
       
   107 
       
   108     /**
       
   109      * @note This function should not be called before 
       
   110      * dependency chains are created.
       
   111      *
       
   112      * @see CIAUpdateNode::IsInstalledL
       
   113      * @return ETrue if all the direct dependencies are installed.
       
   114      **/
       
   115     virtual TBool IsInstalledL() const;
       
   116 
       
   117 
       
   118 protected:
       
   119 
       
   120     /**
       
   121      * @see CIAUpdateNode::CIAUpdateNode
       
   122      */
       
   123     CIAUpdateServicePackNode( CIAUpdateController& aController );
       
   124 
       
   125     /**
       
   126      * @see CIAUpdateNode::ConstructL
       
   127      */    
       
   128     virtual void ConstructL( MNcdNode* aNode );
       
   129 
       
   130 
       
   131 private:
       
   132 
       
   133     // Prevent these if not implemented
       
   134     CIAUpdateServicePackNode( const CIAUpdateServicePackNode& aObject );
       
   135     CIAUpdateServicePackNode& operator =( const CIAUpdateServicePackNode& aObject );
       
   136 
       
   137 
       
   138 private: // data
       
   139 
       
   140     };
       
   141     
       
   142     
       
   143 #endif  // IA_UPDATE_SERVICE_PACK_NODE_H