|
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 |
|
37 void HandleWindowGroupChanged(MTsResourceManager &, |
|
38 const TArray<RWsSession::TWindowGroupChainInfo> &); |
|
39 |
|
40 void HandleWindowGroupChangedL(MTsResourceManager &, |
|
41 const TArray<RWsSession::TWindowGroupChainInfo> &); |
|
42 TInt homescreenOffsetL(MTsResourceManager &, |
|
43 const TArray<RWsSession::TWindowGroupChainInfo> &) const; |
|
44 |
|
45 TInt parentOffsetL(TInt, const TArray<RWsSession::TWindowGroupChainInfo> &) const; |
|
46 |
|
47 inline TBool isEmbededApp(const RWsSession::TWindowGroupChainInfo&) const; |
|
48 |
|
49 TUid getUidFromWindowGroupL(MTsResourceManager &resources, TInt windowGroupId) const; |
|
50 |
|
51 private: |
|
52 CTsBacksteppingFilter *mFilter; |
|
53 }; |
|
54 |
|
55 #endif // __CBACKSTEPPING_H |