|
1 /* |
|
2 * Copyright (c) 2008 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: ATEXT common server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef COMMON_SERVER_IMPL_H |
|
20 #define COMMON_SERVER_IMPL_H |
|
21 |
|
22 #include <e32svr.h> |
|
23 |
|
24 class CATExtCommonSession; |
|
25 |
|
26 /** |
|
27 * CATExtSrv common server core class |
|
28 * |
|
29 * @since S60 v5.0 |
|
30 */ |
|
31 NONSHARABLE_CLASS( CATExtSrvCommon ) : public CPolicyServer |
|
32 { |
|
33 |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 * |
|
39 * @return Instance of self |
|
40 */ |
|
41 static CATExtSrvCommon* NewLC(); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CATExtSrvCommon(); |
|
47 |
|
48 /** |
|
49 * Removes session from array of instantiated sessions |
|
50 * |
|
51 * @return None |
|
52 */ |
|
53 void ClientClosed( CATExtCommonSession& aSession ); |
|
54 |
|
55 private: |
|
56 |
|
57 /** |
|
58 * Creates a new session to client |
|
59 * |
|
60 * @param aVersion the version |
|
61 * @param aMessage not used |
|
62 * return The new created session |
|
63 */ |
|
64 CSession2* NewSessionL( const TVersion& aVersion, |
|
65 const RMessage2& aMessage ) const; |
|
66 |
|
67 /** |
|
68 * Constructor |
|
69 * |
|
70 * @param aPriority This AO's priority |
|
71 */ |
|
72 CATExtSrvCommon( TInt aPriority ); |
|
73 |
|
74 /** |
|
75 * Two-Phase constructor |
|
76 * |
|
77 * @return None |
|
78 */ |
|
79 void ConstructL(); |
|
80 |
|
81 private: // data |
|
82 |
|
83 /** |
|
84 * Array of instantiated sessions. |
|
85 * Own. |
|
86 */ |
|
87 RPointerArray<CATExtCommonSession> iSessions; |
|
88 |
|
89 }; |
|
90 |
|
91 #endif // COMMON_SERVER_IMPL_H |