tstaskmonitor/client/s60/inc/tstaskmonitorclientimpl.h
changeset 80 397d00875918
child 83 156f692b1687
equal deleted inserted replaced
73:4bc7b118b3df 80:397d00875918
       
     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 TSTASKMONITORCLIENTIMPL_H
       
    18 #define TSTASKMONITORCLIENTIMPL_H
       
    19 
       
    20 #include <e32base.h>
       
    21 
       
    22 #include "tsfswentry.h"
       
    23 #include "tstaskmonitorsession.h"
       
    24 
       
    25 class MTsTaskMonitorObserver;
       
    26 
       
    27 NONSHARABLE_CLASS( CTsTaskMonitorClientImpl ) : public CActive
       
    28 {
       
    29 public:
       
    30     static CTsTaskMonitorClientImpl* NewL();
       
    31     static CTsTaskMonitorClientImpl* NewLC();
       
    32     ~CTsTaskMonitorClientImpl();
       
    33 
       
    34 public:
       
    35     void TaskListL(RTsFswArray& tasks);
       
    36 
       
    37     void Subscribe(MTsTaskMonitorObserver& aObserver);
       
    38     void CancelSubscribe();
       
    39 
       
    40 private:
       
    41     void RunL();
       
    42     void DoCancel();
       
    43 
       
    44 private:
       
    45     CTsTaskMonitorClientImpl();
       
    46     void ConstructL();
       
    47 
       
    48     RTsTaskMonitorSession iSession;
       
    49     MTsTaskMonitorObserver* iObserver; // not owned
       
    50 };
       
    51 
       
    52 #endif  // TSTASKMONITORCLIENTIMPL_H