messagingfw/msgtestfw/TestActions/Base/src/CMtfTestActionCheckChildrenCountWithFlagComplete.cpp
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     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 // CheckChildrenCountWithFlagComplete
       
    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 "Complete" flag set.
       
    21 // [Action Description]
       
    22 // Checks if count of children with "Complete" 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 "CMtfTestActionCheckChildrenCountWithFlagComplete.h"
       
    38 #include "CMtfTestCase.h"
       
    39 #include "CMtfTestActionParameters.h"
       
    40 
       
    41 #include <msvapi.h>
       
    42 
       
    43 CMtfTestAction* CMtfTestActionCheckChildrenCountWithFlagComplete::NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* aActionParameters)
       
    44 	{
       
    45 	CMtfTestActionCheckChildrenCountWithFlagComplete* self = new (ELeave) CMtfTestActionCheckChildrenCountWithFlagComplete(aTestCase);
       
    46 	CleanupStack::PushL(self);
       
    47 	self->ConstructL(aActionParameters);
       
    48 	CleanupStack::Pop();
       
    49 	return self;
       
    50 	}
       
    51 	
       
    52 
       
    53 CMtfTestActionCheckChildrenCountWithFlagComplete::CMtfTestActionCheckChildrenCountWithFlagComplete(CMtfTestCase& aTestCase)
       
    54 	: CMtfTestActionCheckChildrenCountWithFlagBase(aTestCase)
       
    55 	{
       
    56 	}
       
    57 
       
    58 
       
    59 CMtfTestActionCheckChildrenCountWithFlagComplete::~CMtfTestActionCheckChildrenCountWithFlagComplete()
       
    60 	{
       
    61 	}
       
    62 
       
    63 
       
    64 TBool CMtfTestActionCheckChildrenCountWithFlagComplete::FlagIsSet(TMsvEntry& entry)
       
    65 	{
       
    66 	return entry.Complete();
       
    67 	}
       
    68 
       
    69 const TDesC* CMtfTestActionCheckChildrenCountWithFlagComplete::FlagName()
       
    70    {
       
    71    return &KFlagNameComplete;
       
    72    }