sysresmonitoring/oommonitor/inc/oomrunpluginconfig.inl
branchRCL_3
changeset 1 0fdb7f6b0309
child 19 924385140d98
equal deleted inserted replaced
0:2e3d3ce01487 1:0fdb7f6b0309
       
     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 OOMRUNPLUGINCONFIGINL_H_
       
    20 #define OOMRUNPLUGINCONFIGINL_H_
       
    21 
       
    22 
       
    23 // Returns ETrue if a wait period has been explicitly configured for this plugin
       
    24 inline TBool COomRunPluginConfig::WaitAfterPluginDefined() const
       
    25     {
       
    26     return iWaitAfterPluginDefined;
       
    27     }
       
    28 
       
    29 // Returns the configured wait after the plugin has been called
       
    30 inline TInt COomRunPluginConfig::WaitAfterPlugin() const
       
    31     {
       
    32     return iWaitAfterPlugin;
       
    33     }
       
    34 
       
    35 inline TBool COomRunPluginConfig::CallIfTargetAppNotRunning() const
       
    36     {
       
    37     return iCallIfTargetAppNotRunning;
       
    38     }
       
    39 
       
    40 // Set the time to wait 
       
    41 inline void COomRunPluginConfig::SetWaitAfterPlugin(TInt aMillisecondsToWait)
       
    42     {
       
    43     iWaitAfterPluginDefined = ETrue;
       
    44     iWaitAfterPlugin = aMillisecondsToWait;
       
    45     }
       
    46 
       
    47 inline void COomRunPluginConfig::SetCallIfTargetAppNotRunning(TBool aCallIfTargetAppNotRunning)
       
    48     {
       
    49     iCallIfTargetAppNotRunning = aCallIfTargetAppNotRunning;
       
    50     }
       
    51 
       
    52 inline void COomRunPluginConfig::SetTargetApp(TUint aTargetAppId)
       
    53     {
       
    54     iTargetAppId = aTargetAppId;
       
    55     }
       
    56 
       
    57 inline TUint COomRunPluginConfig::Id()
       
    58     {
       
    59     return  iPluginId;
       
    60     }
       
    61 
       
    62 inline TOomPluginType COomRunPluginConfig::PluginType()
       
    63     {
       
    64     return iPluginType;
       
    65     }
       
    66 
       
    67 inline TUint COomRunPluginConfig::TargetApp() const
       
    68     {
       
    69     return iTargetAppId;
       
    70     }
       
    71 
       
    72 #endif /*OOMRUNPLUGINCONFIGINL_H_*/