pimprotocols/pbap/inc/pbapchview.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 // Copyright (c) 2006-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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef PBAPCHVIEW_H
       
    17 #define PBAPCHVIEW_H
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <logwrap.h>
       
    21 
       
    22 #include "pbapfoldernodech.h"
       
    23 #include "pbapchviewobserver.h"
       
    24 
       
    25 #include "pbaplogeng.h"
       
    26 #include "pbaplogengviewobserver.h"
       
    27 
       
    28 /**
       
    29  Call History View Class
       
    30  */
       
    31 class CPbapChView : public CActive, public MPbapLogEngViewObserver
       
    32 	{
       
    33 public:
       
    34 	static CPbapChView* NewL(CPbapLogWrapper& aLogClient,
       
    35 							 CFolderNodeCallHistory::THistoryType aHistoryType,
       
    36 							 MPbapChViewObserver& aObserver,
       
    37 							 TLogFlags aFlags);
       
    38 	~CPbapChView();
       
    39 
       
    40 	CPbapLogViewEvent* LogView();
       
    41 
       
    42 private:
       
    43 	CPbapChView(CPbapLogWrapper& aLogClient, MPbapChViewObserver& aObserver);
       
    44 	void ConstructL(CFolderNodeCallHistory::THistoryType aHistoryType, TLogFlags aFlags);
       
    45 
       
    46 	void RunL();
       
    47 	void DoCancel();
       
    48 
       
    49 	CLogFilter* CreateDirectionFilterLC(CFolderNodeCallHistory::THistoryType aHistoryType, TLogFlags aFlags);
       
    50 
       
    51 	// from MPbapLogEngViewObserver
       
    52 	virtual void PbapLogEngViewChangeEventAddedL(TLogId, TInt, TInt, TInt);
       
    53 	virtual void PbapLogEngViewChangeEventChangedL(TLogId, TInt, TInt, TInt);
       
    54 	virtual void PbapLogEngViewChangeEventDeletedL(TLogId, TInt, TInt, TInt);
       
    55 	virtual void PbapLogEngViewChangeEventL(TUid, TInt, TInt, TInt);
       
    56 
       
    57 private:
       
    58 	CPbapLogWrapper& iLogClient;
       
    59 	CLogFilterList* iLogFilterList;
       
    60 	CPbapLogViewEvent* iLogView;
       
    61 	TBool iRefreshView;
       
    62 	
       
    63 	MPbapChViewObserver& iObserver;
       
    64 	};
       
    65 
       
    66 #endif // PBAPCHVIEW_H