taskswitcher/backstepping/inc/tsbackstepping.h
changeset 126 efda7c0771b9
parent 125 26079c1bb561
child 127 7b66bc3c6dc9
equal deleted inserted replaced
125:26079c1bb561 126:efda7c0771b9
     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 __CBACKSTEPPING_H
       
    19 #define __CBACKSTEPPING_H
       
    20 
       
    21 #include <w32std.h>
       
    22 #include "tswindowgroupsobserverbase.h"
       
    23 
       
    24 class CTsBacksteppingFilter;
       
    25 
       
    26 NONSHARABLE_CLASS(CTsBackstepping) : public CTsWindowGroupsObserverBase
       
    27 {
       
    28 public:
       
    29     static CTsBackstepping* NewL( MTsWindowGroupsMonitor& );
       
    30     static CTsBackstepping* NewLC( MTsWindowGroupsMonitor& );
       
    31     virtual ~CTsBackstepping();
       
    32 
       
    33 private:
       
    34     CTsBackstepping( MTsWindowGroupsMonitor& );
       
    35     void ConstructL();
       
    36     void HandleWindowGroupChanged( MTsResourceManager &rsc, 
       
    37                                    const MTsRunningApplicationStorage& aStorage );
       
    38     void HandleWindowGroupChangedL( MTsResourceManager &rsc, 
       
    39                                     const MTsRunningApplicationStorage& aStorage );
       
    40     TInt HomescreenOffsetL( const MTsRunningApplicationStorage& aStorage )const;
       
    41     void SwitchToIdleStateL( MTsResourceManager& aResources, TBool aIsFirst );
       
    42 
       
    43 private:
       
    44     CTsBacksteppingFilter *iFilter;
       
    45     TBool iHsWasFirst;
       
    46 
       
    47 };
       
    48 
       
    49 #endif // __CBACKSTEPPING_H