equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 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 Out of Memory Monitor. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef OOMCONFIGINL_H_ |
|
20 #define OOMCONFIGINL_H_ |
|
21 |
|
22 inline COomGlobalConfig& COomConfig::GlobalConfig() |
|
23 { |
|
24 return iGlobalConfig; |
|
25 } |
|
26 |
|
27 void COomConfig::SetDefaultLowRamThreshold(TInt aLowRamThreshold) |
|
28 { |
|
29 iGlobalConfig.iLowRamThreshold = aLowRamThreshold; |
|
30 } |
|
31 |
|
32 void COomConfig::SetDefaultGoodRamThreshold(TInt aGoodRamThreshold) |
|
33 { |
|
34 iGlobalConfig.iGoodRamThreshold = aGoodRamThreshold; |
|
35 } |
|
36 |
|
37 void COomConfig::SetMaxCloseAppBatch(TUint aMaxCloseAppBatch) |
|
38 { |
|
39 iGlobalConfig.iMaxCloseAppBatch = aMaxCloseAppBatch; |
|
40 } |
|
41 void COomConfig::SetDefaultWaitAfterPlugin(TInt aMilliseconds) |
|
42 { |
|
43 iGlobalConfig.iDefaultWaitAfterPlugin = aMilliseconds; |
|
44 } |
|
45 |
|
46 void COomConfig::SetMaxAppExitTime(TInt aMilliseconds) |
|
47 { |
|
48 iGlobalConfig.iMaxAppExitTime = aMilliseconds; |
|
49 } |
|
50 |
|
51 #endif /*OOMCONFIGINL_H_*/ |