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 GOOMRUNPLUGINCONFIGINL_H_
|
|
20 |
#define GOOMRUNPLUGINCONFIGINL_H_
|
|
21 |
|
|
22 |
|
|
23 |
// Returns ETrue if a wait period has been explicitly configured for this plugin
|
|
24 |
inline TBool CGOomRunPluginConfig::WaitAfterPluginDefined()
|
|
25 |
{
|
|
26 |
return iWaitAfterPluginDefined;
|
|
27 |
}
|
|
28 |
|
|
29 |
// Returns the configured wait after the plugin has been called
|
|
30 |
inline TInt CGOomRunPluginConfig::WaitAfterPlugin()
|
|
31 |
{
|
|
32 |
return iWaitAfterPlugin;
|
|
33 |
}
|
|
34 |
|
|
35 |
// Set the time to wait
|
|
36 |
inline void CGOomRunPluginConfig::SetWaitAfterPlugin(TInt aMillisecondsToWait)
|
|
37 |
{
|
|
38 |
iWaitAfterPluginDefined = ETrue;
|
|
39 |
iWaitAfterPlugin = aMillisecondsToWait;
|
|
40 |
}
|
|
41 |
|
|
42 |
|
|
43 |
inline void CGOomRunPluginConfig::SetTargetApp(TUint aTargetAppId)
|
|
44 |
{
|
|
45 |
iTargetAppId = aTargetAppId;
|
|
46 |
}
|
|
47 |
|
|
48 |
inline TUint CGOomRunPluginConfig::Id()
|
|
49 |
{
|
|
50 |
return iPluginId;
|
|
51 |
}
|
|
52 |
|
|
53 |
inline TGOomPluginType CGOomRunPluginConfig::PluginType()
|
|
54 |
{
|
|
55 |
return iPluginType;
|
|
56 |
}
|
|
57 |
|
|
58 |
inline TUint CGOomRunPluginConfig::TargetApp() const
|
|
59 |
{
|
|
60 |
return iTargetAppId;
|
|
61 |
}
|
|
62 |
|
|
63 |
inline void CGOomRunPluginConfig::SetSwRend(TBool aSwRend)
|
|
64 |
{
|
|
65 |
iSwRenderingSupported = aSwRend;
|
|
66 |
}
|
|
67 |
|
|
68 |
inline TBool CGOomRunPluginConfig::IsSwRendSupported()
|
|
69 |
{
|
|
70 |
return iSwRenderingSupported;
|
|
71 |
}
|
|
72 |
#endif /*GOOMRUNPLUGINCONFIGINL_H_*/
|