taskswitcher/client/s60/inc/tstaskmonitorclient.h
changeset 116 305818acdca4
equal deleted inserted replaced
112:dbfb5e38438b 116:305818acdca4
       
     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 TSTASKMONITORCLIENT_H
       
    18 #define TSTASKMONITORCLIENT_H
       
    19 
       
    20 #include <e32base.h>
       
    21 
       
    22 class MTsTaskMonitorObserver;
       
    23 class CTsTaskMonitorClientImpl;
       
    24 
       
    25 NONSHARABLE_CLASS( CTsTaskMonitorClient ) : public CBase
       
    26 {
       
    27 public:
       
    28     static CTsTaskMonitorClient* NewL();
       
    29     static CTsTaskMonitorClient* NewLC();
       
    30     ~CTsTaskMonitorClient();
       
    31 
       
    32 public:
       
    33     HBufC8* TasksContentLC();
       
    34     void Subscribe(MTsTaskMonitorObserver& aObserver);
       
    35     void CancelSubscribe();
       
    36     void OpenTask(const TDesC8 &key);
       
    37     void CloseTask(const TDesC8 &key);
       
    38 
       
    39 private:
       
    40     CTsTaskMonitorClient();
       
    41     void ConstructL();
       
    42 
       
    43 private:
       
    44     CTsTaskMonitorClientImpl* iImpl;
       
    45 };
       
    46 
       
    47 #endif  // TSTASKMONITORCLIENT_H