cryptoservices/certificateandkeymgmt/tcertstore/T_unifiedcertstorecount.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 17:00:08 +0300
branchRCL_3
changeset 95 641f389e9157
parent 8 35751d3474b7
permissions -rw-r--r--
Revision: 201035 Kit: 201035

/*
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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: 
*
*/


/**
 @file
*/

#include "t_unifiedcertstorecount.h"
#include "tcertutils.h"
#include "t_certstoredefs.h"
#include "t_certstoreout.h"

CUnifiedCertStoreCount::~CUnifiedCertStoreCount()
	{
	}

CUnifiedCertStoreCount::CUnifiedCertStoreCount(RFs& aFs, CConsoleBase& aConsole,	
											   Output& aOut)
: CCertStoreTestAction(aFs, aConsole, aOut)
	{
	}

void CUnifiedCertStoreCount::ConstructL(const TTestActionSpec& aTestActionSpec)
	{
	CCertStoreTestAction::ConstructL(aTestActionSpec);
	}

void CUnifiedCertStoreCount::PerformAction(TRequestStatus& aStatus)
	{
	iFinished = ETrue;
	DoPerformAction();
	TRequestStatus* status = &aStatus;
	User::RequestComplete(status, KErrNone);
	}

void CUnifiedCertStoreCount::PerformCancel()
	{
	}

void CUnifiedCertStoreCount::Reset()
	{
	__ASSERT_DEBUG(EFalse, User::Panic(_L("CUnifiedCertStoreCount::Reset()"), 1));
	}

void CUnifiedCertStoreCount::DoReportAction()
	{
//	iOut.writeString(_L("Getting applications..."));
	iOut.writeNewLine();
/*	iOut.writeString(_L("\tExpected applications :"));
	TInt iEnd = iExpectedApplications.Count();
	for (TInt i = 0; i < iEnd; i++)
		{
		iOut.writeString(_L(" "));
		iOut.writeNum(iExpectedApplications[i].iUid);
		}
	iOut.writeNewLine();
	iOut.writeNewLine();*/
	}	

void CUnifiedCertStoreCount::DoCheckResult(TInt /*aError*/)
	{
	DoWriteResult();
	iOut.writeNewLine();
	iOut.writeNum(iCount);
	iConsole.Printf(_L(" %D\n"),iCount);
	iOut.writeNewLine();
	}