|
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: This file contains the header file of the IAUpdateDepUtils class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef IAUPDATEDEPUTILS_H_ |
|
21 #define IAUPDATEDEPUTILS_H_ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MIAUpdateNode; |
|
28 class MIAUpdateAnyNode; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * Static class to retrieve dependencies/dependants of a node |
|
33 * |
|
34 */ |
|
35 class IAUpdateDepUtils |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Get all dependency nodes which are not marked |
|
40 * |
|
41 * @param aNode Dependant node |
|
42 * @param aAllNodes All visible nodes in UI |
|
43 * @param aDependencyNodes List of dependencies (to be marked). |
|
44 */ |
|
45 static void GetDependenciesL( const MIAUpdateNode& aNode, |
|
46 const RPointerArray<MIAUpdateAnyNode>& aAllNodes, |
|
47 RPointerArray<MIAUpdateNode>& aDependencyNodes ); |
|
48 |
|
49 /** |
|
50 * Get all dependant nodes which are marked |
|
51 * |
|
52 * @param aNode Dependency node |
|
53 * @param aAllNodes All visible nodes in UI |
|
54 * @param aDependencyNodes List of dependendants (to be unmarked). |
|
55 */ |
|
56 static void GetDependantsL( const MIAUpdateNode& aNode, |
|
57 const RPointerArray<MIAUpdateAnyNode>& aAllNodes, |
|
58 RPointerArray<MIAUpdateNode>& aDependantNodes ); |
|
59 |
|
60 }; |
|
61 #endif /* IAUPDATEDEPUTILS_H_ */ |
|
62 |
|
63 // End of File |