iaupdate/IAD/engine/controller/inc/iaupdatenodedependencyimpl.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_NODE_DEPENDENCY_IMPL_H
       
    21 #define IA_UPDATE_NODE_DEPENDENCY_IMPL_H
       
    22 
       
    23 
       
    24 #include <e32std.h>
       
    25 
       
    26 #include "iaupdateversion.h"
       
    27 
       
    28 class CIAUpdateNode;
       
    29 
       
    30 
       
    31 class CIAUpdateNodeDependency : public CBase
       
    32     {
       
    33     
       
    34 public:
       
    35 
       
    36     static CIAUpdateNodeDependency* NewLC();                                     
       
    37     static CIAUpdateNodeDependency* NewL();
       
    38     
       
    39     virtual ~CIAUpdateNodeDependency();
       
    40     
       
    41     
       
    42     /**
       
    43      * @return const TIAUpdateVersion& The version floor of the dependency. 
       
    44      * Can be the same as version roof, in that case
       
    45      * dependency is to a distinct SW revision.
       
    46      **/
       
    47     const TIAUpdateVersion& VersionFloor() const;
       
    48 
       
    49     /**
       
    50      * @param aVersion The version floor of the dependency. 
       
    51      * Can be the same as version roof, in that case
       
    52      * dependency is to a distinct SW revision.
       
    53      **/
       
    54     void SetVersionFloor( const TIAUpdateVersion& aVersion );
       
    55     
       
    56 
       
    57     /**
       
    58      * @return const TIAUpdateVersion& The version roof of the dependency. 
       
    59      * Can be the same as version floor, in that case
       
    60      * dependency is to a distinct SW revision.
       
    61      **/
       
    62     const TIAUpdateVersion& VersionRoof() const;
       
    63 
       
    64     /**
       
    65      * @param aVersion The version roof of the dependency. 
       
    66      * Can be the same as version floor, in that case
       
    67      * dependency is to a distinct SW revision.
       
    68      **/
       
    69     void SetVersionRoof( const TIAUpdateVersion& aVersion );
       
    70     
       
    71 
       
    72     /**
       
    73      * @return TBool ETrue if this dependency is embedded.
       
    74      **/
       
    75     TBool IsEmbedded() const;
       
    76 
       
    77     /**
       
    78      * @param aEmbedded ETrue if this dependency is embedded.
       
    79      **/
       
    80     void SetEmbedded( TBool aEmbedded );
       
    81     
       
    82 
       
    83     /**
       
    84      * @return MIAUpdateNode* The node present that matches this dependency best. 
       
    85      * Is NULL if dependency cannot be, or doesn't need to be, fulfilled by IAD.
       
    86      * Ownership of the node is not transferred
       
    87      **/
       
    88     CIAUpdateNode* BestMatch() const;
       
    89 
       
    90     /**
       
    91      * Sets the best match for this dependency.
       
    92      *
       
    93      * @param aBestMatch Node that matches best the dependency.
       
    94      * Ownership is not transferred.
       
    95      **/
       
    96     void SetBestMatch( CIAUpdateNode* aBestMatch );
       
    97     
       
    98 
       
    99     /**
       
   100      * @return const TUid& The uid of this node dependency
       
   101      **/
       
   102     const TUid& Uid() const;    
       
   103 
       
   104     /**
       
   105      * @param aUid The uid of this node dependency
       
   106      **/
       
   107     void SetUid( const TUid& aUid );
       
   108 
       
   109 
       
   110     /**
       
   111      * Resets all the member variables to their default values.
       
   112      */
       
   113     void Reset();    
       
   114 
       
   115     
       
   116 private:
       
   117 
       
   118     /**
       
   119      * Constructor
       
   120      */
       
   121     CIAUpdateNodeDependency();
       
   122     
       
   123     /**
       
   124      * ConstructL
       
   125      */
       
   126     void ConstructL();
       
   127     
       
   128     
       
   129 private: // data
       
   130 
       
   131     TUid                iUid;    
       
   132     TIAUpdateVersion    iVersionFloor;    
       
   133     TIAUpdateVersion    iVersionRoof;    
       
   134     TBool               iEmbedded;
       
   135     CIAUpdateNode*      iBestMatch;
       
   136     
       
   137     };
       
   138 
       
   139 #endif  //  IA_UPDATE_NODE_DEPENDENCY_IMPL_H