messagingfw/msgtestfw/TestActions/Base/src/CMtfTestActionCheckChildrenCountWithFlagNew.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 15:05:36 +0300
branchRCL_3
changeset 59 d1d846af7341
parent 0 8e480a14352b
permissions -rw-r--r--
Revision: 201039 Kit: 201041

// Copyright (c) 2003-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:
// __ACTION_INFO_BEGIN__ 
// [Action Name]
// CheckChildrenCountWithFlagNew
// [Action Parameters]
// Session  <input>: Reference to the session.
// ParentId <input>: Value of the parent id.
// Count    <input>: Value of expected count of children with "New" flag set.
// [Action Description]
// Checks if count of children with "New" flag set is as expected.
// [APIs Used]
// CMsvEntry::SetEntryL
// CMsvEntry::ChildrenL
// CMsvEntry::SetSortTypeL
// TMsvSelectionOrdering::SetShowInvisibleEntries
// __ACTION_INFO_END__
// 
//

/**
 @file
*/


#include "CMtfTestActionCheckChildrenCountWithFlagNew.h"
#include "CMtfTestCase.h"
#include "CMtfTestActionParameters.h"

#include <msvapi.h>

CMtfTestAction* CMtfTestActionCheckChildrenCountWithFlagNew::NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* aActionParameters)
	{
	CMtfTestActionCheckChildrenCountWithFlagNew* self = new (ELeave) CMtfTestActionCheckChildrenCountWithFlagNew(aTestCase);
	CleanupStack::PushL(self);
	self->ConstructL(aActionParameters);
	CleanupStack::Pop();
	return self;
	}
	

CMtfTestActionCheckChildrenCountWithFlagNew::CMtfTestActionCheckChildrenCountWithFlagNew(CMtfTestCase& aTestCase)
	: CMtfTestActionCheckChildrenCountWithFlagBase(aTestCase)
	{
	}


CMtfTestActionCheckChildrenCountWithFlagNew::~CMtfTestActionCheckChildrenCountWithFlagNew()
	{
	}


TBool CMtfTestActionCheckChildrenCountWithFlagNew::FlagIsSet(TMsvEntry& entry)
	{
	return entry.New();
	}

const TDesC* CMtfTestActionCheckChildrenCountWithFlagNew::FlagName()
   {
   return &KFlagNameNew;
   }