os/security/cryptoservices/certificateandkeymgmt/tcertstore/T_unifiedcertstorecount.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2005-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 the License "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: 
    15 *
    16 */
    17 
    18 
    19 /**
    20  @file
    21 */
    22 
    23 #include "t_unifiedcertstorecount.h"
    24 #include "tcertutils.h"
    25 #include "t_certstoredefs.h"
    26 #include "t_certstoreout.h"
    27 
    28 CUnifiedCertStoreCount::~CUnifiedCertStoreCount()
    29 	{
    30 	}
    31 
    32 CUnifiedCertStoreCount::CUnifiedCertStoreCount(RFs& aFs, CConsoleBase& aConsole,	
    33 											   Output& aOut)
    34 : CCertStoreTestAction(aFs, aConsole, aOut)
    35 	{
    36 	}
    37 
    38 void CUnifiedCertStoreCount::ConstructL(const TTestActionSpec& aTestActionSpec)
    39 	{
    40 	CCertStoreTestAction::ConstructL(aTestActionSpec);
    41 	}
    42 
    43 void CUnifiedCertStoreCount::PerformAction(TRequestStatus& aStatus)
    44 	{
    45 	iFinished = ETrue;
    46 	DoPerformAction();
    47 	TRequestStatus* status = &aStatus;
    48 	User::RequestComplete(status, KErrNone);
    49 	}
    50 
    51 void CUnifiedCertStoreCount::PerformCancel()
    52 	{
    53 	}
    54 
    55 void CUnifiedCertStoreCount::Reset()
    56 	{
    57 	__ASSERT_DEBUG(EFalse, User::Panic(_L("CUnifiedCertStoreCount::Reset()"), 1));
    58 	}
    59 
    60 void CUnifiedCertStoreCount::DoReportAction()
    61 	{
    62 //	iOut.writeString(_L("Getting applications..."));
    63 	iOut.writeNewLine();
    64 /*	iOut.writeString(_L("\tExpected applications :"));
    65 	TInt iEnd = iExpectedApplications.Count();
    66 	for (TInt i = 0; i < iEnd; i++)
    67 		{
    68 		iOut.writeString(_L(" "));
    69 		iOut.writeNum(iExpectedApplications[i].iUid);
    70 		}
    71 	iOut.writeNewLine();
    72 	iOut.writeNewLine();*/
    73 	}	
    74 
    75 void CUnifiedCertStoreCount::DoCheckResult(TInt /*aError*/)
    76 	{
    77 	DoWriteResult();
    78 	iOut.writeNewLine();
    79 	iOut.writeNum(iCount);
    80 	iConsole.Printf(_L(" %D\n"),iCount);
    81 	iOut.writeNewLine();
    82 	}
    83