iaupdate/IAD/engine/controller/src/iaupdatenodedependencyimpl.cpp
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 #include "iaupdatenodedependencyimpl.h"
       
    21 #include "iaupdatenodeimpl.h"
       
    22 
       
    23 
       
    24 CIAUpdateNodeDependency* CIAUpdateNodeDependency::NewLC()
       
    25     {
       
    26     CIAUpdateNodeDependency *self = 
       
    27         new( ELeave ) CIAUpdateNodeDependency();
       
    28     CleanupStack::PushL( self );
       
    29     self->ConstructL();
       
    30     return self;
       
    31     }
       
    32 
       
    33     
       
    34 CIAUpdateNodeDependency* CIAUpdateNodeDependency::NewL()
       
    35     {
       
    36     CIAUpdateNodeDependency *self = 
       
    37         CIAUpdateNodeDependency::NewLC();
       
    38     CleanupStack::Pop( self );
       
    39     return self;
       
    40     }
       
    41     
       
    42     
       
    43 CIAUpdateNodeDependency::CIAUpdateNodeDependency() 
       
    44 : CBase()
       
    45     {
       
    46     Reset();
       
    47     }    
       
    48     
       
    49 
       
    50 void CIAUpdateNodeDependency::ConstructL()
       
    51     {
       
    52     }
       
    53 
       
    54 
       
    55 CIAUpdateNodeDependency::~CIAUpdateNodeDependency()
       
    56     {
       
    57     }    
       
    58      
       
    59     
       
    60 const TIAUpdateVersion& CIAUpdateNodeDependency::VersionFloor() const
       
    61     {
       
    62     return iVersionFloor;
       
    63     }
       
    64 
       
    65 
       
    66 void CIAUpdateNodeDependency::SetVersionFloor( 
       
    67     const TIAUpdateVersion& aVersion )
       
    68     {
       
    69     iVersionFloor = aVersion;
       
    70     }
       
    71 
       
    72     
       
    73 const TIAUpdateVersion& CIAUpdateNodeDependency::VersionRoof() const
       
    74     {
       
    75     return iVersionRoof;
       
    76     }
       
    77 
       
    78 
       
    79 void CIAUpdateNodeDependency::SetVersionRoof( 
       
    80     const TIAUpdateVersion& aVersion )
       
    81     {
       
    82     iVersionRoof = aVersion;
       
    83     }
       
    84 
       
    85 
       
    86 TBool CIAUpdateNodeDependency::IsEmbedded() const
       
    87     {
       
    88     return iEmbedded;
       
    89     }
       
    90 
       
    91 
       
    92 void CIAUpdateNodeDependency::SetEmbedded( 
       
    93     TBool aEmbedded )
       
    94     {
       
    95     iEmbedded = aEmbedded;
       
    96     }
       
    97 
       
    98     
       
    99 CIAUpdateNode* CIAUpdateNodeDependency::BestMatch() const
       
   100     {
       
   101     return iBestMatch;
       
   102     }
       
   103 
       
   104 
       
   105 void CIAUpdateNodeDependency::SetBestMatch( 
       
   106     CIAUpdateNode* aBestMatch )
       
   107     {
       
   108     iBestMatch = aBestMatch;
       
   109     }
       
   110 
       
   111 
       
   112 const TUid& CIAUpdateNodeDependency::Uid() const
       
   113     {
       
   114     return iUid;
       
   115     }
       
   116 
       
   117 
       
   118 void CIAUpdateNodeDependency::SetUid( 
       
   119     const TUid& aUid )
       
   120     {
       
   121     iUid = aUid;
       
   122     }
       
   123 
       
   124 
       
   125 void CIAUpdateNodeDependency::Reset()
       
   126     {
       
   127     iUid = TUid::Null();
       
   128     iVersionFloor.SetToFloor();
       
   129     iVersionRoof.SetToRoof();    
       
   130     iEmbedded = EFalse;
       
   131     iBestMatch = NULL;
       
   132     }