os/security/cryptoservices/filebasedcertificateandkeystores/source/certapps/client/CFSCertAppsClient.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2002-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 * CFSCertAppsClient class implementation
    16 *
    17 */
    18 
    19 
    20 /**
    21  @file 
    22  @internalTechnology
    23 */
    24  
    25 #ifndef __CFSCERTAPPSCLIENT_H__
    26 #define __CFSCERTAPPSCLIENT_H__
    27 
    28 #include <mctcertapps.h>
    29 #include "CFSClient.h"
    30 #include "mctcertappinterface.h"
    31 
    32 /**
    33  * Implementation of MCTCertApps interface, with inheritance from CFSClient.
    34  * Created by CClientInterfaceFactory. Marshals client data for server requests
    35  * and unpacks returned parameter data across IPC boundary.
    36  */
    37 NONSHARABLE_CLASS(CFSCertAppsClient) : public CFSClient, public MCTCertApps
    38 	{
    39 public:
    40 	static MCTTokenInterface* NewInterfaceL(MCTToken& aToken, RFileStoreClientSession& aClient);
    41 	virtual ~CFSCertAppsClient();
    42 
    43 	// From MCTTokenInterface
    44 	virtual MCTToken& Token();
    45 	virtual void DoRelease();
    46 
    47 	// From MCTCertApps
    48 	virtual void AddL(const TCertificateAppInfo& aClient);
    49 	virtual void RemoveL(const TUid& aUid);
    50 	virtual TInt ApplicationCountL() const;
    51 	virtual void ApplicationsL(RArray<TCertificateAppInfo>& aAppArray) const;
    52 	virtual void ApplicationL(const TUid& aUid, TCertificateAppInfo& aInfo) const;
    53 
    54 private:	
    55 	CFSCertAppsClient(TInt aUID, MCTToken& aToken, RFileStoreClientSession& aClient);
    56 
    57 	// From CActive
    58 	virtual void RunL();
    59 
    60 	void DoApplicationsL(RArray<TCertificateAppInfo>& aAppArray) const;
    61 	};
    62 
    63 #endif	//	__CFSCertAppsCLIENT_H__