tstaskmonitor/backstepping/inc/tsbacksteppingactivation.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 
       
    18 #ifndef CTSBACKSTEPPINGWAITINGDLE_H
       
    19 #define CTSBACKSTEPPINGWAITINGDLE_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 class RProperty;
       
    24 class MTsWindowGroupsMonitor;
       
    25 
       
    26 
       
    27 NONSHARABLE_CLASS(CTsBacksteppingActivation) : public CActive
       
    28     {
       
    29 public:
       
    30     /**
       
    31     * Two-phased constructor.
       
    32     * @param aPriority priority for the timer.
       
    33     * @return new instance of CTeleWaitingIdle.
       
    34     */
       
    35     static CTsBacksteppingActivation* NewL(MTsWindowGroupsMonitor &monitor);
       
    36     /**
       
    37     * destructor
       
    38     */
       
    39     virtual ~CTsBacksteppingActivation();
       
    40 
       
    41 protected:
       
    42     /**
       
    43      * @see CActive.
       
    44      */
       
    45     void RunL();
       
    46     
       
    47     /**
       
    48      * @see CActive::RunError(TInt)
       
    49      */
       
    50     TInt RunError(TInt);
       
    51     
       
    52     /**
       
    53      * @see CActive.
       
    54      */
       
    55     void DoCancel();  
       
    56 
       
    57 private:
       
    58     /**
       
    59     * constructor.
       
    60     * @return new instance of CTeleWaitingIdle.
       
    61     */
       
    62     CTsBacksteppingActivation(MTsWindowGroupsMonitor &monitor);
       
    63     
       
    64     void ConstructL();
       
    65     
       
    66     void Subscribe();
       
    67 
       
    68 private:
       
    69     MTsWindowGroupsMonitor &mMonitor;
       
    70     
       
    71     // Central Repository.
       
    72     RProperty mProperty;
       
    73     
       
    74     // Backstepping engine. Own
       
    75     CBase* mEngine;
       
    76     };
       
    77 
       
    78 #endif /* CTSBACKSTEPPINGWAITINGDLE_H */