23 class CTsRunningAppStorage: public CBase, |
23 class CTsRunningAppStorage: public CBase, |
24 public MTsRunningApplicationStorage |
24 public MTsRunningApplicationStorage |
25 { |
25 { |
26 public: |
26 public: |
27 static CTsRunningAppStorage* NewLC(); |
27 static CTsRunningAppStorage* NewLC(); |
|
28 static CTsRunningAppStorage* NewL(); |
28 ~CTsRunningAppStorage(); |
29 ~CTsRunningAppStorage(); |
29 void HandleWindowGroupChanged( |
30 void HandleWindowGroupChanged( |
30 MTsResourceManager &aResources, |
31 MTsResourceManager &aResources, |
31 const TArray<RWsSession::TWindowGroupChainInfo> & aWindowGroups ); |
32 const TArray<RWsSession::TWindowGroupChainInfo> & aWindowGroups ); |
32 void HandleWindowGroupChanged( |
33 void HandleWindowGroupChanged( |
33 MTsResourceManager &aResources, |
34 MTsResourceManager &aResources, |
34 const TArray<RWsSession::TWindowGroupChainInfo>& aWindowGroups, |
35 const TArray<RWsSession::TWindowGroupChainInfo>& aWindowGroups, |
35 const TArray<RWsSession::TWindowGroupChainInfo>& aFilteredWindowGroups); |
36 const TArray<RWsSession::TWindowGroupChainInfo>& aFilteredWindowGroups); |
36 public: |
37 public: |
37 const MTsRunningApplication& operator[] (TInt aOffset) const; |
38 MTsRunningApplication& operator[] (TInt aOffset) const; |
38 TInt Count() const; |
39 TInt Count() const; |
39 TInt ParentIndex( const MTsRunningApplication& aRunningApp ) const; |
40 TInt ParentIndex( const MTsRunningApplication& aRunningApp ) const; |
40 TArray<TInt> BlockedWindowGroups() const; |
41 TArray<TInt> BlockedWindowGroups() const; |
|
42 TInt GenerateKey( TTsEntryKey& aReturnKey, TInt aWindowGroupId) const; |
41 |
43 |
42 private: |
44 private: |
43 TInt ParentIndex( TInt aOffset ) const; |
45 TInt ParentIndex( TInt aOffset ) const; |
44 TInt Find(TInt aWindowGroupId, TInt aOffset =0) const; |
46 TInt Find(TInt aWindowGroupId, TInt aOffset =0) const; |
|
47 TInt GenerateKey( TTsEntryKey& aReturnKey, |
|
48 TInt aWindowGroupId, |
|
49 TInt aOffset) const; |
45 |
50 |
46 private: |
51 private: |
47 CTsRunningAppStorage(); |
52 CTsRunningAppStorage(); |
48 |
53 |
49 private: |
54 private: |
50 RPointerArray<CTsRunningApp> iRunningApps; |
55 CArrayPtr<CTsRunningApp> *iRunningApps; |
51 RArray<TInt> iBlockedWindowGroups; |
56 RArray<TInt> iBlockedWindowGroups; |
52 |
57 |
53 }; |
58 }; |
54 #endif//TSREUNNINGAPPSTORAGEIMP_H |
59 #endif//TSREUNNINGAPPSTORAGEIMP_H |