phonebookui/pbkcommonui/src/cntcontactcardview.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:29:23 +0300
changeset 40 b46a585f6909
parent 37 fd64c38c277d
child 53 e6aff7b69165
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

/*
 * 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 "cntcontactcardview.h"
#include "cntcontactcardview_p.h"

#include <hbview.h>

CntContactCardView::CntContactCardView() : d_ptr(new CntContactCardViewPrivate())
{
    Q_D(CntContactCardView);
    connect(d_ptr, SIGNAL(backPressed()), this, SIGNAL(backPressed()));
    connect(d_ptr, SIGNAL(viewActivated(CntAbstractViewManager*, const CntViewParameters)), 
            this, SIGNAL(viewActivated(CntAbstractViewManager*, const CntViewParameters)));
}

/*!
 Destructor
 */
CntContactCardView::~CntContactCardView()
{
    Q_D(CntContactCardView);
    delete d;
}

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

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

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

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

int CntContactCardView::viewId() const 
{ 
    return commLauncherView; 
}

// end of file