controlpanel/src/cpframework/src/cpbasesettingview.cpp
author hgs
Thu, 15 Jul 2010 05:33:30 +0800
changeset 44 bdd86cf3b77d
parent 37 940f6b67827d
child 52 58cebe0861a8
permissions -rw-r--r--
201027

/*
* 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 "cpbasesettingview.h"
#include "cpbasesettingview_p.h"
#include <hbdataform.h>
#include "cpitemdatahelper.h"


/*!
    \class CpBaseSettingView
    \brief The CpBaseSettingView is base class for all setting views in control panel application.
    This class is responsible for processing some common properties, such as setting view's title, content widget and back key action.
 */

/*!
    Constructor of CpBaseSettingView.
 */
CpBaseSettingView::CpBaseSettingView(QGraphicsWidget *widget /*= 0*/,QGraphicsItem *parent /*= 0*/) :
    HbView(parent),d_ptr(new CpBaseSettingViewPrivate())
{
    d_ptr->init(widget,this);
}

/*!
    Destructor of CpBaseSettingView.
 */
CpBaseSettingView::~CpBaseSettingView()
{
    delete d_ptr;
}


/*!
    Give derived class a chance to do some cleaning work before exiting view.
    Return : true:  ok to exit
 */
void CpBaseSettingView::close()
{
    emit aboutToClose();
}

// End of File