sl@0: /* sl@0: * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * CCertAppsConduit class implementation sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #ifndef __CCERTAPPSCONDUIT_H__ sl@0: #define __CCERTAPPSCONDUIT_H__ sl@0: sl@0: #include sl@0: #include sl@0: sl@0: // forward declarations sl@0: class CFSCertAppsServer; sl@0: sl@0: /** sl@0: * Unmarshalls incoming client messages, calls the cert apps server and sl@0: * marshalls the results back to the client again. sl@0: */ sl@0: class CCertAppsConduit : public CBase sl@0: { sl@0: public: sl@0: static CCertAppsConduit* NewL(CFSCertAppsServer& aServer); sl@0: sl@0: // Function to handle a CertApp request sl@0: void ServiceCertAppsRequestL(const RMessage2& aMessage); sl@0: sl@0: public: sl@0: ~CCertAppsConduit(); sl@0: sl@0: private: sl@0: // Message handler functions called by service method - these unmarshall the sl@0: // parameters and call the real server sl@0: void AddL(const RMessage2& aMessage) const; sl@0: void RemoveL(const RMessage2& aMessage) const; sl@0: void ApplicationCountL(const RMessage2& aMessage) const; sl@0: void ApplicationsL(const RMessage2& aMessage) const; sl@0: void ApplicationL(const RMessage2& aMessage) const; sl@0: sl@0: private: sl@0: CCertAppsConduit(CFSCertAppsServer& aServer); sl@0: void ConstructL(); sl@0: private: sl@0: CFSCertAppsServer& iServer; sl@0: }; sl@0: sl@0: #endif