phonebookui/cntcommonui/views/cntnamesview.cpp
changeset 72 6abfb1094884
parent 66 554fe4dbbb59
child 81 640d30f4fb64
equal deleted inserted replaced
67:59984e68247d 72:6abfb1094884
       
     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 "cntnamesview.h"
       
    19 #include "cntnamesview_p.h"
       
    20 #include <hbview.h>
       
    21 
       
    22 CntNamesView::CntNamesView() : d_ptr( new CntNamesViewPrivate() )
       
    23 {
       
    24     Q_D(CntNamesView);
       
    25     d->q_ptr = this;
       
    26 }
       
    27 
       
    28 /*!
       
    29  Destructor
       
    30  */
       
    31 CntNamesView::~CntNamesView()
       
    32 {
       
    33     Q_D(CntNamesView);
       
    34     delete d;
       
    35 }
       
    36 
       
    37 void CntNamesView::activate(const CntViewParameters aArgs)
       
    38 {
       
    39     Q_D(CntNamesView);
       
    40     d->activate( aArgs );
       
    41 }
       
    42 
       
    43 void CntNamesView::deactivate()
       
    44 {
       
    45     Q_D(CntNamesView);
       
    46     d->deactivate();
       
    47 }
       
    48 
       
    49 HbView* CntNamesView::view() const
       
    50 {
       
    51     Q_D(const CntNamesView);
       
    52     return d->mView;
       
    53 }
       
    54 
       
    55 bool CntNamesView::isDefault() const 
       
    56 { 
       
    57     Q_D(const CntNamesView);
       
    58     return true; 
       
    59 }
       
    60 int CntNamesView::viewId() const 
       
    61 {
       
    62     Q_D(const CntNamesView);
       
    63     return namesView;
       
    64 }
       
    65 
       
    66 void CntNamesView::setEngine( CntAbstractEngine& aEngine )
       
    67 {
       
    68     Q_D(CntNamesView);
       
    69     d->setEngine( aEngine );
       
    70 }
       
    71    
       
    72 
       
    73 // end of file