tstaskmonitor/server/inc/hsdataobserver.h
changeset 83 156f692b1687
parent 80 397d00875918
child 103 b99b84bcd2d1
equal deleted inserted replaced
80:397d00875918 83:156f692b1687
     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 DATAOBSERVER_H
       
    18 #define DATAOBSERVER_H
       
    19 
       
    20 #include <e32base.h>
       
    21 
       
    22 class MHsDataObserver {
       
    23 public:
       
    24     virtual void DataChanged() =0;
       
    25 };
       
    26 
       
    27 class CHsDataObserver: public CBase,
       
    28                        public MHsDataObserver
       
    29 {
       
    30 public:
       
    31     virtual void Cancel(const RMessage2& reason) =0;
       
    32 };
       
    33 
       
    34 class MHsDataObserverStorage
       
    35 {
       
    36 public:
       
    37     virtual void PushL(CHsDataObserver*) =0;
       
    38     virtual void Pop(CHsDataObserver*) =0;
       
    39     virtual void Cancel(const RMessage2& reason) =0;
       
    40 };
       
    41 
       
    42 #endif //DATAOBSERVER_H