activityfw/activitydatabase/hsactivitydbserver/inc/afobservertask.h
author hgs
Fri, 11 Jun 2010 16:13:51 +0300
changeset 98 d2f833ab7940
permissions -rw-r--r--
201023
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
98
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
#ifndef AFOBSERVERTASK_H
hgs
parents:
diff changeset
    18
#define AFOBSERVERTASK_H
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
// INCLUDES
hgs
parents:
diff changeset
    21
#include <e32std.h>
hgs
parents:
diff changeset
    22
#include <e32base.h>
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
#include "aftask.h"
hgs
parents:
diff changeset
    25
#include "aftaskstorage.h"
hgs
parents:
diff changeset
    26
hgs
parents:
diff changeset
    27
class CAfObserverTask : public CAfTask
hgs
parents:
diff changeset
    28
{
hgs
parents:
diff changeset
    29
public:
hgs
parents:
diff changeset
    30
    ~CAfObserverTask();
hgs
parents:
diff changeset
    31
hgs
parents:
diff changeset
    32
    static void ExecuteLD(MAfTaskStorage& globalStorage, 
hgs
parents:
diff changeset
    33
                          MAfTaskStorage& localStorage,
hgs
parents:
diff changeset
    34
                          const RMessage2& msg);
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
    const TDesC8& Data() const;
hgs
parents:
diff changeset
    37
hgs
parents:
diff changeset
    38
    void BroadcastReceivedL(const RMessage2& );
hgs
parents:
diff changeset
    39
hgs
parents:
diff changeset
    40
private:
hgs
parents:
diff changeset
    41
    CAfObserverTask(MAfTaskStorage& globalStorage, 
hgs
parents:
diff changeset
    42
                    MAfTaskStorage& localStorage,
hgs
parents:
diff changeset
    43
                    const RMessage2& msg);
hgs
parents:
diff changeset
    44
hgs
parents:
diff changeset
    45
    void WriteResponseL();
hgs
parents:
diff changeset
    46
hgs
parents:
diff changeset
    47
    TBool IsSessionTask(const CSession2* session);
hgs
parents:
diff changeset
    48
hgs
parents:
diff changeset
    49
private:
hgs
parents:
diff changeset
    50
    MAfTaskStorage& mGlobalStorage;
hgs
parents:
diff changeset
    51
    MAfTaskStorage& mLocalStorage;
hgs
parents:
diff changeset
    52
    const RMessage2 mMsg;
hgs
parents:
diff changeset
    53
    RBuf8 mData;
hgs
parents:
diff changeset
    54
};
hgs
parents:
diff changeset
    55
hgs
parents:
diff changeset
    56
#endif // AFOBSERVERTASK_H