os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServTaskInterface.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServTaskInterface.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,96 @@
     1.4 +// Copyright (c) 2002-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 "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.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 +#ifndef __LOGSERVTASKINTERFACE_H__
    1.20 +#define __LOGSERVTASKINTERFACE_H__
    1.21 +
    1.22 +#include <logwrap.h>
    1.23 +
    1.24 +// Classes referenced
    1.25 +class TLogConfig;
    1.26 +class TLogTransferWindow;
    1.27 +class CLogEvent;
    1.28 +class CLogEventType;
    1.29 +class CLogServViewBase;
    1.30 +
    1.31 +/**
    1.32 +An interface class for starting a LogEng operation.
    1.33 +Every time when CLogServOperationQueue::RunL() takes the execution control, an operation will be picked up
    1.34 +from the pending queue and the StartL() method of the operation - called, for example: 
    1.35 +CLogServOpEventAdd::StartL(). The operation's StartL() method will read the client data and calls an
    1.36 +appropriate method from this interface - TaskEventAddL() for example. 
    1.37 + 
    1.38 +@see CLogServOperationQueue 
    1.39 +
    1.40 +@internalComponent
    1.41 +*/
    1.42 +class MLogServTaskInterface
    1.43 +{
    1.44 +public:
    1.45 +	/** 
    1.46 +	 * Event tasks
    1.47 +	 */
    1.48 +	virtual void TaskEventAddL(TRequestStatus& aStatus, CLogEvent& aEvent, const RMessage2& aMessage) = 0;
    1.49 +	virtual void TaskEventChangeL(TRequestStatus& aStatus, const CLogEvent& aEvent, const RMessage2& aMessage) = 0;
    1.50 +	virtual void TaskEventGetL(TRequestStatus& aStatus, CLogEvent& aEvent, const RMessage2& aMessage) = 0;
    1.51 +	virtual void TaskEventDeleteL(TRequestStatus& aStatus, TLogId aId, const RMessage2& aMessage) = 0;
    1.52 +
    1.53 +	/** 
    1.54 +	 * Event type tasks
    1.55 +	 */
    1.56 +	virtual void TaskEventTypeAddL(TRequestStatus& aStatus, const CLogEventType& aEventType) = 0;
    1.57 +	virtual void TaskEventTypeGetL(TRequestStatus& aStatus, const CLogEventType*& aEventType, TUid aUid) = 0;
    1.58 +	virtual void TaskEventTypeChangeL(TRequestStatus& aStatus, const CLogEventType& aEventType) = 0;
    1.59 +	virtual void TaskEventTypeDeleteL(TRequestStatus& aStatus, TUid aType) = 0;
    1.60 +
    1.61 +	/**
    1.62 +	 * Configuration tasks
    1.63 +	 */
    1.64 +	virtual void TaskConfigGetL(TRequestStatus& aStatus, TLogConfig& aConfig) = 0;
    1.65 +	virtual void TaskConfigChangeL(TRequestStatus& aStatus, const TLogConfig& aConfig) = 0;
    1.66 +
    1.67 +	/**
    1.68 +	 * Clearing tasks
    1.69 +	 */
    1.70 +	virtual void TaskClearLogL(TRequestStatus& aStatus, const TTime& aDate
    1.71 +#ifdef SYMBIAN_ENABLE_EVENTLOGGER_DUALSIM	
    1.72 +			, TSimId aSimId
    1.73 +#endif			
    1.74 +			) = 0;
    1.75 +	virtual void TaskClearRecentL(TRequestStatus& aStatus, TInt aRecentList
    1.76 +#ifdef SYMBIAN_ENABLE_EVENTLOGGER_DUALSIM	
    1.77 +			, TSimId aSimId
    1.78 +#endif
    1.79 +			) = 0;
    1.80 +
    1.81 +	/**
    1.82 +	 * Maintenance tasks
    1.83 +	 */
    1.84 +	virtual void TaskMaintenanceStartL(TRequestStatus& aStatus, TBool aPurge) = 0;
    1.85 +
    1.86 +	/**
    1.87 +	 * Window building tasks
    1.88 +	 */ 
    1.89 +	virtual void TaskBuildWindowL(TRequestStatus& aStatus, const CLogServViewBase& aView, 
    1.90 +                                  const TLogTransferWindow& aWindow, const RMessage2& aMessage) = 0;
    1.91 +
    1.92 +	/**
    1.93 +	 * Cancellation
    1.94 +	 */
    1.95 +	virtual void TaskCancelCurrent() = 0;
    1.96 +};
    1.97 +
    1.98 +
    1.99 +#endif