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: content manager server session header |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CMSERVERSESSION_H |
|
21 #define CMSERVERSESSION_H |
|
22 |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CCmServer; |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * CCmSession |
|
31 * This is a class for content manager server main session |
|
32 * |
|
33 * @since S60 3.1 |
|
34 */ |
|
35 NONSHARABLE_CLASS( CCmSession ) : public CSession2 |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 */ |
|
42 static CCmSession* NewL( CCmDmMain& aDbManager, |
|
43 MCmSettings& aSettings ); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 virtual ~CCmSession(); |
|
49 |
|
50 // From base class CSession2 |
|
51 |
|
52 /** |
|
53 * From CSession2. |
|
54 * see base class definition |
|
55 */ |
|
56 void ServiceL( const RMessage2 &aMessage ); |
|
57 |
|
58 protected: |
|
59 |
|
60 /** |
|
61 * Panics the client |
|
62 * |
|
63 * @since S60 5.1 |
|
64 * @param aMessage, received message |
|
65 * @param aPanic, panic code |
|
66 */ |
|
67 void PanicClient( const RMessage2& aMessage, TInt aPanic ) const; |
|
68 |
|
69 private: |
|
70 |
|
71 /** |
|
72 * Constructor. |
|
73 */ |
|
74 CCmSession( CCmDmMain& aDbManager, MCmSettings& aSettings ); |
|
75 |
|
76 /** |
|
77 * Performs the second phase construction. |
|
78 */ |
|
79 void ConstructL(); |
|
80 |
|
81 /** |
|
82 * Performs the first phase of two phase construction |
|
83 * @since S60 3.1 |
|
84 * @param void |
|
85 * @return content manager server reference |
|
86 */ |
|
87 CCmServer& Server(); |
|
88 |
|
89 private: |
|
90 |
|
91 /** |
|
92 * Database manager |
|
93 */ |
|
94 CCmDmMain& iDbManager; |
|
95 /** |
|
96 * Settings engine |
|
97 */ |
|
98 MCmSettings& iSettings; |
|
99 /** |
|
100 * Buffer for collected data |
|
101 */ |
|
102 CBufFlat* iDataBuffer; // owned |
|
103 /** |
|
104 * Metadata collector |
|
105 */ |
|
106 CCmSqlPropertyCollector* iCollector; // owned |
|
107 }; |
|
108 |
|
109 #endif // CMSERVERSESSION_H |
|
110 |
|
111 // End of File |
|