cryptoservices/filebasedcertificateandkeystores/source/certapps/server/CCertAppsConduit.h
author hgs
Thu, 24 Jun 2010 15:39:07 +0530
changeset 72 de46a57f75fb
parent 8 35751d3474b7
permissions -rw-r--r--
201023_02

/*
* Copyright (c) 2004-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: 
* CCertAppsConduit class implementation
*
*/


/**
 @file 
 @internalTechnology
*/
 
#ifndef __CCERTAPPSCONDUIT_H__
#define __CCERTAPPSCONDUIT_H__

#include <e32std.h>
#include <e32base.h>

// forward declarations
class CFSCertAppsServer;

/**
 * Unmarshalls incoming client messages, calls the cert apps server and
 * marshalls the results back to the client again.
 */
class CCertAppsConduit : public CBase
	{
public:
	static CCertAppsConduit* NewL(CFSCertAppsServer& aServer);

	// Function to handle a CertApp request
	void ServiceCertAppsRequestL(const RMessage2& aMessage);

public:
	~CCertAppsConduit();

private:
	// Message handler functions called by service method - these unmarshall the
	// parameters and call the real server
	void AddL(const RMessage2& aMessage) const;
	void RemoveL(const RMessage2& aMessage) const;
	void ApplicationCountL(const RMessage2& aMessage) const;
	void ApplicationsL(const RMessage2& aMessage) const;
	void ApplicationL(const RMessage2& aMessage) const;

private:
	CCertAppsConduit(CFSCertAppsServer& aServer);
	void ConstructL();
private:
	CFSCertAppsServer& iServer;
	};

#endif