controlpanel/controlpanel_plat/inc/cpbasesettingview.h
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 #ifndef CPBASESETTINGVIEW_H
       
    18 #define CPBASESETTINGVIEW_H
       
    19 
       
    20 #include "cpglobal.h"
       
    21 #include <hbview.h>
       
    22 
       
    23 class QVariant;
       
    24 class QModelIndex;
       
    25 class HbDataForm;
       
    26 class CpBaseSettingViewPrivate;
       
    27 class CpItemDataHelper;
       
    28 
       
    29 class CP_EXPORT CpBaseSettingView : public HbView
       
    30 {
       
    31     Q_OBJECT
       
    32 public:
       
    33 	explicit CpBaseSettingView(QGraphicsWidget *widget = 0, QGraphicsItem *parent = 0);
       
    34     virtual ~CpBaseSettingView();    
       
    35     
       
    36     //\deprecated please use HbView::setWidget
       
    37     void setSettingForm(HbDataForm *settingForm)
       
    38     {
       
    39     }
       
    40     //\deprecated HbDataForm *settingForm(), please use HbView::widget() instead
       
    41     HbDataForm *settingForm() const
       
    42     {
       
    43         return 0;
       
    44     }
       
    45 signals:
       
    46     void returnValueDelivered(const QVariant &returnValue);
       
    47     void aboutToClose();
       
    48 protected:
       
    49     virtual void close();
       
    50 private:
       
    51     Q_DISABLE_COPY(CpBaseSettingView)
       
    52     Q_DECLARE_PRIVATE_D(d_ptr, CpBaseSettingView)
       
    53     Q_PRIVATE_SLOT(d_func(), void _q_softkeyClicked())
       
    54 private:
       
    55     CpBaseSettingViewPrivate *d_ptr;
       
    56     friend class CpBaseSettingViewPrivate;
       
    57 };
       
    58 
       
    59 #endif /* CPBASESETTINGVIEW_H */