systemhealthmanagement/systemhealthmgr/loadsysmonsrc/loadsysmon.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __LOADSYSMON_H__
       
    17 #define __LOADSYSMON_H__
       
    18 
       
    19 #include <e32std.h>
       
    20 #include <ssm/ssmloadsysmon.h>
       
    21 
       
    22 class CStartupProperties;
       
    23 class CSsmStartupProperties;
       
    24 
       
    25 /**Client API for monitoring the applications and processes using RSysMonSession.
       
    26 
       
    27 @see RSysMonSession
       
    28 
       
    29 @internalTechnology
       
    30 @released
       
    31 */
       
    32 NONSHARABLE_CLASS(RLoadSysMonSession) : public MSsmLoadSysMon
       
    33 	{
       
    34 public:	
       
    35 	IMPORT_C static RLoadSysMonSession* CreateL();
       
    36 
       
    37 	//from MSsmLoadSysMon class
       
    38 	void OpenL();
       
    39 	void Close();
       
    40 	void MonitorL(const CStartupProperties& aStartupProperties, const RProcess& aProcess, TBool aExecuteRecoveryMethodOnFailure=EFalse); //lint !e1735 Virtual function has default parameter - Must use the same default as declared by MSsmLoadSysMon
       
    41 	void MonitorSelfL(const CStartupProperties& aStartupProperties);
       
    42 	void CancelMonitorSelfL();
       
    43 	void MonitorL(const CSsmStartupProperties& aSsmStartupProperties, const RProcess& aProcess, TBool aExecuteRecoveryMethodOnFailure=EFalse); //lint !e1735 Virtual function has default parameter - Must use the same default as declared by MSsmLoadSysMon
       
    44 	void MonitorSelfL(const CSsmStartupProperties& aSsmStartupProperties);
       
    45 
       
    46 private:
       
    47 	RLoadSysMonSession();
       
    48 
       
    49 private:
       
    50 	RSysMonSession iSysMonSession;
       
    51 	};
       
    52 
       
    53 #endif
       
    54