1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 #ifndef AFSTORAGESYNCTASK_H |
|
18 #define AFSTORAGESYNCTASK_H |
|
19 |
|
20 // INCLUDES |
|
21 #include <e32std.h> |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "aftask.h" |
|
25 #include "afstorage.h" |
|
26 #include "aftaskstorage.h" |
|
27 |
|
28 class CAfEntry; |
|
29 /** |
|
30 * CActivityStorageSyncTask |
|
31 * |
|
32 */ |
|
33 class AfStorageSyncTask |
|
34 { |
|
35 public: |
|
36 static void ExecuteL(MAfTaskStorage& observers, |
|
37 CAfStorage& dataStorage, |
|
38 const RMessage2& msg); |
|
39 |
|
40 private: |
|
41 static void AddActivityL(CAfStorage& dataStorage, |
|
42 const RMessage2& msg); |
|
43 |
|
44 static void UpdateActivityL(CAfStorage& dataStorage, |
|
45 const RMessage2& msg); |
|
46 |
|
47 static void DeleteActivityL(CAfStorage& dataStorage, |
|
48 const RMessage2& msg); |
|
49 |
|
50 static void DeleteApplicationActivitiesL(CAfStorage& dataStorage, |
|
51 const RMessage2& msg); |
|
52 |
|
53 static void NotifyChangeL(MAfTaskStorage& observers, |
|
54 const RMessage2& msg); |
|
55 |
|
56 static void ReadEntryL(CAfEntry& entry, const RMessage2& msg); |
|
57 |
|
58 static void CreateThumbnailL(const TDesC &path, TInt hdl); |
|
59 |
|
60 static void ThumbnailPathL(RBuf &dst, |
|
61 RFs& fileSystem, |
|
62 TInt uid, |
|
63 const TDesC &activityName); |
|
64 |
|
65 static HBufC8* Md5HexDigestL(const TDes8 &string); |
|
66 |
|
67 }; |
|
68 |
|
69 #endif // AFSTORAGESYNCTASK_H |
|