graphics/wserv/AnimPlugin/inc/T_log.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2005-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 the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 // 
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef LOG_H_
       
    17 #define LOG_H_
       
    18 
       
    19 #include <e32std.h>
       
    20 #include <e32base.h>
       
    21 #include <f32file.h>
       
    22 
       
    23 
       
    24 class CLog : public CBase
       
    25 {
       
    26 public: // Constructors and destructor
       
    27 	~CLog();
       
    28 	static CLog* NewL(RFs &aFs, const TDesC &aFileName);
       
    29 	static CLog* NewLC(RFs &aFs, const TDesC &aFileName);
       
    30 
       
    31 	//write log 
       
    32 	TInt WriteLog(const TDesC& aInfo);
       
    33 	TInt WriteLog(const TDesC8& aInfo);
       
    34 private:
       
    35 	//Constructor for performing 1st stage construction
       
    36 	CLog();	
       
    37 	
       
    38 	//EPOC default constructor for performing 2nd stage construction
       
    39 	void ConstructL(RFs &aFs, const TDesC &aFileName);
       
    40 
       
    41 	RFile iFile;	//log file object
       
    42 	TFileText iText;
       
    43 	RBuf8 iBuf;	
       
    44 };
       
    45 
       
    46 
       
    47 #endif /*LOG_H_*/