phonebookui/pbkcommonui/inc/cntnamesview.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 CNTNAMESVIEW_H
       
    19 #define CNTNAMESVIEW_H
       
    20 
       
    21 #include "cntbaselistview.h"
       
    22 
       
    23 class HbSearchPanel;
       
    24 class HbTextItem;
       
    25 
       
    26 class CntNamesView : public CntBaseListView
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31     CntNamesView(CntViewManager *viewManager, QGraphicsItem *parent = 0);
       
    32     ~CntNamesView();
       
    33 
       
    34 public slots:
       
    35     void aboutToCloseView();
       
    36     void handleExecutedCommand(QString command, QContact contact);
       
    37     void showFind();
       
    38     void closeFind();
       
    39     void setFilter(const QString &filterString);
       
    40     void openCollections();
       
    41 
       
    42 public:
       
    43     CntViewParameters::ViewId viewId() const { return CntViewParameters::namesView; }
       
    44     void activateView(const CntViewParameters &viewParameters);
       
    45     void deActivateView();
       
    46 
       
    47 #ifdef PBK_UNIT_TEST
       
    48 public:
       
    49 #else
       
    50 protected:
       
    51 #endif
       
    52     void addMenuItems();
       
    53     void addActionsToToolBar();
       
    54 
       
    55 #ifdef PBK_UNIT_TEST
       
    56 public:
       
    57 #else
       
    58 private:
       
    59 #endif
       
    60     HbSearchPanel *mSearchPanel;
       
    61     HbTextItem    *mEmptyListLabel;
       
    62 };
       
    63 
       
    64 #endif // CNTNAMESVIEW_H
       
    65 
       
    66 // EOF