controlpanel/src/cpframework/src/cpbasesettingview.cpp
changeset 68 13e71d907dc3
parent 40 6465d5bb863a
equal deleted inserted replaced
40:6465d5bb863a 68:13e71d907dc3
     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 "cpbasesettingview.h"
       
    19 #include "cpbasesettingview_p.h"
       
    20 #include <hbdataform.h>
       
    21 #include "cpitemdatahelper.h"
       
    22 
       
    23 
       
    24 /*!
       
    25     \class CpBaseSettingView
       
    26     \brief The CpBaseSettingView is base class for all setting views in control panel application.
       
    27     This class is responsible for processing some common properties, such as setting view's title, content widget and back key action.
       
    28  */
       
    29 
       
    30 /*!
       
    31     Constructor of CpBaseSettingView.
       
    32  */
       
    33 CpBaseSettingView::CpBaseSettingView(QGraphicsWidget *widget /*= 0*/,QGraphicsItem *parent /*= 0*/) :
       
    34     HbView(parent),d_ptr(new CpBaseSettingViewPrivate())
       
    35 {
       
    36     d_ptr->init(widget,this);
       
    37 }
       
    38 
       
    39 /*!
       
    40     Destructor of CpBaseSettingView.
       
    41  */
       
    42 CpBaseSettingView::~CpBaseSettingView()
       
    43 {
       
    44     delete d_ptr;
       
    45 }
       
    46 
       
    47 
       
    48 /*!
       
    49     Give derived class a chance to do some cleaning work before exiting view.
       
    50     Return : true:  ok to exit
       
    51  */
       
    52 void CpBaseSettingView::close()
       
    53 {
       
    54     emit aboutToClose();
       
    55 }
       
    56 
       
    57 // End of File