os/persistentdata/traceservices/commsdebugutility/INC/comsdbgstub.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// Comms debug utility (File and Serial logger) server side header
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
/**
sl@0
    19
 @file
sl@0
    20
 @internalTechnology
sl@0
    21
*/
sl@0
    22
sl@0
    23
#ifndef __COMSDBGSTUB_H__
sl@0
    24
#define __COMSDBGSTUB_H__
sl@0
    25
sl@0
    26
sl@0
    27
#include <e32base.h>
sl@0
    28
sl@0
    29
_LIT(KFLoggerServerName,"!Comsdbg server");	///< Identifier to symbian OS server system.
sl@0
    30
sl@0
    31
sl@0
    32
/**
sl@0
    33
 * CFileLoggerServer - maintain server state
sl@0
    34
 *
sl@0
    35
 * This class is responsible for maintaining the server state. It provides
sl@0
    36
 * control of the second thread, the ini file change notifier, the current
sl@0
    37
 * list of valid logs and other ini file settings, and
sl@0
    38
 * the log queue.
sl@0
    39
 */
sl@0
    40
class CFileLoggerServer : public CServer2
sl@0
    41
	{
sl@0
    42
public:
sl@0
    43
	static CFileLoggerServer* NewL();
sl@0
    44
	~CFileLoggerServer();
sl@0
    45
// CServer
sl@0
    46
	virtual CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const;
sl@0
    47
protected:
sl@0
    48
	virtual TInt RunError(TInt aError);
sl@0
    49
private:
sl@0
    50
	CFileLoggerServer();
sl@0
    51
	void ConstructL();
sl@0
    52
	};	
sl@0
    53
sl@0
    54
class MIniFlushModeAndLogValidQuery;
sl@0
    55
class MIniLoggingMediaQuery;
sl@0
    56
sl@0
    57
/**
sl@0
    58
 * CFileLogSession -  
sl@0
    59
 *
sl@0
    60
 * This class is responsible for servicing the client requests sent. It forms the back-end server side of
sl@0
    61
 * each client connection to flogger server and implements the ServiceL() to service all client requests.
sl@0
    62
 */
sl@0
    63
class CFileLogSession : public CSession2
sl@0
    64
	{
sl@0
    65
public:
sl@0
    66
	static CFileLogSession* NewL();
sl@0
    67
	~CFileLogSession();
sl@0
    68
	// CSession
sl@0
    69
	virtual void ServiceL(const RMessage2& aMessage);
sl@0
    70
	//
sl@0
    71
private:
sl@0
    72
	CFileLogSession();
sl@0
    73
	};
sl@0
    74
sl@0
    75
sl@0
    76
sl@0
    77
sl@0
    78
/**
sl@0
    79
FLogger - flogger server process startup class 
sl@0
    80
This class contains functions to start the flogger server.
sl@0
    81
@internalComponent 
sl@0
    82
*/ 
sl@0
    83
class FLogger
sl@0
    84
	{
sl@0
    85
public:
sl@0
    86
	class TSignal;
sl@0
    87
public:
sl@0
    88
	IMPORT_C static TInt Start();
sl@0
    89
	IMPORT_C static TInt Run();
sl@0
    90
private:
sl@0
    91
	static TInt Init();
sl@0
    92
	};
sl@0
    93
sl@0
    94
sl@0
    95
sl@0
    96
#endif // __COMSDBGSTUB_H__
sl@0
    97