1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef CMEDIASYNCSERVERSESSION_H |
|
23 #define CMEDIASYNCSERVERSESSION_H |
|
24 |
|
25 #include <e32base.h> |
|
26 #include "cmediasyncserverdef.h" |
|
27 |
|
28 class CMediaSyncServer; |
|
29 |
|
30 class CMediaSyncServerSession : public CSession2 |
|
31 { |
|
32 public: |
|
33 |
|
34 CMediaSyncServerSession(CMediaSyncServer* aServer); |
|
35 ~CMediaSyncServerSession(); |
|
36 |
|
37 public: // From CSession2 |
|
38 void ServiceL(const RMessage2& aMessage); |
|
39 |
|
40 private: |
|
41 |
|
42 void DispatchMessageL(const RMessage2& aMessage); |
|
43 |
|
44 TInt GetChangesL(const RMessage2& aMessage); |
|
45 |
|
46 TInt GetFullSyncFlag(const RMessage2& aMessage); |
|
47 |
|
48 void AllocateGlobalSharedHeapL(const RMessage2& aMessage); |
|
49 |
|
50 private: //not have ownership |
|
51 /** |
|
52 FLOGGER debug trace member variable. |
|
53 */ |
|
54 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
55 |
|
56 CMediaSyncServer* iServer; |
|
57 |
|
58 /** |
|
59 * Indicate wheter global shared heap has been allocated. |
|
60 */ |
|
61 TBool iAllocated; |
|
62 |
|
63 /** Global shared heap for passing large amounts of data between client and server |
|
64 without having to use IPC */ |
|
65 RChunk iGlobalSharedHeap; |
|
66 }; |
|
67 |
|
68 |
|
69 #endif /*CMEDIASYNCSERVERSESSION_H*/ |
|