os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServViewWindowFetcher.h
First public contribution.
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 __LOGSERVVIEWWINDOWFETCHER_H__
17 #define __LOGSERVVIEWWINDOWFETCHER_H__
19 #include "LogCliServShared.h"
23 class CLogServViewBase;
24 class MLogServDatabaseTransactionInterface;
27 /////////////////////////////////////////////////////////////////////////////////////////
28 // -----> CLogServViewWindowFetcher (header)
29 /////////////////////////////////////////////////////////////////////////////////////////
33 class CLogServViewWindowFetcher : public CLogActive
36 static CLogServViewWindowFetcher* NewL(MLogServDatabaseTransactionInterface& aDatabase, TInt aPriority);
37 ~CLogServViewWindowFetcher();
40 CLogServViewWindowFetcher(MLogServDatabaseTransactionInterface& aDatabase, TInt aPriority);
44 void StartL(TRequestStatus& aStatus, const CLogServViewBase& aView, const TLogTransferWindow& aWindow, const RMessage2& aMessage);
49 void DoComplete(TInt& aCompletionCode);
63 void GetNextEventL(TInt aWindowIndex);
64 void CompleteRequest();
67 MLogServDatabaseTransactionInterface& iDatabase;
69 CLogGetEvent* iGetEvent;
73 const CLogServViewBase* iView;
74 TLogTransferWindow iWindow;
75 const RMessage2* iMessage;