activityfw/activitydatabase/hsactivitydbserver/inc/afstorageasynctask.h
changeset 102 8b8b34fa9751
parent 100 0920c6a9b6c8
child 106 e78d6e055a5b
equal deleted inserted replaced
100:0920c6a9b6c8 102:8b8b34fa9751
     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     void ExternalizeL(const CAfEntry &entry);
       
    59 
       
    60 private:
       
    61     RBuf8 mExternalizedData;
       
    62     RPointerArray<CAfEntry> mInternalizedData;
       
    63 };
       
    64 
       
    65 #endif // AFSTORAGEASYNCTASK_H