activityfw/storage/server/inc/afstoragesynctask.h
changeset 104 9b022b1f357c
child 107 b34d53f6acdf
equal deleted inserted replaced
103:b99b84bcd2d1 104:9b022b1f357c
       
     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 CreateThumbnailL(const TDesC &path, TInt hdl);
       
    57                                 
       
    58     static void DeleteActivityScreenshotL(CAfStorage& dataStorage,
       
    59                                 TInt uid,
       
    60                                 const TDesC &activityName);
       
    61     };
       
    62 
       
    63 #endif // AFSTORAGESYNCTASK_H