sl@0: // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef __LOGSERVTASKINTERFACE_H__ sl@0: #define __LOGSERVTASKINTERFACE_H__ sl@0: sl@0: #include sl@0: sl@0: // Classes referenced sl@0: class TLogConfig; sl@0: class TLogTransferWindow; sl@0: class CLogEvent; sl@0: class CLogEventType; sl@0: class CLogServViewBase; sl@0: sl@0: /** sl@0: An interface class for starting a LogEng operation. sl@0: Every time when CLogServOperationQueue::RunL() takes the execution control, an operation will be picked up sl@0: from the pending queue and the StartL() method of the operation - called, for example: sl@0: CLogServOpEventAdd::StartL(). The operation's StartL() method will read the client data and calls an sl@0: appropriate method from this interface - TaskEventAddL() for example. sl@0: sl@0: @see CLogServOperationQueue sl@0: sl@0: @internalComponent sl@0: */ sl@0: class MLogServTaskInterface sl@0: { sl@0: public: sl@0: /** sl@0: * Event tasks sl@0: */ sl@0: virtual void TaskEventAddL(TRequestStatus& aStatus, CLogEvent& aEvent, const RMessage2& aMessage) = 0; sl@0: virtual void TaskEventChangeL(TRequestStatus& aStatus, const CLogEvent& aEvent, const RMessage2& aMessage) = 0; sl@0: virtual void TaskEventGetL(TRequestStatus& aStatus, CLogEvent& aEvent, const RMessage2& aMessage) = 0; sl@0: virtual void TaskEventDeleteL(TRequestStatus& aStatus, TLogId aId, const RMessage2& aMessage) = 0; sl@0: sl@0: /** sl@0: * Event type tasks sl@0: */ sl@0: virtual void TaskEventTypeAddL(TRequestStatus& aStatus, const CLogEventType& aEventType) = 0; sl@0: virtual void TaskEventTypeGetL(TRequestStatus& aStatus, const CLogEventType*& aEventType, TUid aUid) = 0; sl@0: virtual void TaskEventTypeChangeL(TRequestStatus& aStatus, const CLogEventType& aEventType) = 0; sl@0: virtual void TaskEventTypeDeleteL(TRequestStatus& aStatus, TUid aType) = 0; sl@0: sl@0: /** sl@0: * Configuration tasks sl@0: */ sl@0: virtual void TaskConfigGetL(TRequestStatus& aStatus, TLogConfig& aConfig) = 0; sl@0: virtual void TaskConfigChangeL(TRequestStatus& aStatus, const TLogConfig& aConfig) = 0; sl@0: sl@0: /** sl@0: * Clearing tasks sl@0: */ sl@0: virtual void TaskClearLogL(TRequestStatus& aStatus, const TTime& aDate sl@0: #ifdef SYMBIAN_ENABLE_EVENTLOGGER_DUALSIM sl@0: , TSimId aSimId sl@0: #endif sl@0: ) = 0; sl@0: virtual void TaskClearRecentL(TRequestStatus& aStatus, TInt aRecentList sl@0: #ifdef SYMBIAN_ENABLE_EVENTLOGGER_DUALSIM sl@0: , TSimId aSimId sl@0: #endif sl@0: ) = 0; sl@0: sl@0: /** sl@0: * Maintenance tasks sl@0: */ sl@0: virtual void TaskMaintenanceStartL(TRequestStatus& aStatus, TBool aPurge) = 0; sl@0: sl@0: /** sl@0: * Window building tasks sl@0: */ sl@0: virtual void TaskBuildWindowL(TRequestStatus& aStatus, const CLogServViewBase& aView, sl@0: const TLogTransferWindow& aWindow, const RMessage2& aMessage) = 0; sl@0: sl@0: /** sl@0: * Cancellation sl@0: */ sl@0: virtual void TaskCancelCurrent() = 0; sl@0: }; sl@0: sl@0: sl@0: #endif