phonebookui/pbkcommonui/inc/cntgroupmemberselectionview.h
changeset 25 76a2435edfd4
parent 24 0ba2181d7c28
child 27 de1630741fbe
equal deleted inserted replaced
24:0ba2181d7c28 25:76a2435edfd4
     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 CNTGROUPMEMBERSELECTIONVIEW_H
       
    19 #define CNTGROUPMEMBERSELECTIONVIEW_H
       
    20 
       
    21 #include "cntbaseselectionview.h"
       
    22 
       
    23 class HbGroupBox;
       
    24 
       
    25 class CntGroupMemberSelectionView : public CntBaseSelectionView
       
    26 {
       
    27     Q_OBJECT
       
    28 
       
    29 public:
       
    30     CntGroupMemberSelectionView(CntViewManager *viewManager, QGraphicsItem *parent=0);
       
    31     ~CntGroupMemberSelectionView();
       
    32 
       
    33 public slots:
       
    34     void activateView(const CntViewParameters &viewParameters);
       
    35     void openGroupNameEditor();
       
    36     void aboutToCloseView();
       
    37     void saveGroup();
       
    38     void markUnmarkAll();
       
    39     void OnCancel();
       
    40     void updateTitle(const QItemSelection &selected, const QItemSelection &deselected);
       
    41 
       
    42 public:
       
    43     void addActionsToToolBar();
       
    44     CntViewParameters::ViewId viewId() const { return CntViewParameters::groupMemberSelectionView; }
       
    45 #ifdef PBK_UNIT_TEST
       
    46 public:
       
    47 #else
       
    48 private:
       
    49 #endif
       
    50     QContact                *mContact;
       
    51     HbGroupBox              *mBanner;
       
    52     QList<QContactLocalId>   mContactsLocalIdList;
       
    53     QContactName             mGroupContactName;
       
    54     int                      mCountContacts;
       
    55     bool                     mActionNewGroup;
       
    56     QList<QContactLocalId>   mSelectionList;
       
    57     
       
    58 };
       
    59 
       
    60 #endif /* CNTGROUPMEMBERSELECTIONVIEW_H */