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 __LOGCLIENTOP_H__
17 #define __LOGCLIENTOP_H__
20 #include "logpackage.h"
22 #include "logservcli.h"
23 #include "LogServShared.h"
28 NONSHARABLE_CLASS(CLogClientOp) : public CActive
31 void Start(TRequestStatus& aObserver);
35 CLogClientOp(RLogSession& aSession, CLogPackage& aPackage, TLogOperationType aType, TInt aPriority);
37 void FetchResultFromServerL(TInt aResult);
38 void SetDataSlot1(TInt aValue);
43 TInt RunError(TInt aError);
45 virtual void InitiateRequestToServerL()=0;
46 virtual void CompleteL(TInt& aResult);
49 CLogPackage& iPackage;
50 RLogSession& iSession;
51 TPckgBuf<TLogClientServerData> iData;
55 * The observer's request status
57 TRequestStatus* iObserver;
61 Add an event to the database
64 NONSHARABLE_CLASS(CLogAddEventClientOp) : public CLogClientOp
67 CLogAddEventClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
68 void Start(CLogEvent& aEvent, TRequestStatus& aObserver);
71 void InitiateRequestToServerL();
72 void CompleteL(TInt& aResult);
79 Change an event in the database
82 NONSHARABLE_CLASS(CLogChangeEventClientOp) : public CLogClientOp
85 CLogChangeEventClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
86 void Start(const CLogEvent& aEvent, TRequestStatus& aObserver);
89 void InitiateRequestToServerL();
92 const CLogEvent* iEvent;
96 Get an event from the database
99 NONSHARABLE_CLASS(CLogGetEventClientOp) : public CLogClientOp
102 CLogGetEventClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
103 void Start(CLogEvent& aEvent, TRequestStatus& aObserver);
106 void InitiateRequestToServerL();
107 void CompleteL(TInt& aResult);
114 Delete an event from the database
117 NONSHARABLE_CLASS(CLogDeleteEventClientOp) : public CLogClientOp
120 CLogDeleteEventClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
121 void Start(TLogId aId, TRequestStatus& aObserver);
124 void InitiateRequestToServerL();
131 Add an event type to the database
134 NONSHARABLE_CLASS(CLogAddTypeClientOp) : public CLogClientOp
137 CLogAddTypeClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
138 void Start(const CLogEventType& aEventType, TRequestStatus& aObserver);
141 void InitiateRequestToServerL();
144 const CLogEventType* iEventType;
148 Change an event type in the database
151 NONSHARABLE_CLASS(CLogChangeTypeClientOp) : public CLogClientOp
154 CLogChangeTypeClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
155 void Start(const CLogEventType& aEventType, TRequestStatus& aObserver);
158 void InitiateRequestToServerL();
161 const CLogEventType* iEventType;
165 Get event type details
168 NONSHARABLE_CLASS(CLogGetTypeClientOp) : public CLogClientOp
171 CLogGetTypeClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
172 void Start(CLogEventType& aEventType, TRequestStatus& aObserver);
175 void InitiateRequestToServerL();
176 void CompleteL(TInt& aResult);
179 CLogEventType* iEventType;
186 NONSHARABLE_CLASS(CLogDeleteTypeClientOp) : public CLogClientOp
189 CLogDeleteTypeClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
190 void Start(TUid aUid, TRequestStatus& aObserver);
193 void InitiateRequestToServerL();
200 Get engine configuration
203 NONSHARABLE_CLASS(CLogGetConfigClientOp) : public CLogClientOp
206 CLogGetConfigClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
207 void Start(TLogConfig& aConfig, TRequestStatus& aObserver);
210 void InitiateRequestToServerL();
211 void CompleteL(TInt& aResult);
218 Change the configuration
221 NONSHARABLE_CLASS(CLogChangeConfigClientOp) : public CLogClientOp
224 CLogChangeConfigClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
225 void Start(const TLogConfig& aConfig, TRequestStatus& aObserver);
228 void InitiateRequestToServerL();
231 const TLogConfig* iConfig;
235 Clear the main event log
238 NONSHARABLE_CLASS(CLogClearLogClientOp) : public CLogClientOp
241 CLogClearLogClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
242 void Start(const TTime& aDate, TRequestStatus& aObserver
243 #ifdef SYMBIAN_ENABLE_EVENTLOGGER_DUALSIM
244 , TSimId aSimId = KLogNullSimId
249 void InitiateRequestToServerL();
253 #ifdef SYMBIAN_ENABLE_EVENTLOGGER_DUALSIM
259 Clear a recent event log
262 NONSHARABLE_CLASS(CLogClearRecentClientOp) : public CLogClientOp
265 CLogClearRecentClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
266 void Start(TLogRecentList aList, TRequestStatus& aObserver
267 #ifdef SYMBIAN_ENABLE_EVENTLOGGER_DUALSIM
268 , TSimId aSimId = KLogNullSimId
273 void InitiateRequestToServerL();
276 TLogRecentList iList;
277 #ifdef SYMBIAN_ENABLE_EVENTLOGGER_DUALSIM
283 Setup a view - Only synch version provided
286 NONSHARABLE_CLASS(CLogViewSetupClientOp) : public CLogClientOp
289 CLogViewSetupClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
290 TInt Start(TLogViewId aViewId, const CLogFilterList& aFilterList, TInt aParam, TLogFilterConstructionType aFilterConstructionType);
293 void InitiateRequestToServerL();
297 const CLogFilterList* iFilterList;
302 Remove an event from a view - Only synch version provided
305 NONSHARABLE_CLASS(CLogViewRemoveEventClientOp) : public CLogClientOp
308 CLogViewRemoveEventClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
309 TInt Start(TLogViewId aViewId, TLogId aId);
312 void InitiateRequestToServerL();
320 Do maintenance on the database - for view creation?
323 NONSHARABLE_CLASS(CLogMaintainClientOp) : public CLogClientOp
326 CLogMaintainClientOp(RLogSession& aSession, CLogPackage& aPackage, TInt aPriority);
329 void InitiateRequestToServerL();