iaupdate/IAD/ui/inc/iaupdatedeputils.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 11 May 2010 16:20:28 +0300
branchRCL_3
changeset 17 741e5bba2bd1
parent 0 ba25891c3a9e
child 25 7333d7932ef7
permissions -rw-r--r--
Revision: 201016 Kit: 201019

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   This file contains the header file of the IAUpdateDepUtils class 
*
*/



#ifndef IAUPDATEDEPUTILS_H_
#define IAUPDATEDEPUTILS_H_

// INCLUDES
#include <e32base.h> 

// FORWARD DECLARATIONS
class MIAUpdateNode;
class MIAUpdateAnyNode;

// CLASS DECLARATION
/**
* Static class to retrieve dependencies/dependants of a node
*
*/
class IAUpdateDepUtils 
    {
public:
    /**
    * Get all dependency nodes which are not marked 
    *
    * @param aNode            Dependant node 
    * @param aAllNodes        All visible nodes in UI 
    * @param aDependencyNodes List of dependencies (to be marked). 
    */ 
    static void GetDependenciesL( const MIAUpdateNode& aNode, 
                                  const RPointerArray<MIAUpdateAnyNode>& aAllNodes, 
                                  RPointerArray<MIAUpdateNode>& aDependencyNodes );
     
    /**
    * Get all dependant nodes which are marked 
    * 
    * @param aNode            Dependency node 
    * @param aAllNodes        All visible nodes in UI 
    * @param aDependencyNodes List of dependendants (to be unmarked). 
    */
    static void GetDependantsL( const MIAUpdateNode& aNode, 
                                const RPointerArray<MIAUpdateAnyNode>& aAllNodes, 
                                RPointerArray<MIAUpdateNode>& aDependantNodes );
    
    };
#endif /* IAUPDATEDEPUTILS_H_ */

// End of File