|
1 /* |
|
2 * Copyright (c) 2006 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: Context session. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XIMPCONTEXTSESSION_H |
|
19 #define XIMPCONTEXTSESSION_H |
|
20 |
|
21 |
|
22 #include "ximpsrvsession.h" |
|
23 #include "ximpeventqueueobserver.h" |
|
24 #include <e32base.h> |
|
25 |
|
26 |
|
27 class MXIMPSrvMessage; |
|
28 class CXIMPPscContext; |
|
29 |
|
30 |
|
31 /** |
|
32 * Context session implementation. |
|
33 */ |
|
34 class CXIMPContextSession : public CBase, |
|
35 public MXIMPSrvSession, |
|
36 public MXIMPEventQueueObserver |
|
37 { |
|
38 public: // Constructors and destructors |
|
39 static CXIMPContextSession* NewL( TUint32 aSessionId ); |
|
40 virtual ~CXIMPContextSession(); |
|
41 |
|
42 |
|
43 protected: // Constructors |
|
44 CXIMPContextSession(); |
|
45 void ConstructL( TUint32 aSessionId ); |
|
46 |
|
47 |
|
48 public: // From MXIMPSrvSession |
|
49 void TryHandleMessageL( MXIMPSrvMessage& aMessage ); |
|
50 |
|
51 |
|
52 public: // MXIMPEventQueueObserver |
|
53 void NewEventAvailable(); |
|
54 |
|
55 |
|
56 private: // New methods |
|
57 |
|
58 |
|
59 void DoQueueOperationL( MXIMPSrvMessage& aMessage ); |
|
60 |
|
61 void DoInstallEventFilterL( MXIMPSrvMessage& aMessage ); |
|
62 void DoSetEventListenScoutL( MXIMPSrvMessage& aMessage ); |
|
63 void DoCancelEventListenScout( MXIMPSrvMessage& aMessage ); |
|
64 void DoFetchTopEventDataSizeL( MXIMPSrvMessage& aMessage ); |
|
65 void DoFetchTopEventDataL( MXIMPSrvMessage& aMessage ); |
|
66 void DoFetchTopEventReqIdL( MXIMPSrvMessage& aMessage ); |
|
67 void DoDropTopEventL( MXIMPSrvMessage& aMessage ); |
|
68 |
|
69 |
|
70 void DoPrepareContextFeaturesL( MXIMPSrvMessage& aMessage ); |
|
71 void DoGetPreparedDataL( MXIMPSrvMessage& aMessage ); |
|
72 |
|
73 |
|
74 |
|
75 private: // Data |
|
76 |
|
77 /** |
|
78 * |
|
79 */ |
|
80 MXIMPSrvMessage* iEventListenScout; |
|
81 |
|
82 /** |
|
83 * Buffer caching the prepared data |
|
84 */ |
|
85 HBufC8* iPreparedData; |
|
86 |
|
87 /** |
|
88 * Storage for client data. |
|
89 */ |
|
90 CXIMPPscContext* iClientData; |
|
91 }; |
|
92 |
|
93 #endif // XIMPSESSION_H__ |
|
94 |
|
95 |