phonebookui/pbkcommonui/inc/cnthistoryview.h
changeset 24 0ba2181d7c28
child 25 76a2435edfd4
equal deleted inserted replaced
0:e686773b3f54 24:0ba2181d7c28
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CNTHISTORYVIEW_H
       
    19 #define CNTHISTORYVIEW_H
       
    20 
       
    21 #include <QObject>
       
    22 #include "cntbaseview.h"
       
    23 
       
    24 class HbListView;
       
    25 class MobHistoryModel;
       
    26 
       
    27 QTM_BEGIN_NAMESPACE
       
    28 class QContact;
       
    29 QTM_END_NAMESPACE
       
    30 
       
    31 QTM_USE_NAMESPACE
       
    32 
       
    33 class CntHistoryView : public CntBaseView
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37 public:
       
    38     CntHistoryView(CntViewManager *viewManager, QGraphicsItem *parent = 0);
       
    39     ~CntHistoryView();
       
    40 
       
    41     CntViewParameters::ViewId viewId() const { return CntViewParameters::historyView; }
       
    42     void activateView(const CntViewParameters &viewParameters);
       
    43 
       
    44 public slots:
       
    45     void aboutToCloseView();
       
    46     void updateScrollingPosition();
       
    47 
       
    48 #ifdef PBK_UNIT_TEST
       
    49 public:
       
    50 #else
       
    51 private:
       
    52 #endif    
       
    53     HbListView*             mHistoryListView;
       
    54     MobHistoryModel*        mHistoryModel;
       
    55     QContact*               mContact;
       
    56     bool                    mIsMyCard;
       
    57     
       
    58 };
       
    59 
       
    60 #endif // CNTHISTORYVIEW_H
       
    61 
       
    62 // EOF