os/security/cryptoservices/certificateandkeymgmt/tcertstore/T_unifiedcertstoreapplications.h
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) 1998-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 * CUnifiedCertStoreApplications class implementations
    16 *
    17 */
    18 
    19 
    20 /**
    21  @file 
    22  @internalTechnology
    23 */
    24  
    25 #ifndef __T_UNIFIEDCERTSTOREAPPLICATIONS_H__
    26 #define __T_UNIFIEDCERTSTOREAPPLICATIONS_H__
    27 
    28 #include "t_certstoreactions.h"
    29 
    30 class CUnifiedCertStoreApplications : public CCertStoreTestAction
    31 	{
    32 public:
    33 	static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, Output& aOut,
    34 		const TTestActionSpec& aTestActionSpec);
    35 	virtual ~CUnifiedCertStoreApplications();
    36 	virtual void PerformAction(TRequestStatus& aStatus);
    37 	virtual void PerformCancel();
    38 	virtual void Reset();
    39 
    40 private:
    41 	CUnifiedCertStoreApplications(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
    42 	void ConstructL(const TTestActionSpec& aTestActionSpec);
    43 	void GetApplications(TRequestStatus& aStatus);
    44 	void DoReportAction();
    45 	void DoCheckResult(TInt aError);
    46 
    47 private:
    48 	enum TState
    49 		{
    50 		EGetCert,
    51 		EGettingApplications,
    52 		EFinished
    53 		};
    54 
    55 private:
    56 	TState iState;
    57 	TCertLabel iCertificateLabel;
    58 	RMPointerArray<CCTCertInfo> iCertInfos;
    59 	RArray<TUid> iExpectedApplications;
    60 	CCTCertInfo* iCertInfoForApplications;
    61 	RArray<TUid> iApplications;
    62 	CCertAttributeFilter* iFilter;
    63 	};
    64 
    65 #endif
    66