activityfw/activitydatabase/hsactivitydbserver/inc/afobservertask.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 AFOBSERVERTASK_H
       
    18 #define AFOBSERVERTASK_H
       
    19 
       
    20 // INCLUDES
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "aftask.h"
       
    25 #include "aftaskstorage.h"
       
    26 
       
    27 class CAfObserverTask : public CAfTask
       
    28 {
       
    29 public:
       
    30     ~CAfObserverTask();
       
    31 
       
    32     static void ExecuteLD(MAfTaskStorage& globalStorage, 
       
    33                           MAfTaskStorage& localStorage,
       
    34                           const RMessage2& msg);
       
    35 
       
    36     const TDesC8& Data() const;
       
    37 
       
    38     void BroadcastReceivedL(const RMessage2& );
       
    39 
       
    40 private:
       
    41     CAfObserverTask(MAfTaskStorage& globalStorage, 
       
    42                     MAfTaskStorage& localStorage,
       
    43                     const RMessage2& msg);
       
    44 
       
    45     void WriteResponseL();
       
    46 
       
    47     TBool IsSessionTask(const CSession2* session);
       
    48 
       
    49 private:
       
    50     MAfTaskStorage& mGlobalStorage;
       
    51     MAfTaskStorage& mLocalStorage;
       
    52     const RMessage2 mMsg;
       
    53     RBuf8 mData;
       
    54 };
       
    55 
       
    56 #endif // AFOBSERVERTASK_H