| author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
| Wed, 13 Oct 2010 14:15:33 +0300 | |
| branch | RCL_3 |
| changeset 85 | 38bb213f60ba |
| parent 63 | f4a778e096c2 |
| permissions | -rw-r--r-- |
| 63 | 1 |
/* |
2 |
* Copyright (c) 2007 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: PCS Server main class. Co-ordinates server startup |
|
15 |
* and shutdown and receives client requests. |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
#ifndef PCS_SERVER_H |
|
20 |
#define PCS_SERVER_H |
|
21 |
||
22 |
// INCLUDE FILES |
|
23 |
#include <e32base.h> |
|
24 |
#include <CPcsDefs.h> |
|
25 |
||
26 |
// FORWARD DECLARATIONS |
|
27 |
class CPcsSession; |
|
28 |
class CPcsHandler; |
|
29 |
class CPcsPluginInterface; |
|
30 |
||
31 |
/** |
|
32 |
* PCS Server main class. Co-ordinates server startup and shutdown |
|
33 |
* and receives client requests. |
|
34 |
*/ |
|
35 |
class CPcsServer : public CServer2 |
|
36 |
{
|
|
37 |
public: |
|
38 |
||
39 |
/** |
|
40 |
* Two phase construction |
|
41 |
*/ |
|
42 |
static CPcsServer* NewL(); |
|
43 |
||
44 |
/** |
|
45 |
* Destructor |
|
46 |
*/ |
|
47 |
~CPcsServer(); |
|
48 |
||
49 |
/** |
|
50 |
* Creates a server side session object |
|
51 |
* Implements NewSessionL of CServer2 |
|
52 |
*/ |
|
53 |
CSession2* NewSessionL(const TVersion& aVersion, |
|
54 |
const RMessage2& aMessage) const; |
|
55 |
||
56 |
/** |
|
57 |
* Return the plugin interface instance |
|
58 |
*/ |
|
59 |
CPcsPluginInterface* PluginInterface(); |
|
60 |
||
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
61 |
/** |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
62 |
* Returns ETrue if there is Chinese variant feature in phone |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
63 |
*/ |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
64 |
TBool IsChineseVariant() const; |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
65 |
|
| 63 | 66 |
private: |
67 |
||
68 |
/** |
|
69 |
* Constructor |
|
70 |
*/ |
|
71 |
CPcsServer(); |
|
72 |
||
73 |
/** |
|
74 |
* Second phase constructor |
|
75 |
*/ |
|
76 |
void ConstructL(); |
|
77 |
||
78 |
/** |
|
79 |
* Returns ETrue if chinese feature is initilized |
|
80 |
*/ |
|
81 |
TBool IsChineseFeatureInitilizedL(); |
|
82 |
private: |
|
83 |
||
84 |
/** |
|
85 |
* A PCS algorithm instance (owned) |
|
86 |
*/ |
|
87 |
CPcsPluginInterface* iPcs; |
|
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
88 |
|
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
89 |
/** |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
90 |
* Flag for whether there is Chinese in phone |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
91 |
*/ |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
92 |
TBool iIsChineseVariant; |
| 63 | 93 |
}; |
94 |
||
95 |
#endif // End of file |