1 /* |
|
2 * ============================================================================ |
|
3 * Name : hgfshiddenapplist.h |
|
4 * Part of : Hg Teleport / Fast Swap module |
|
5 * Description : Class that checks if chosen applications should be hidden |
|
6 * from the task swap. |
|
7 * Version : %version: 1 % |
|
8 * |
|
9 * Copyright 2008 Nokia. All rights reserved. |
|
10 * This material, including documentation and any related computer |
|
11 * programs, is protected by copyright controlled by Nokia. All |
|
12 * rights are reserved. Copying, including reproducing, storing, |
|
13 * adapting or translating, any or all of this material requires the |
|
14 * prior written consent of Nokia. This material also contains |
|
15 * confidential information which may not be disclosed to others |
|
16 * without the prior written consent of Nokia. |
|
17 * ============================================================================ |
|
18 */ |
|
19 |
|
20 #ifndef HGFSHIDDENAPPLIST_H_ |
|
21 #define HGFSHIDDENAPPLIST_H_ |
|
22 |
|
23 #include <e32base.h> // For CActive, link against: euser.lib |
|
24 #include <e32std.h> // For RTimer, link against: euser.lib |
|
25 #include <e32property.h>// For RProperty |
|
26 #include "hgfswobservers.h" |
|
27 |
|
28 //FORWARD DECLARATIONS |
|
29 class RWsSession; |
|
30 |
|
31 /** |
|
32 * This class is handling the application which are hidden |
|
33 * from fast swap feature. |
|
34 */ |
|
35 NONSHARABLE_CLASS( CHgFsHiddenAppList ) : public CActive |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Symbian based two phased constructor. |
|
41 */ |
|
42 static CHgFsHiddenAppList* NewL( MHgFsHiddenAppListObserver& aObserver ); |
|
43 |
|
44 /** |
|
45 * Symbian based two phased constructor. |
|
46 */ |
|
47 static CHgFsHiddenAppList* NewLC( MHgFsHiddenAppListObserver& aObserver ); |
|
48 |
|
49 /** |
|
50 * Destructor |
|
51 */ |
|
52 ~CHgFsHiddenAppList(); |
|
53 |
|
54 /** |
|
55 * Whether application is hidden from FSW. |
|
56 */ |
|
57 TBool IsHiddenL( TUid aAppUid, const RWsSession& aWsSession, TInt aWgId ); |
|
58 |
|
59 /** |
|
60 * Updating application list |
|
61 */ |
|
62 void UpdateListL(); |
|
63 |
|
64 protected: |
|
65 /** |
|
66 * Default constructor. |
|
67 */ |
|
68 CHgFsHiddenAppList( MHgFsHiddenAppListObserver& aObserver ); |
|
69 |
|
70 /** |
|
71 * Second phase construction |
|
72 */ |
|
73 void ConstructL(); |
|
74 |
|
75 /** |
|
76 * Reset application array list. |
|
77 */ |
|
78 void ResetArray(); |
|
79 |
|
80 /** |
|
81 * Derived from CActive |
|
82 */ |
|
83 virtual void DoCancel(); |
|
84 |
|
85 /** |
|
86 * Derived from CActive |
|
87 */ |
|
88 virtual void RunL(); |
|
89 |
|
90 private: |
|
91 /** |
|
92 * Property reader for reading Hiden app list from FSW |
|
93 */ |
|
94 RProperty iProperty; |
|
95 |
|
96 /** |
|
97 * Hidden App list |
|
98 */ |
|
99 CArrayFixFlat<TInt>* iHiddenAppList; |
|
100 |
|
101 /** |
|
102 * hidden apps list observer |
|
103 */ |
|
104 MHgFsHiddenAppListObserver& iObserver; |
|
105 }; |
|
106 |
|
107 #endif /*HGFSHIDDENAPPLIST_H_*/ |
|