genericservices/taskscheduler/SCHSVR/SCHLOG.h
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 // Copyright (c) 2004-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 //
       
    15 
       
    16 #ifndef __SCHLOG_H__
       
    17 #define __SCHLOG_H__
       
    18 
       
    19 // Classes referenced
       
    20 class CLogEvent;
       
    21 class CLogWrapper;
       
    22 
       
    23 /*
       
    24 This class manages the logging of error messages to the log engine.
       
    25 It allows several messages to be able to be logged at the same time
       
    26 by performing some simple queuing.
       
    27 */
       
    28 NONSHARABLE_CLASS(CSchLogManager) : public CActive
       
    29 	{
       
    30 public:
       
    31 	~CSchLogManager();
       
    32 	static CSchLogManager* NewL(RFs& aFileSession);
       
    33 	
       
    34 private:
       
    35 	CLogWrapper* GetLogWrapperL();
       
    36 	CSchLogManager();
       
    37 	void ConstructL(RFs& aFileSession);
       
    38 	// From CActive
       
    39 	void RunL();
       
    40 	void DoCancel();
       
    41 
       
    42 public:
       
    43 	void LogError(const TDesC& aSubject, TInt aError);
       
    44 	void LogError(TInt aError);
       
    45 
       
    46 private: 
       
    47 	RFs *iFileSession;
       
    48 	CLogEvent* iLogEvent;
       
    49 	CLogWrapper* iLogWrapper;
       
    50   	CArrayPtrFlat<CLogEvent>* iPendingLogEvents;
       
    51 	};
       
    52 
       
    53 #endif
       
    54