|
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // __ACTION_INFO_BEGIN__ |
|
15 // [Action Name] |
|
16 // CheckChildrenCountWithFlagNew |
|
17 // [Action Parameters] |
|
18 // Session <input>: Reference to the session. |
|
19 // ParentId <input>: Value of the parent id. |
|
20 // Count <input>: Value of expected count of children with "New" flag set. |
|
21 // [Action Description] |
|
22 // Checks if count of children with "New" flag set is as expected. |
|
23 // [APIs Used] |
|
24 // CMsvEntry::SetEntryL |
|
25 // CMsvEntry::ChildrenL |
|
26 // CMsvEntry::SetSortTypeL |
|
27 // TMsvSelectionOrdering::SetShowInvisibleEntries |
|
28 // __ACTION_INFO_END__ |
|
29 // |
|
30 // |
|
31 |
|
32 /** |
|
33 @file |
|
34 */ |
|
35 |
|
36 |
|
37 #include "CMtfTestActionCheckChildrenCountWithFlagNew.h" |
|
38 #include "CMtfTestCase.h" |
|
39 #include "CMtfTestActionParameters.h" |
|
40 |
|
41 #include <msvapi.h> |
|
42 |
|
43 CMtfTestAction* CMtfTestActionCheckChildrenCountWithFlagNew::NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* aActionParameters) |
|
44 { |
|
45 CMtfTestActionCheckChildrenCountWithFlagNew* self = new (ELeave) CMtfTestActionCheckChildrenCountWithFlagNew(aTestCase); |
|
46 CleanupStack::PushL(self); |
|
47 self->ConstructL(aActionParameters); |
|
48 CleanupStack::Pop(); |
|
49 return self; |
|
50 } |
|
51 |
|
52 |
|
53 CMtfTestActionCheckChildrenCountWithFlagNew::CMtfTestActionCheckChildrenCountWithFlagNew(CMtfTestCase& aTestCase) |
|
54 : CMtfTestActionCheckChildrenCountWithFlagBase(aTestCase) |
|
55 { |
|
56 } |
|
57 |
|
58 |
|
59 CMtfTestActionCheckChildrenCountWithFlagNew::~CMtfTestActionCheckChildrenCountWithFlagNew() |
|
60 { |
|
61 } |
|
62 |
|
63 |
|
64 TBool CMtfTestActionCheckChildrenCountWithFlagNew::FlagIsSet(TMsvEntry& entry) |
|
65 { |
|
66 return entry.New(); |
|
67 } |
|
68 |
|
69 const TDesC* CMtfTestActionCheckChildrenCountWithFlagNew::FlagName() |
|
70 { |
|
71 return &KFlagNameNew; |
|
72 } |