phonebookui/cntcommonui/collections/cntgroupmemberview.cpp
changeset 75 4ecbe3571b5a
equal deleted inserted replaced
71:7cc7d74059f9 75:4ecbe3571b5a
       
     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 #include "cntgroupmemberview.h"
       
    19 #include "cntgroupmemberview_p.h"
       
    20 #include "cntabstractviewmanager.h"
       
    21 
       
    22 /*!
       
    23 \class CntGroupMemberView
       
    24 \brief
       
    25 
       
    26 This is the group members view class that shows list of contacts for a user group. View contains a listview that shows actual contacts that
       
    27 have been added to a particular group. There is also toolbar and menu for navigating between different views. Instance of this class is
       
    28 created by our viewmanager but view itself is owned by the mainwindow which will also delete it in the end.
       
    29 
       
    30 */
       
    31 
       
    32 /*!
       
    33 Constructor, initialize member variables.
       
    34 \a viewManager is the parent that creates this view. \a parent is a pointer to parent QGraphicsItem (by default this is 0)
       
    35 
       
    36 */
       
    37 CntGroupMemberView::CntGroupMemberView() : d_ptr(new CntGroupMemberViewPrivate())
       
    38 {
       
    39     Q_D( CntGroupMemberView );
       
    40     d->q_ptr = this;
       
    41 }
       
    42 
       
    43 CntGroupMemberView::~CntGroupMemberView()
       
    44 {
       
    45     Q_D(CntGroupMemberView);
       
    46     delete d;
       
    47 }
       
    48     
       
    49 void CntGroupMemberView::activate( const CntViewParameters aArgs )
       
    50 {
       
    51     Q_D(CntGroupMemberView);
       
    52     d->activate(aArgs);
       
    53 }
       
    54 
       
    55 void CntGroupMemberView::deactivate()
       
    56 {
       
    57     Q_D(CntGroupMemberView);
       
    58     d->deactivate();
       
    59 }
       
    60 
       
    61 bool CntGroupMemberView::isDefault() const
       
    62 {
       
    63     return false;
       
    64 }
       
    65 
       
    66 HbView* CntGroupMemberView::view() const
       
    67 {
       
    68     Q_D( const CntGroupMemberView );
       
    69     return d->mView;
       
    70 }
       
    71 
       
    72 int CntGroupMemberView::viewId() const
       
    73 {
       
    74     return groupMemberView;
       
    75 } 
       
    76 
       
    77 void CntGroupMemberView::setEngine( CntAbstractEngine& aEngine )
       
    78 {
       
    79     Q_D( CntGroupMemberView );
       
    80     d->mEngine = &aEngine;
       
    81 }
       
    82 // EOF
       
    83