5 * under the terms of the "Eclipse Public License v1.0" |
5 * under the terms of the "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html" |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html" |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Pritam Roy Biswas, Sasken Communication Technologies Ltd - Initial contribution |
10 * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * Pritam Roy Biswas, Sasken Communication Technologies Ltd |
11 * |
14 * |
12 * Description: |
15 * Description: |
13 * Header file for Credential Manager Server. |
16 * Header file for Credential Manager Server. |
14 */ |
17 */ |
|
18 |
15 #ifndef __SMFCREDMGRSERVER_H__ |
19 #ifndef __SMFCREDMGRSERVER_H__ |
16 #define __SMFCREDMGRSERVER_H__ |
20 #define __SMFCREDMGRSERVER_H__ |
17 |
21 |
18 // Include Files |
22 // Include Files |
19 |
|
20 #include <e32base.h> |
23 #include <e32base.h> |
21 |
24 |
|
25 // Forward declaration |
22 class CSmfCredMgrDb; |
26 class CSmfCredMgrDb; |
23 |
27 |
24 // Function Prototypes |
28 // Function Prototypes |
25 |
|
26 GLDEF_C TInt E32Main(); |
29 GLDEF_C TInt E32Main(); |
27 |
30 |
28 // ---------------------------------------------------------------------------------------- |
31 // ---------------------------------------------------------------------------------------- |
29 // Server's policy |
32 // Server's policy |
30 // ---------------------------------------------------------------------------------------- |
33 // ---------------------------------------------------------------------------------------- |
31 static const TUint rangeCount = 1; |
34 static const TUint rangeCount = 1; |
|
35 |
32 static const TInt ranges[rangeCount] = |
36 static const TInt ranges[rangeCount] = |
33 { |
37 { |
34 0 |
38 0 |
35 }; |
39 }; |
|
40 |
36 static const TUint8 elementsIndex[rangeCount] = |
41 static const TUint8 elementsIndex[rangeCount] = |
37 { |
42 { |
38 CPolicyServer::EAlwaysPass |
43 CPolicyServer::EAlwaysPass |
39 }; |
44 }; |
|
45 |
40 static const CPolicyServer::TPolicy policy = |
46 static const CPolicyServer::TPolicy policy = |
41 { |
47 { |
42 CPolicyServer::EAlwaysPass, //specifies all connect attempts should pass |
48 CPolicyServer::EAlwaysPass, //specifies all connect attempts should pass |
43 rangeCount, |
49 rangeCount, |
44 ranges, |
50 ranges, |
46 NULL |
52 NULL |
47 }; |
53 }; |
48 |
54 |
49 /** |
55 /** |
50 * Class for Credential Manager Server. |
56 * Class for Credential Manager Server. |
51 * Derives from CPolicyServer. |
57 * Derives from CPolicyServer. |
52 */ |
58 */ |
53 class CSmfCredMgrServer : public CPolicyServer |
59 class CSmfCredMgrServer : public CPolicyServer |
54 { |
60 { |
55 public: |
61 public: |
56 /** |
62 /** |
57 * New Methods |
63 * NewL Method |
|
64 * @return The constructed CSmfCredMgrServer instance |
58 */ |
65 */ |
59 static CSmfCredMgrServer * NewL(); |
66 static CSmfCredMgrServer * NewL(); |
|
67 |
|
68 /** |
|
69 * NewLC Method |
|
70 * @return The constructed CSmfCredMgrServer instance |
|
71 */ |
60 static CSmfCredMgrServer* NewLC(); |
72 static CSmfCredMgrServer* NewLC(); |
61 |
73 |
62 /** |
74 /** |
63 * destructor |
75 * Destructor |
64 */ |
76 */ |
65 ~CSmfCredMgrServer(); |
77 ~CSmfCredMgrServer(); |
66 |
78 |
67 /** |
79 /** |
68 * Creates a server-side session object.The session represents a |
80 * Creates a server-side session object.The session represents a |
69 * communication link between a client and a server, and its creation |
81 * communication link between a client and a server, and its creation |
70 * is initiated by the client through a call to one of the |
82 * is initiated by the client through a call to one of the |
71 * RSessionBase::CreateSession() variants. |
83 * RSessionBase::CreateSession() variants. |
72 */ |
84 */ |
73 CSession2 |
85 CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const; |
74 * NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const; |
|
75 |
86 |
76 private: |
87 private: |
77 /** |
88 /** |
78 * constructor |
89 * Constructor |
79 */ |
90 */ |
80 CSmfCredMgrServer(); |
91 CSmfCredMgrServer(); |
81 |
92 |
82 /** |
93 /** |
83 * Two-phase constructor |
94 * Two-phase constructor |