equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
42 |
42 |
43 ~COomRunPlugin(); |
43 ~COomRunPlugin(); |
44 |
44 |
45 // Run the OOM plugin in order to free memory |
45 // Run the OOM plugin in order to free memory |
46 // Call the COomAction::MemoryFreed when it is done |
46 // Call the COomAction::MemoryFreed when it is done |
47 virtual void FreeMemory(TInt aBytesRequested); |
47 virtual void FreeMemory(TInt aBytesRequested, TBool aIsDataPaged); |
48 |
48 |
49 // Call the memory good function on the plugin but... |
49 // Call the memory good function on the plugin but... |
50 // only if there is an outstanding FreeMemory request |
50 // only if there is an outstanding FreeMemory request |
51 void MemoryGood(); |
51 void MemoryGood(); |
52 |
52 |
61 |
61 |
62 inline COomActionConfig& GetConfig(); |
62 inline COomActionConfig& GetConfig(); |
63 |
63 |
64 private: |
64 private: |
65 |
65 |
66 COomRunPlugin(TUint aPluginId, COomRunPluginConfig& aConfig, MOomActionObserver& aStateChangeObserver, COomMonitorPlugin& aPlugin, COomMonitorPluginV2* aV2Plugin); |
66 COomRunPlugin(TUint aPluginId, COomRunPluginConfig& aConfig, |
|
67 MOomActionObserver& aStateChangeObserver, |
|
68 COomMonitorPlugin& aPlugin, COomMonitorPluginV2* aV2Plugin); |
67 |
69 |
|
70 /** |
|
71 * Function: IsAppDataPaged |
|
72 * Checks whether the application which implements the given |
|
73 * COomMonitorPlugin is data paged |
|
74 * @param instance of the monitor plugin. |
|
75 * @return ETrue if the application is data paged, else EFalse; |
|
76 */ |
|
77 TBool IsAppDataPaged( COomMonitorPlugin& aPlugin ) const; |
|
78 |
|
79 private: |
68 TUint iPluginId; |
80 TUint iPluginId; |
69 |
81 |
70 COomMonitorPlugin& iPlugin; |
82 COomMonitorPlugin& iPlugin; |
71 |
83 |
72 COomRunPluginConfig& iConfig; |
84 COomRunPluginConfig& iConfig; |