equal
deleted
inserted
replaced
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 * Routines for Credential Manager Server. |
16 * Routines for Credential Manager Server |
14 */ |
17 */ |
15 |
18 |
16 // Include Files |
19 // Include Files |
17 #include <e32base.h> |
20 #include <e32base.h> |
18 #include <e32std.h> |
21 #include <e32std.h> |
50 } |
53 } |
51 |
54 |
52 // Server process entry-point |
55 // Server process entry-point |
53 TInt E32Main() |
56 TInt E32Main() |
54 { |
57 { |
55 |
|
56 __UHEAP_MARK; |
58 __UHEAP_MARK; |
57 |
59 |
58 CTrapCleanup* cleanup = CTrapCleanup::New(); |
60 CTrapCleanup* cleanup = CTrapCleanup::New(); |
59 TInt r = KErrNoMemory; |
61 TInt r = KErrNoMemory; |
60 if (cleanup) |
62 if (cleanup) |
65 |
67 |
66 __UHEAP_MARKEND; |
68 __UHEAP_MARKEND; |
67 return r; |
69 return r; |
68 } |
70 } |
69 |
71 |
70 CSmfCredMgrServer::CSmfCredMgrServer() : |
|
71 CPolicyServer(CActive::EPriorityStandard, policy, EUnsharableSessions) |
|
72 { |
|
73 |
|
74 } |
|
75 |
|
76 /** |
72 /** |
77 * CSmfCredMgrServer::NewL() |
73 * CSmfCredMgrServer::NewL() |
78 * Two-phased constructor. |
74 * Two-phased constructor. |
|
75 * @return The constructed CSmfCredMgrServer instance |
79 */ |
76 */ |
80 CSmfCredMgrServer* CSmfCredMgrServer::NewL() |
77 CSmfCredMgrServer* CSmfCredMgrServer::NewL() |
81 { |
78 { |
82 CSmfCredMgrServer* Server = CSmfCredMgrServer::NewLC(); |
79 CSmfCredMgrServer* Server = CSmfCredMgrServer::NewLC(); |
83 CleanupStack::Pop(Server); |
80 CleanupStack::Pop(Server); |
85 } |
82 } |
86 |
83 |
87 /** |
84 /** |
88 * CSmfCredMgrServer::NewLC() |
85 * CSmfCredMgrServer::NewLC() |
89 * Two-phased constructor. |
86 * Two-phased constructor. |
|
87 * @return The constructed CSmfCredMgrServer instance |
90 */ |
88 */ |
91 CSmfCredMgrServer* CSmfCredMgrServer::NewLC() |
89 CSmfCredMgrServer* CSmfCredMgrServer::NewLC() |
92 { |
90 { |
93 CSmfCredMgrServer* Server = new (ELeave) CSmfCredMgrServer(); |
91 CSmfCredMgrServer* Server = new (ELeave) CSmfCredMgrServer(); |
94 CleanupStack::PushL(Server); |
92 CleanupStack::PushL(Server); |
95 Server->ConstructL(); |
93 Server->ConstructL(); |
96 return Server; |
94 return Server; |
97 } |
95 } |
98 |
96 |
99 /** |
97 /** |
|
98 * Constructor |
|
99 */ |
|
100 CSmfCredMgrServer::CSmfCredMgrServer() : |
|
101 CPolicyServer(CActive::EPriorityStandard, policy, EUnsharableSessions) |
|
102 { |
|
103 |
|
104 } |
|
105 |
|
106 /** |
100 * CSmfCredMgrServer::ConstructL() |
107 * CSmfCredMgrServer::ConstructL() |
101 * Symbian 2nd phase constructor can leave. |
108 * Symbian 2nd phase constructor can leave. |
102 */ |
109 */ |
103 void CSmfCredMgrServer::ConstructL() |
110 void CSmfCredMgrServer::ConstructL() |
104 { |
111 { |
105 |
|
106 iDbCreator = CSmfCredMgrDb::NewL(); |
112 iDbCreator = CSmfCredMgrDb::NewL(); |
107 StartL(KCredMgrServerName); |
113 StartL(KCredMgrServerName); |
108 RDebug::Printf("in constructor CSmfCredMgrServer"); |
114 RDebug::Printf("in constructor CSmfCredMgrServer"); |
109 } |
115 } |
110 |
116 |