controlpanel/src/cpframework/src/cpbasesettingview.cpp
changeset 55 4c15d9aa2384
parent 37 940f6b67827d
equal deleted inserted replaced
47:dbe66a66f6a9 55:4c15d9aa2384
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  
    14 * Description:  Base class for controlpane plugin views.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 #include "cpbasesettingview.h"
    18 #include "cpbasesettingview.h"
    19 #include "cpbasesettingview_p.h"
    19 #include "cpbasesettingview_p.h"
    21 #include "cpitemdatahelper.h"
    21 #include "cpitemdatahelper.h"
    22 
    22 
    23 
    23 
    24 /*!
    24 /*!
    25     \class CpBaseSettingView
    25     \class CpBaseSettingView
    26     \brief The CpBaseSettingView is base class for all setting views in control panel application.
    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.
    27     This class is responsible for processing some common properties, such as setting view's title, content widget and back key action.
    28  */
    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 */
    29 
    43 
    30 /*!
    44 /*!
    31     Constructor of CpBaseSettingView.
    45     Constructor of CpBaseSettingView.
    32  */
    46  */
    33 CpBaseSettingView::CpBaseSettingView(QGraphicsWidget *widget /*= 0*/,QGraphicsItem *parent /*= 0*/) :
    47 CpBaseSettingView::CpBaseSettingView(QGraphicsWidget *widget /*= 0*/,QGraphicsItem *parent /*= 0*/) :
    44     delete d_ptr;
    58     delete d_ptr;
    45 }
    59 }
    46 
    60 
    47 
    61 
    48 /*!
    62 /*!
    49     Give derived class a chance to do some cleaning work before exiting view.
    63     Emit aboutToClose() signal to indicate that the view is about to close.
    50     Return : true:  ok to exit
    64     Derived class can override it to do some specified work before exit.
    51  */
    65  */
    52 void CpBaseSettingView::close()
    66 void CpBaseSettingView::close()
    53 {
    67 {
    54     emit aboutToClose();
    68     emit aboutToClose();
    55 }
    69 }