|
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 |
|
22 /** |
|
23 @file |
|
24 @internalTechnology |
|
25 */ |
|
26 |
|
27 #ifndef __CCERTAPPSCONDUIT_H__ |
|
28 #define __CCERTAPPSCONDUIT_H__ |
|
29 |
|
30 #include <e32std.h> |
|
31 #include <e32base.h> |
|
32 |
|
33 // forward declarations |
|
34 class CFSCertAppsServer; |
|
35 |
|
36 /** |
|
37 * Unmarshalls incoming client messages, calls the cert apps server and |
|
38 * marshalls the results back to the client again. |
|
39 */ |
|
40 class CCertAppsConduit : public CBase |
|
41 { |
|
42 public: |
|
43 static CCertAppsConduit* NewL(CFSCertAppsServer& aServer); |
|
44 |
|
45 // Function to handle a CertApp request |
|
46 void ServiceCertAppsRequestL(const RMessage2& aMessage); |
|
47 |
|
48 public: |
|
49 ~CCertAppsConduit(); |
|
50 |
|
51 private: |
|
52 // Message handler functions called by service method - these unmarshall the |
|
53 // parameters and call the real server |
|
54 void AddL(const RMessage2& aMessage) const; |
|
55 void RemoveL(const RMessage2& aMessage) const; |
|
56 void ApplicationCountL(const RMessage2& aMessage) const; |
|
57 void ApplicationsL(const RMessage2& aMessage) const; |
|
58 void ApplicationL(const RMessage2& aMessage) const; |
|
59 |
|
60 private: |
|
61 CCertAppsConduit(CFSCertAppsServer& aServer); |
|
62 void ConstructL(); |
|
63 private: |
|
64 CFSCertAppsServer& iServer; |
|
65 }; |
|
66 |
|
67 #endif |