epoc32/include/miutlog.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/miutlog.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,78 +0,0 @@
     1.4 -// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -//
    1.18 -
    1.19 -#if !defined(__MIUTLOG_H__)
    1.20 -#define __MIUTLOG_H__
    1.21 -
    1.22 -#if !defined(__E32BASE_H__)
    1.23 -#include <e32base.h>
    1.24 -#endif
    1.25 -
    1.26 -#if !defined(__F32FILE_H__)
    1.27 -#include <f32file.h>
    1.28 -#endif
    1.29 -
    1.30 -_LIT(KMiutLogFile, "c:\\logs\\Email\\ImLog%d");
    1.31 -_LIT(KMiutLogFileExtension, ".txt");
    1.32 -_LIT(KMiutLogUnopenedFileFormatString, "%S(%u).txt");
    1.33 -_LIT8(KMiutLogOutputString, ">> %S");
    1.34 -_LIT8(KMiutLogResponseString, "<< %S");
    1.35 -_LIT8(KMiutLogErrorString, "** %S %d");
    1.36 -_LIT8(KMiutLogCommentString, "** %S");
    1.37 -_LIT8(KMiutLogCR, "\r\n");
    1.38 -_LIT(KMiutLogDateFormatString, "%D%M%*Y%1%/1%2%/2%3 %H%:1%T%:2%S ");
    1.39 -
    1.40 -
    1.41 -// Setting to select whether a new log file will be created, 
    1.42 -// or existing one will be appended to...
    1.43 -
    1.44 -/**
    1.45 -@internalTechnology
    1.46 -@released
    1.47 -*/
    1.48 -enum TImLogOpenMode
    1.49 -	{ 
    1.50 -	EReplace, 
    1.51 -	EAppend
    1.52 -	};
    1.53 -
    1.54 -class CImLog : public CBase
    1.55 -/**
    1.56 -@internalTechnology
    1.57 -@released
    1.58 -*/
    1.59 -	{
    1.60 -public:
    1.61 -	IMPORT_C static CImLog* NewL(const TDesC& aFullFilePath, TImLogOpenMode aImLogOpenMode);
    1.62 -	IMPORT_C static CImLog* NewL(TInt aPortNum);
    1.63 -	IMPORT_C ~CImLog();
    1.64 -	
    1.65 -	IMPORT_C void AppendOut(const TDesC8 &outPut);
    1.66 -	IMPORT_C void AppendResponse(const TDesC8 &theResponse);
    1.67 -	IMPORT_C void AppendComment(const TDesC8 &theError);
    1.68 -	IMPORT_C void AppendError(const TDesC8 &theError, TInt anErrorCode);
    1.69 -private:
    1.70 -	CImLog();
    1.71 -	void ConstructL(TInt aPortNum);
    1.72 -	void ConstructL(const TDesC& aFullFilePath, TImLogOpenMode aImLogOpenMode);
    1.73 -
    1.74 -	void BuildLogString(const TDesC8& aFormat,const TDesC8 &theOutPut, TBool aWriteCrLf = EFalse);
    1.75 -	void WriteToLog(TRefByValue<const TDesC8> aFmt,...);
    1.76 -private:
    1.77 -	RFile	iFile;
    1.78 -	RFs		iFs;
    1.79 -	};
    1.80 -
    1.81 -#endif