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