taskswitcher/backstepping/inc/tsbackstepping.h
changeset 121 0b3699f6c654
child 119 50e220be30d1
equal deleted inserted replaced
115:3ab5c078b490 121:0b3699f6c654
       
     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 <tswindowgroupsobserver.h>
       
    23 
       
    24 class CTsBacksteppingFilter;
       
    25 
       
    26 NONSHARABLE_CLASS(CTsBackstepping) : public CTsWindowGroupsObserver
       
    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( 
       
    37                             MTsResourceManager&, 
       
    38                             const TArray<RWsSession::TWindowGroupChainInfo>& );
       
    39     void HandleWindowGroupChangedL( 
       
    40                         MTsResourceManager&, 
       
    41                         const TArray<RWsSession::TWindowGroupChainInfo>& );
       
    42     TInt HomescreenOffsetL( 
       
    43                         MTsResourceManager&, 
       
    44                         const TArray<RWsSession::TWindowGroupChainInfo>& )const;
       
    45     TInt ParentOffsetL( TInt, 
       
    46                         const TArray<RWsSession::TWindowGroupChainInfo>& )const;
       
    47     inline TBool IsEmbededApp( const RWsSession::TWindowGroupChainInfo& ) const;
       
    48     TUid GetUidFromWindowGroupL(MTsResourceManager &aResources, TInt aWindowGroupId) const;
       
    49 
       
    50 private:
       
    51     CTsBacksteppingFilter *iFilter;
       
    52 
       
    53 };
       
    54 
       
    55 #endif // __CBACKSTEPPING_H