nettools/conntest/inc/ipdumpengine.h
changeset 0 857a3e953887
equal deleted inserted replaced
-1:000000000000 0:857a3e953887
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: CIpdumpEngine is used to control the ip logging protocol
       
    15 *
       
    16 */
       
    17 
       
    18 #include <es_sock.h>
       
    19 
       
    20 class CIpdumpEngine : public CBase
       
    21 	{
       
    22 public:
       
    23 	static CIpdumpEngine* NewL();
       
    24 	virtual ~CIpdumpEngine();
       
    25 
       
    26 	void EnableLoggingL();
       
    27 	void DisableLogging();
       
    28 
       
    29 	TBool LoggingEnabled() const;
       
    30 	const TDesC& LogFileName() const;
       
    31 
       
    32 private:
       
    33 	CIpdumpEngine();
       
    34 	void ConstructL();
       
    35 
       
    36 	void CheckProtocolFilesL();
       
    37 	TInt CreateLogDirectory();
       
    38 
       
    39 private:
       
    40 	RSocketServ iSocketServ;
       
    41 	RSocket iSocket;
       
    42 	TBool iLoggingEnabled;
       
    43 	TName iLogFileName;
       
    44 	};