activityfw/storage/server/inc/afstorageasynctask.h
changeset 104 9b022b1f357c
child 119 50e220be30d1
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 AFSTORAGEASYNCTASK_H
       
    18 #define AFSTORAGEASYNCTASK_H
       
    19 
       
    20 // INCLUDES
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "aftask.h"
       
    25 #include "aftaskstorage.h"
       
    26 #include "afstorage.h"
       
    27 
       
    28 class CAfStorageAsyncTask : public CAfTask
       
    29 {
       
    30 public:
       
    31     ~CAfStorageAsyncTask();
       
    32 
       
    33     static void ExecuteLD(MAfTaskStorage& taskStorage, 
       
    34                           CAfStorage& dataStorage, 
       
    35                           const RMessage2& msg);
       
    36 
       
    37     const TDesC8& Data() const;
       
    38 
       
    39     void BroadcastReceivedL(const RMessage2 &);
       
    40 
       
    41 private:
       
    42     CAfStorageAsyncTask();
       
    43 
       
    44     void ExecuteL(CAfStorage& dataStorage, const RMessage2& msg);
       
    45 
       
    46     void AllActivitiesL(CAfStorage& dataStorage, const RMessage2& msg);
       
    47 
       
    48     void ApplicationActivitiesL(CAfStorage& dataStorage, const RMessage2& msg);
       
    49 
       
    50     void ApplicationActivityL(CAfStorage& dataStorage, const RMessage2& msg);
       
    51 
       
    52     void WriteResponseL(const RMessage2& msg);
       
    53 
       
    54     TBool IsSessionTask(const CSession2* session);
       
    55 
       
    56     void ExternalizeL();
       
    57 
       
    58 private:
       
    59     RBuf8 mExternalizedData;
       
    60     RPointerArray<CAfEntry> mInternalizedData;
       
    61 };
       
    62 
       
    63 #endif // AFSTORAGEASYNCTASK_H