traceservices/tracefw/ulogger/src/uloggerserver/uloggersession.h
changeset 0 08ec8eefde2f
child 23 26645d81f48d
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     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 // ULogger Server header file
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @file
       
    21  @internalTechnology
       
    22  @prototype
       
    23 */
       
    24 #ifndef ULOGGERSESSION_H_
       
    25 #define ULOGGERSESSION_H_
       
    26 
       
    27 #include "uloggerserver.h"
       
    28 namespace Ulogger {
       
    29 
       
    30 
       
    31 /** Session object
       
    32 This class is responsible for servicing the client requests sent. It forms the back-end server side of
       
    33 each client connection to Ulogger server and implements the ServiceL() to service all client requests.
       
    34 */
       
    35 class CULoggerSession : public CSession2
       
    36 	{
       
    37 	public:
       
    38 	static CULoggerSession* NewL(RThread& aClient, CULoggerServer& aServer);
       
    39 	static CULoggerSession* NewLC(RThread& aClient, CULoggerServer& aServer);
       
    40 	~CULoggerSession();
       
    41 
       
    42 	//from CSession
       
    43 	void ServiceL(const RMessage2& aMessage);
       
    44 private:
       
    45 	CULoggerSession(RThread& aClient, CULoggerServer& aServer);
       
    46 	void ConstructL();
       
    47 
       
    48 	void SendInteger(const RMessage2& aMessage, TUint32 aInt);
       
    49 	//void PanicClient(TInt aPanic) const;
       
    50 
       
    51 	//data
       
    52 	RMessage2 iMessage;
       
    53 	CULoggerServer& iServer;
       
    54 	RThread& iClient;
       
    55 	};
       
    56 }
       
    57 #endif /*ULOGGERSESSION_H_*/