os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServTaskInterface.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef __LOGSERVTASKINTERFACE_H__
sl@0
    17
#define __LOGSERVTASKINTERFACE_H__
sl@0
    18
sl@0
    19
#include <logwrap.h>
sl@0
    20
sl@0
    21
// Classes referenced
sl@0
    22
class TLogConfig;
sl@0
    23
class TLogTransferWindow;
sl@0
    24
class CLogEvent;
sl@0
    25
class CLogEventType;
sl@0
    26
class CLogServViewBase;
sl@0
    27
sl@0
    28
/**
sl@0
    29
An interface class for starting a LogEng operation.
sl@0
    30
Every time when CLogServOperationQueue::RunL() takes the execution control, an operation will be picked up
sl@0
    31
from the pending queue and the StartL() method of the operation - called, for example: 
sl@0
    32
CLogServOpEventAdd::StartL(). The operation's StartL() method will read the client data and calls an
sl@0
    33
appropriate method from this interface - TaskEventAddL() for example. 
sl@0
    34
 
sl@0
    35
@see CLogServOperationQueue 
sl@0
    36
sl@0
    37
@internalComponent
sl@0
    38
*/
sl@0
    39
class MLogServTaskInterface
sl@0
    40
{
sl@0
    41
public:
sl@0
    42
	/** 
sl@0
    43
	 * Event tasks
sl@0
    44
	 */
sl@0
    45
	virtual void TaskEventAddL(TRequestStatus& aStatus, CLogEvent& aEvent, const RMessage2& aMessage) = 0;
sl@0
    46
	virtual void TaskEventChangeL(TRequestStatus& aStatus, const CLogEvent& aEvent, const RMessage2& aMessage) = 0;
sl@0
    47
	virtual void TaskEventGetL(TRequestStatus& aStatus, CLogEvent& aEvent, const RMessage2& aMessage) = 0;
sl@0
    48
	virtual void TaskEventDeleteL(TRequestStatus& aStatus, TLogId aId, const RMessage2& aMessage) = 0;
sl@0
    49
sl@0
    50
	/** 
sl@0
    51
	 * Event type tasks
sl@0
    52
	 */
sl@0
    53
	virtual void TaskEventTypeAddL(TRequestStatus& aStatus, const CLogEventType& aEventType) = 0;
sl@0
    54
	virtual void TaskEventTypeGetL(TRequestStatus& aStatus, const CLogEventType*& aEventType, TUid aUid) = 0;
sl@0
    55
	virtual void TaskEventTypeChangeL(TRequestStatus& aStatus, const CLogEventType& aEventType) = 0;
sl@0
    56
	virtual void TaskEventTypeDeleteL(TRequestStatus& aStatus, TUid aType) = 0;
sl@0
    57
sl@0
    58
	/**
sl@0
    59
	 * Configuration tasks
sl@0
    60
	 */
sl@0
    61
	virtual void TaskConfigGetL(TRequestStatus& aStatus, TLogConfig& aConfig) = 0;
sl@0
    62
	virtual void TaskConfigChangeL(TRequestStatus& aStatus, const TLogConfig& aConfig) = 0;
sl@0
    63
sl@0
    64
	/**
sl@0
    65
	 * Clearing tasks
sl@0
    66
	 */
sl@0
    67
	virtual void TaskClearLogL(TRequestStatus& aStatus, const TTime& aDate
sl@0
    68
#ifdef SYMBIAN_ENABLE_EVENTLOGGER_DUALSIM	
sl@0
    69
			, TSimId aSimId
sl@0
    70
#endif			
sl@0
    71
			) = 0;
sl@0
    72
	virtual void TaskClearRecentL(TRequestStatus& aStatus, TInt aRecentList
sl@0
    73
#ifdef SYMBIAN_ENABLE_EVENTLOGGER_DUALSIM	
sl@0
    74
			, TSimId aSimId
sl@0
    75
#endif
sl@0
    76
			) = 0;
sl@0
    77
sl@0
    78
	/**
sl@0
    79
	 * Maintenance tasks
sl@0
    80
	 */
sl@0
    81
	virtual void TaskMaintenanceStartL(TRequestStatus& aStatus, TBool aPurge) = 0;
sl@0
    82
sl@0
    83
	/**
sl@0
    84
	 * Window building tasks
sl@0
    85
	 */ 
sl@0
    86
	virtual void TaskBuildWindowL(TRequestStatus& aStatus, const CLogServViewBase& aView, 
sl@0
    87
                                  const TLogTransferWindow& aWindow, const RMessage2& aMessage) = 0;
sl@0
    88
sl@0
    89
	/**
sl@0
    90
	 * Cancellation
sl@0
    91
	 */
sl@0
    92
	virtual void TaskCancelCurrent() = 0;
sl@0
    93
};
sl@0
    94
sl@0
    95
sl@0
    96
#endif