|
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 GOOMRUNPLUGINCONFIG_ |
|
20 #define GOOMRUNPLUGINCONFIG_ |
|
21 |
|
22 #include "goomactionconfig.h" |
|
23 |
|
24 enum TGOomPluginType |
|
25 { |
|
26 EGOomAppPlugin, |
|
27 EGOomSystemPlugin |
|
28 }; |
|
29 |
|
30 /* |
|
31 * The GOOM action of running an GOOM plug-in to free up memory. |
|
32 */ |
|
33 NONSHARABLE_CLASS(CGOomRunPluginConfig) : public CGOomActionConfig |
|
34 { |
|
35 public: |
|
36 static CGOomRunPluginConfig* NewL(TUint aPluginId, TGOomPluginType aPluginType); |
|
37 |
|
38 TUint CalculatePluginPriority(const CGOomWindowGroupList& aWindowGroupList); |
|
39 |
|
40 inline TUint Id(); |
|
41 |
|
42 inline void SetTargetApp(TUint aTargetAppId); |
|
43 |
|
44 inline TUint TargetApp() const; |
|
45 |
|
46 ~CGOomRunPluginConfig(); |
|
47 |
|
48 // Returns ETrue if a wait period has been explicitly configured for this plugin |
|
49 inline TBool WaitAfterPluginDefined(); |
|
50 |
|
51 // Returns the configured wait after the plugin has been called |
|
52 inline TInt WaitAfterPlugin(); |
|
53 |
|
54 // Set the time to wait |
|
55 inline void SetWaitAfterPlugin(TInt aMillisecondsToWait); |
|
56 |
|
57 inline TGOomPluginType PluginType(); |
|
58 |
|
59 private: |
|
60 CGOomRunPluginConfig(TUint aPluginId, TGOomPluginType aPluginType); |
|
61 |
|
62 TUint iPluginId; |
|
63 |
|
64 TUint iTargetAppId; |
|
65 |
|
66 TBool iWaitAfterPluginDefined; |
|
67 |
|
68 TInt iWaitAfterPlugin; // The period to wait after a plugin has been called |
|
69 |
|
70 TGOomPluginType iPluginType; |
|
71 }; |
|
72 |
|
73 #include "goomrunpluginconfig.inl" |
|
74 |
|
75 #endif /*GOOMRUNPLUGINCONFIG_*/ |