|
1 /* |
|
2 * Copyright (c) 2002-2006 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 "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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CFSERVER_H |
|
20 #define C_CFSERVER_H |
|
21 |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <f32file.h> |
|
25 |
|
26 #include "cfcommon.h" |
|
27 #include "cftraceconfiguration.hrh" |
|
28 #include "CFSecurityChecker.h" |
|
29 |
|
30 class CCFEngine; |
|
31 |
|
32 /** |
|
33 * Context Framework Server class. |
|
34 */ |
|
35 NONSHARABLE_CLASS( CCFServer ): public CServer2, public MCFSecurityChecker |
|
36 { |
|
37 public: // New methods |
|
38 |
|
39 static CCFServer* NewL(); |
|
40 static CCFServer* NewLC(); |
|
41 |
|
42 ~CCFServer(); |
|
43 |
|
44 public:// New methods |
|
45 |
|
46 static TInt ThreadFunction( TAny* aThreadParms ); |
|
47 |
|
48 TBool CheckClientSecurity( const RThread& aClientThread, |
|
49 const TSecurityPolicy& aSecurityPolicy ); |
|
50 |
|
51 |
|
52 private: // From base classes |
|
53 |
|
54 // From CServer2 |
|
55 virtual CSession2 *NewSessionL( const TVersion &aVersion, |
|
56 const RMessage2& aMessage ) const; |
|
57 |
|
58 private: |
|
59 |
|
60 void ConstructL(); |
|
61 CCFServer( TInt aPriority ); |
|
62 |
|
63 private: // New methods |
|
64 |
|
65 static void ThreadFunctionL(TAny* aThreadParms); |
|
66 static void PanicServer(TContextServPanic aPanic); |
|
67 |
|
68 private: // Data |
|
69 |
|
70 /** CF engine */ |
|
71 CCFEngine* iCFEngine; |
|
72 }; |
|
73 |
|
74 #endif |