64
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 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: Configuration representation classes for Graphics Out of Memory Monitor
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef GOOMCLOSEAPPCONFIG_
|
|
20 |
#define GOOMCLOSEAPPCONFIG_
|
|
21 |
|
|
22 |
#include "goomactionconfig.h"
|
|
23 |
|
|
24 |
/*
|
|
25 |
*
|
|
26 |
*/
|
|
27 |
/**
|
|
28 |
* The GOOM action of closing an application in order to free up memory.
|
|
29 |
*
|
|
30 |
* @lib goommonitor.lib
|
|
31 |
* @since S60 v5.0
|
|
32 |
*/
|
|
33 |
NONSHARABLE_CLASS(CGOomCloseAppConfig) : public CGOomActionConfig
|
|
34 |
{
|
|
35 |
public:
|
|
36 |
/**
|
|
37 |
* Two-phased constructor.
|
|
38 |
* @param aId The Uid of the applicaton
|
|
39 |
*/
|
|
40 |
static CGOomCloseAppConfig* NewL(TInt32 aId);
|
|
41 |
|
|
42 |
~CGOomCloseAppConfig();
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Calculates the priority of a close app action, based on its position on the window group list
|
|
46 |
*
|
|
47 |
* @param aWindowGroupList a fully constructed, collapsed window group list
|
|
48 |
* @param aAppIndexInWindowGroup the position in the window group list
|
|
49 |
*/
|
|
50 |
inline TUint CalculateCloseAppPriority(const CGOomWindowGroupList& aWindowGroupList, TUint aAppIndexInWindowGroup);
|
|
51 |
|
|
52 |
TInt iCloseTimeout;
|
|
53 |
TInt iWaitAfterClose;
|
|
54 |
|
|
55 |
private:
|
|
56 |
|
|
57 |
CGOomCloseAppConfig(TInt32 aId);
|
|
58 |
};
|
|
59 |
|
|
60 |
#include "goomcloseappconfig.inl"
|
|
61 |
|
|
62 |
#endif /*GOOMCLOSEAPPCONFIG_*/
|