os/persistentdata/traceservices/commsdebugutility/INC/comsdbgstub.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 1997-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 // Comms debug utility (File and Serial logger) server side header
    15 // 
    16 //
    17 
    18 /**
    19  @file
    20  @internalTechnology
    21 */
    22 
    23 #ifndef __COMSDBGSTUB_H__
    24 #define __COMSDBGSTUB_H__
    25 
    26 
    27 #include <e32base.h>
    28 
    29 _LIT(KFLoggerServerName,"!Comsdbg server");	///< Identifier to symbian OS server system.
    30 
    31 
    32 /**
    33  * CFileLoggerServer - maintain server state
    34  *
    35  * This class is responsible for maintaining the server state. It provides
    36  * control of the second thread, the ini file change notifier, the current
    37  * list of valid logs and other ini file settings, and
    38  * the log queue.
    39  */
    40 class CFileLoggerServer : public CServer2
    41 	{
    42 public:
    43 	static CFileLoggerServer* NewL();
    44 	~CFileLoggerServer();
    45 // CServer
    46 	virtual CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const;
    47 protected:
    48 	virtual TInt RunError(TInt aError);
    49 private:
    50 	CFileLoggerServer();
    51 	void ConstructL();
    52 	};	
    53 
    54 class MIniFlushModeAndLogValidQuery;
    55 class MIniLoggingMediaQuery;
    56 
    57 /**
    58  * CFileLogSession -  
    59  *
    60  * This class is responsible for servicing the client requests sent. It forms the back-end server side of
    61  * each client connection to flogger server and implements the ServiceL() to service all client requests.
    62  */
    63 class CFileLogSession : public CSession2
    64 	{
    65 public:
    66 	static CFileLogSession* NewL();
    67 	~CFileLogSession();
    68 	// CSession
    69 	virtual void ServiceL(const RMessage2& aMessage);
    70 	//
    71 private:
    72 	CFileLogSession();
    73 	};
    74 
    75 
    76 
    77 
    78 /**
    79 FLogger - flogger server process startup class 
    80 This class contains functions to start the flogger server.
    81 @internalComponent 
    82 */ 
    83 class FLogger
    84 	{
    85 public:
    86 	class TSignal;
    87 public:
    88 	IMPORT_C static TInt Start();
    89 	IMPORT_C static TInt Run();
    90 private:
    91 	static TInt Init();
    92 	};
    93 
    94 
    95 
    96 #endif // __COMSDBGSTUB_H__
    97