systemhealthmanagement/systemhealthmgr/loadsysmonsrc/loadsysmon.cpp
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 #include "sysmonclisess.h"
       
    17 #include "loadsysmon.h"
       
    18 
       
    19 /**
       
    20 Default constructor.
       
    21 Creates an instance of the RLoadSysMonSession class
       
    22 @internalTechnology
       
    23 @released
       
    24 */
       
    25 RLoadSysMonSession::RLoadSysMonSession()
       
    26 	{
       
    27 	}
       
    28 
       
    29 /**
       
    30 Used to create an instance of RLoadSysMonSession class
       
    31 
       
    32 @return An instance of RLoadSysMonSession
       
    33 @internalTechnology
       
    34 @released
       
    35 */
       
    36 EXPORT_C RLoadSysMonSession* RLoadSysMonSession::CreateL()
       
    37 	{
       
    38 	RLoadSysMonSession* self = new(ELeave) RLoadSysMonSession();
       
    39 	return self;
       
    40 	}
       
    41 
       
    42 
       
    43 /**
       
    44 Opens connection with SysMonServer
       
    45 
       
    46 @leave KErrNone if successful, otherwise one of the other system-wide error codes.
       
    47 @internalTechnology
       
    48 @released
       
    49 @see RSysMonSession
       
    50 */
       
    51 void RLoadSysMonSession::OpenL()
       
    52 	{
       
    53 	iSysMonSession.OpenL();
       
    54 	}
       
    55 
       
    56 /**
       
    57 Closes connection with SysMonServer
       
    58 @internalTechnology
       
    59 @released
       
    60 @see RSysMonSession
       
    61 */
       
    62 void RLoadSysMonSession::Close()
       
    63 	{
       
    64 	iSysMonSession.Close();
       
    65 	}
       
    66 
       
    67 /**
       
    68 Used to initiate the monitoring of a started component using CStartupProperties.
       
    69 @internalTechnology
       
    70 @released
       
    71 @see RSysMonSession
       
    72 */
       
    73 void RLoadSysMonSession::MonitorL(const CStartupProperties& aStartupProperties, const RProcess& aProcess, TBool aExecuteRecoveryMethodOnFailure)
       
    74 	{
       
    75 	iSysMonSession.MonitorL(aStartupProperties, aProcess, aExecuteRecoveryMethodOnFailure);
       
    76 	}
       
    77 
       
    78 /**
       
    79 Used by a started component to initiate self-monitoring using CStartupProperties.
       
    80 @internalTechnology
       
    81 @released
       
    82 @see RSysMonSession
       
    83 */
       
    84 void RLoadSysMonSession::MonitorSelfL(const CStartupProperties& aStartupProperties)
       
    85 	{
       
    86 	iSysMonSession.MonitorSelfL(aStartupProperties);
       
    87 	}
       
    88 
       
    89 /**
       
    90 Used to initiate the monitoring of a started component using CSsmStartupProperties.
       
    91 @internalTechnology
       
    92 @released
       
    93 @see RSysMonSession
       
    94 */
       
    95 void RLoadSysMonSession::MonitorL(const CSsmStartupProperties& aSsmStartupProperties, const RProcess& aProcess, TBool aExecuteRecoveryMethodOnFailure)
       
    96 	{
       
    97 	iSysMonSession.MonitorL(aSsmStartupProperties, aProcess, aExecuteRecoveryMethodOnFailure);
       
    98 	}
       
    99 
       
   100 /**
       
   101 Used by a started component to initiate self-monitoring using CSsmStartupProperties.
       
   102 @internalTechnology
       
   103 @released
       
   104 @see RSysMonSession
       
   105 */
       
   106 void RLoadSysMonSession::MonitorSelfL(const CSsmStartupProperties& aSsmStartupProperties)
       
   107 	{
       
   108 	iSysMonSession.MonitorSelfL(aSsmStartupProperties);
       
   109 	}
       
   110 
       
   111 /**
       
   112 Used to cancel self-monitoring of a component.
       
   113 
       
   114 @internalTechnology
       
   115 @released
       
   116 @see RSysMonSession
       
   117 */
       
   118 void RLoadSysMonSession::CancelMonitorSelfL()
       
   119 	{
       
   120 	iSysMonSession.CancelMonitorSelfL();
       
   121 	}
       
   122