uiacceltk/hitchcock/goommonitor/src/goomactionref.cpp
branchRCL_3
changeset 15 cd0ae4656946
parent 3 d8a3531bc6b8
equal deleted inserted replaced
13:3a60ebea00d0 15:cd0ae4656946
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 #include "goomactionref.h"
    19 #include "goomactionref.h"
       
    20 #include "goomrunplugin.h"
    20 
    21 
    21 TActionRef::TActionRef(TActionType aType, TInt aPriority, TGOomSyncMode aSyncMode, TInt aRamEstimate, CGOomRunPlugin& aRunPlugin, TUint aWgIndexOfTargetApp)
    22 TActionRef::TActionRef(TActionType aType, TInt aPriority, TGOomSyncMode aSyncMode, TInt aRamEstimate, CGOomRunPlugin& aRunPlugin, TUint aWgIndexOfTargetApp)
    22     : iType(aType), iPriority(aPriority), iSyncMode(aSyncMode), iRamEstimate(aRamEstimate), iWgIndex(aWgIndexOfTargetApp), iRunPlugin(&aRunPlugin)
    23     : iType(aType), iPriority(aPriority), iSyncMode(aSyncMode), iRamEstimate(aRamEstimate), iWgIndex(aWgIndexOfTargetApp), iRunPlugin(&aRunPlugin), iAppPlugin(0)
    23     {   
    24     {   
    24     }
    25     }
    25 
    26 
    26 TActionRef::TActionRef(TActionType aType, TInt aPriority, TGOomSyncMode aSyncMode, TInt aRamEstimate, TInt aWgId, TUint aWgIndex, TInt aCloseTimeout, TInt aWaitAfterClose)
    27 TActionRef::TActionRef(TActionType aType, TInt aPriority, TGOomSyncMode aSyncMode, TInt aRamEstimate, TInt aWgId, TUint aWgIndex, TInt aCloseTimeout, TInt aWaitAfterClose)
    27 : iType(aType), iPriority(aPriority), iSyncMode(aSyncMode), iRamEstimate(aRamEstimate), iWgId(aWgId), iWgIndex(aWgIndex), iRunPlugin(NULL), iCloseTimeout(aCloseTimeout), iWaitAfterClose(aWaitAfterClose)
    28 : iType(aType), iPriority(aPriority), iSyncMode(aSyncMode), iRamEstimate(aRamEstimate), iWgId(aWgId), iWgIndex(aWgIndex), iRunPlugin(NULL), iCloseTimeout(aCloseTimeout), iWaitAfterClose(aWaitAfterClose), iAppPlugin(0)
    28     {   
    29     {   
    29     }
    30     }
    30 
    31 
    31     
    32     
    32 TActionRef::TActionType TActionRef::Type() const
    33 TActionRef::TActionType TActionRef::Type() const
    76 
    77 
    77 CGOomRunPlugin& TActionRef::RunPlugin()
    78 CGOomRunPlugin& TActionRef::RunPlugin()
    78     {
    79     {
    79     return *iRunPlugin;
    80     return *iRunPlugin;
    80     }
    81     }
       
    82 
       
    83 TBool TActionRef::IsRunning()
       
    84     {
       
    85     if (iRunPlugin)
       
    86         {
       
    87         return iRunPlugin->IsRunning();
       
    88         }
       
    89     else if (iAppPlugin)
       
    90         {
       
    91         return iAppPlugin->IsRunning();
       
    92         }
       
    93     return EFalse;
       
    94     }