|
1 /* |
|
2 * Copyright (c) 2006-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: CCCHSession declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CCHSESSION_H |
|
20 #define C_CCHSESSION_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 // CONSTANTS |
|
27 // None |
|
28 |
|
29 // MACROS |
|
30 // None |
|
31 |
|
32 // DATA TYPES |
|
33 // None |
|
34 |
|
35 // FUNCTION PROTOTYPES |
|
36 // None |
|
37 |
|
38 // FORWARD DECLARATIONS |
|
39 class CCCHServerBase; |
|
40 |
|
41 // CLASS DECLARATION |
|
42 |
|
43 /** |
|
44 * CCCHSession declaration |
|
45 * Server side counterpart for client's Session classes. |
|
46 * Each connection has own session in server. |
|
47 * @lib cchserver.exe |
|
48 * @since S60 3.2 |
|
49 */ |
|
50 NONSHARABLE_CLASS( CCCHSession ) : public CSession2 |
|
51 { |
|
52 |
|
53 public: // Constructors and destructor |
|
54 |
|
55 /** |
|
56 * Two-phased constructor. |
|
57 */ |
|
58 static CCCHSession* NewL( CCCHServerBase& aServer ); |
|
59 |
|
60 /** |
|
61 * Two-phased constructor. |
|
62 */ |
|
63 static CCCHSession* NewLC( CCCHServerBase& aServer ); |
|
64 |
|
65 /** |
|
66 * Destructor. |
|
67 */ |
|
68 virtual ~CCCHSession(); |
|
69 |
|
70 public: // New functions |
|
71 |
|
72 /** |
|
73 * Service dispatcher from CSession. |
|
74 * @since S60 3.2 |
|
75 * @param aMessage Message received form client. |
|
76 */ |
|
77 void ServiceL( const RMessage2& aMessage ); |
|
78 |
|
79 private: |
|
80 |
|
81 /** |
|
82 * C++ default constructor. |
|
83 */ |
|
84 CCCHSession( CCCHServerBase& aServer ); |
|
85 |
|
86 /** |
|
87 * By default Symbian 2nd phase constructor is private. |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 private: // data |
|
92 |
|
93 /** |
|
94 * Handle to server |
|
95 */ |
|
96 CCCHServerBase& iCCHServer; |
|
97 |
|
98 /** |
|
99 * Subsessions |
|
100 */ |
|
101 CObjectCon* iSubsessions; |
|
102 |
|
103 /** |
|
104 * Subsession id generator. |
|
105 */ |
|
106 CObjectIx* iObjectIx; |
|
107 |
|
108 }; |
|
109 |
|
110 #endif // C_CCHSESSION_H |
|
111 |
|
112 // End of file |