equal
deleted
inserted
replaced
19 #define GOOMWINDOWGROUPLIST_H_ |
19 #define GOOMWINDOWGROUPLIST_H_ |
20 |
20 |
21 #include <e32base.h> |
21 #include <e32base.h> |
22 #include <e32hashtab.h> |
22 #include <e32hashtab.h> |
23 #include <w32std.h> |
23 #include <w32std.h> |
|
24 #include <goommonitorplugin.hrh> |
|
25 #include "alfdecoderserverclient.h" |
24 |
26 |
25 class CApaWindowGroupName; |
27 class CApaWindowGroupName; |
26 |
28 |
27 /** |
29 /** |
28 * This class holds a snapshot of the window group tree. |
30 * This class holds a snapshot of the window group tree. |
74 TInt GetIndexFromAppId(TUint aAppId) const; |
76 TInt GetIndexFromAppId(TUint aAppId) const; |
75 TInt GetIndexFromWgId(TInt aWgId) const; |
77 TInt GetIndexFromWgId(TInt aWgId) const; |
76 |
78 |
77 // Find all the windowgroups in the list that matches application id for this window group |
79 // Find all the windowgroups in the list that matches application id for this window group |
78 void GetAllWgIdsMatchingAppId(TInt aWgId, RArray<TInt> & WgIdList) const; |
80 void GetAllWgIdsMatchingAppId(TInt aWgId, RArray<TInt> & WgIdList) const; |
|
81 |
|
82 TInt LowOnMemWgs(TInt aIndex) |
|
83 { |
|
84 if (aIndex >= iLowOnMemWgs.Count() || aIndex < 0) |
|
85 { |
|
86 return KErrNotFound; |
|
87 } |
|
88 else |
|
89 { |
|
90 return iLowOnMemWgs[aIndex]; |
|
91 } |
|
92 } |
|
93 |
79 |
94 |
80 |
95 |
81 private: |
96 private: |
82 |
97 |
83 void CollapseWindowGroupTree(); |
98 void CollapseWindowGroupTree(RArray<TInt>& aWgsHavingSurfaces); |
84 |
99 |
85 void RemovePropertiesForClosedWindowsL(); |
100 void RemovePropertiesForClosedWindowsL(); |
86 |
101 |
87 TInt FindParentIdL(TInt aWgId); |
102 TInt FindParentIdL(TInt aWgId); |
88 |
103 |
115 |
130 |
116 RWsSession& iWs; |
131 RWsSession& iWs; |
117 |
132 |
118 CApaWindowGroupName* iWgName; |
133 CApaWindowGroupName* iWgName; |
119 HBufC* iWgNameBuf; // owned by iWgName |
134 HBufC* iWgNameBuf; // owned by iWgName |
|
135 RArray<TInt> iLowOnMemWgs; |
|
136 RAlfBridgerClient iAlfClient; |
120 }; |
137 }; |
121 |
138 |
122 #include "goomwindowgrouplist.inl" |
139 #include "goomwindowgrouplist.inl" |
123 |
140 |
124 #endif /*GOOMWINDOWGROUPLIST_H_*/ |
141 #endif /*GOOMWINDOWGROUPLIST_H_*/ |