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 #ifndef CMEDIASYNCSERVER_H |
|
22 #define CMEDIASYNCSERVER_H |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <e32std.h> |
|
26 |
|
27 #include "cmediasyncserverdef.h" |
|
28 |
|
29 class RFs; |
|
30 class CMediaSyncObserver; |
|
31 class CMediaSyncDatabase; |
|
32 |
|
33 class CMediaSyncServer : public CPolicyServer |
|
34 { |
|
35 public: |
|
36 |
|
37 ~CMediaSyncServer(); |
|
38 |
|
39 static void RunServerL(); |
|
40 static CMediaSyncServer* NewLC(RFs& aFs); |
|
41 |
|
42 CMediaSyncObserver* MediaSyncObserver() const; |
|
43 CMediaSyncDatabase* MediaSyncDatabase() const; |
|
44 // void AddSession(); |
|
45 // void DropSession(); |
|
46 |
|
47 TBool NeedFullSync(); |
|
48 void ClearFullSyncFlag(); |
|
49 |
|
50 private: // From CPolicyServer |
|
51 |
|
52 CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const; |
|
53 |
|
54 private: |
|
55 |
|
56 CMediaSyncServer(); |
|
57 void ConstructL(RFs& aFs); |
|
58 |
|
59 private: //has ownership |
|
60 /** |
|
61 FLOGGER debug trace member variable. |
|
62 */ |
|
63 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
64 |
|
65 CMediaSyncDatabase* iDb; |
|
66 CMediaSyncObserver* iObserver; |
|
67 TBool iNeedFullSync; |
|
68 }; |
|
69 |
|
70 #endif /*CMEDIASYNCSERVER_H*/ |
|