controlpanel/src/cpframework/src/cpbasesettingview.cpp
branchRCL_3
changeset 25 7e0eff37aedb
parent 24 8ee96d21d9bf
child 26 e78c61e77b1a
equal deleted inserted replaced
24:8ee96d21d9bf 25:7e0eff37aedb
     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:  Base class for controlpane plugin views.
       
    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 the base class for all setting views in controlpanel 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 /*!
       
    32     \fn void returnValueDelivered(const QVariant &returnValue)
       
    33     
       
    34     This signal is emitted when the setting view need to deliver return value to caller. Derived class can 
       
    35     emit the signal in some proper time.
       
    36 */
       
    37 
       
    38 /*!
       
    39     \fn void aboutToClose()
       
    40     
       
    41     This signal is emitted when the setting view is about to close.
       
    42 */
       
    43 
       
    44 /*!
       
    45     Constructor of CpBaseSettingView.
       
    46  */
       
    47 CpBaseSettingView::CpBaseSettingView(QGraphicsWidget *widget /*= 0*/,QGraphicsItem *parent /*= 0*/) :
       
    48     HbView(parent),d_ptr(new CpBaseSettingViewPrivate())
       
    49 {
       
    50     d_ptr->init(widget,this);
       
    51 }
       
    52 
       
    53 /*!
       
    54     Destructor of CpBaseSettingView.
       
    55  */
       
    56 CpBaseSettingView::~CpBaseSettingView()
       
    57 {
       
    58     delete d_ptr;
       
    59 }
       
    60 
       
    61 
       
    62 /*!
       
    63     Emit aboutToClose() signal to indicate that the view is about to close.
       
    64     Derived class can override it to do some specified work before exit.
       
    65  */
       
    66 void CpBaseSettingView::close()
       
    67 {
       
    68     emit aboutToClose();
       
    69 }
       
    70 
       
    71 // End of File