Update contrib.
1 // Copyright (c) 2002-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __LOGCHNGE_H__
17 #define __LOGCHNGE_H__
23 class CLogServRecentList;
24 class CLogServRecentListManager;
25 class MLogServDatabaseTransactionInterface;
28 class RLogEventDbTable;
32 This class provides functions for updating properties of particular event.
33 The database record holding the event data will be updated.
35 @see MLogServDatabaseTransactionInterface
36 @see CLogServRecentList
41 class CLogChangeEvent : public CLogActive
44 static CLogChangeEvent* NewL(MLogServDatabaseTransactionInterface& aDatabase, TInt aPriority);
48 void StartL(const CLogEvent& aEvent,
49 const CLogServRecentList* aRecentList,
50 TRequestStatus& aStatus,
51 const RMessage2& aMessage);
54 CLogChangeEvent(MLogServDatabaseTransactionInterface& aDatabase, TInt aPriority);
58 void DoComplete(TInt& aStatus);
59 void ResetDuplicatesL();
60 void UpdateDuplicateEventsL();
61 void DoChangeEventL();
62 void DoChangeL(RLogEventDbTable& aTbl, TLogStringId aDirectionId, TLogStringId aStatusId);
72 MLogServDatabaseTransactionInterface& iDatabase;
74 TLogChangeState iState;
75 const CLogServRecentList* iRecentList;
78 CLogDuplicate* iDuplicate;
79 CLogFilter* iDuplicateFilter;
81 const RMessage2* iMessage;
94 //**********************************
96 //**********************************
98 class CLogChangeConfig : public CLogActive
104 static CLogChangeConfig* NewL(MLogServDatabaseTransactionInterface& aDatabase, const CLogServRecentListManager& aRecentSetup, TInt aPriority);
108 void StartL(const TLogConfig& aConfig, TRequestStatus& aStatus);
111 CLogChangeConfig(MLogServDatabaseTransactionInterface& aDatabase, const CLogServRecentListManager& aRecentSetup, TInt aPriority);
114 void DoComplete(TInt& aStatus);
124 MLogServDatabaseTransactionInterface& iDatabase;
125 const TLogConfig* iConfig;
126 const CLogServRecentListManager& iRecentSetup;
127 TLogChangeState iState;