sysstatemgmt/systemstarter/sysmonsrc/sysmonservsess.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2006-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 /**
       
    17  @file
       
    18  @internalComponent 
       
    19 */
       
    20 
       
    21 #ifndef __SYSMONSERVSESS_H__
       
    22 #define __SYSMONSERVSESS_H__
       
    23 
       
    24 #include <e32std.h>
       
    25 #include <e32base.h>
       
    26 #include <e32cmn.h>
       
    27 
       
    28 class CSysMonServer;
       
    29 
       
    30 /*
       
    31 CSysMonSession maintains session with the client
       
    32 */
       
    33 class CSysMonSession: public CSession2
       
    34 	{
       
    35 public:
       
    36 	static CSysMonSession* NewL();
       
    37 	void ServiceL(const RMessage2 &aMessage);
       
    38 	void ServiceError(const RMessage2 &aMessage, TInt aError);
       
    39 	~CSysMonSession();
       
    40 
       
    41 private:
       
    42 	CSysMonSession();
       
    43 	void DoMonitorL(TBool aMonitorSelf);
       
    44 	void CancelMonitorSelfL() const;
       
    45 	CSysMonServer* SysMonServer() const;
       
    46 
       
    47 private:
       
    48 	RMessage2 iMessage;
       
    49 	};
       
    50 
       
    51 #endif // __SYSMONSERVSESS_H__