phonebookui/pbkcommonui/src/cntgroupmemberview.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 18 Aug 2010 09:39:00 +0300
changeset 59 a642906a277a
parent 47 7cbcb2896f0e
child 65 ae724a111993
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/

#include "cntgroupmemberview.h"
#include "cntgroupmemberview_p.h"
#include "cntabstractviewmanager.h"

/*!
\class CntGroupMemberView
\brief

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
have been added to a particular group. There is also toolbar and menu for navigating between different views. Instance of this class is
created by our viewmanager but view itself is owned by the mainwindow which will also delete it in the end.

*/

/*!
Constructor, initialize member variables.
\a viewManager is the parent that creates this view. \a parent is a pointer to parent QGraphicsItem (by default this is 0)

*/
CntGroupMemberView::CntGroupMemberView() : d_ptr(new CntGroupMemberViewPrivate())
{
    Q_D( CntGroupMemberView );
    d->q_ptr = this;
}

CntGroupMemberView::~CntGroupMemberView()
{
    Q_D(CntGroupMemberView);
    delete d;
}
    
void CntGroupMemberView::activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs )
{
    Q_D(CntGroupMemberView);
    d->activate(aMgr,aArgs);
}

void CntGroupMemberView::deactivate()
{
    Q_D(CntGroupMemberView);
    d->deactivate();
}

bool CntGroupMemberView::isDefault() const
{
    return false;
}

HbView* CntGroupMemberView::view() const
{
    Q_D( const CntGroupMemberView );
    return d->mView;
}

int CntGroupMemberView::viewId() const
{
    return groupMemberView;
} 
// EOF