os/security/cryptoservices/filebasedcertificateandkeystores/source/certapps/server/CCertAppsConduit.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2004-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 * CCertAppsConduit class implementation
    16 *
    17 */
    18 
    19 
    20 /**
    21  @file 
    22  @internalTechnology
    23 */
    24  
    25 #ifndef __CCERTAPPSCONDUIT_H__
    26 #define __CCERTAPPSCONDUIT_H__
    27 
    28 #include <e32std.h>
    29 #include <e32base.h>
    30 
    31 // forward declarations
    32 class CFSCertAppsServer;
    33 
    34 /**
    35  * Unmarshalls incoming client messages, calls the cert apps server and
    36  * marshalls the results back to the client again.
    37  */
    38 class CCertAppsConduit : public CBase
    39 	{
    40 public:
    41 	static CCertAppsConduit* NewL(CFSCertAppsServer& aServer);
    42 
    43 	// Function to handle a CertApp request
    44 	void ServiceCertAppsRequestL(const RMessage2& aMessage);
    45 
    46 public:
    47 	~CCertAppsConduit();
    48 
    49 private:
    50 	// Message handler functions called by service method - these unmarshall the
    51 	// parameters and call the real server
    52 	void AddL(const RMessage2& aMessage) const;
    53 	void RemoveL(const RMessage2& aMessage) const;
    54 	void ApplicationCountL(const RMessage2& aMessage) const;
    55 	void ApplicationsL(const RMessage2& aMessage) const;
    56 	void ApplicationL(const RMessage2& aMessage) const;
    57 
    58 private:
    59 	CCertAppsConduit(CFSCertAppsServer& aServer);
    60 	void ConstructL();
    61 private:
    62 	CFSCertAppsServer& iServer;
    63 	};
    64 
    65 #endif