controlpanel/controlpanel_plat/inc/cpbasesettingview.h
changeset 31 2c9d3aa5bea2
child 32 20bd089f4aaa
equal deleted inserted replaced
2:051d34a3f367 31:2c9d3aa5bea2
       
     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 QModelIndex;
       
    24 class HbDataForm;
       
    25 class CpBaseSettingViewPrivate;
       
    26 class CpItemDataHelper;
       
    27 
       
    28 class CP_EXPORT CpBaseSettingView : public HbView
       
    29 {
       
    30     Q_OBJECT
       
    31 public:
       
    32     explicit CpBaseSettingView(HbDataForm *settingForm = 0,QGraphicsItem *parent = 0);
       
    33     virtual ~CpBaseSettingView();
       
    34     void setSettingForm(HbDataForm *settingForm);
       
    35     HbDataForm *settingForm() const;
       
    36 signals:
       
    37     void aboutToClose();
       
    38 private:
       
    39     void setWidget(QGraphicsWidget *widget);
       
    40 private:
       
    41     Q_DISABLE_COPY(CpBaseSettingView)
       
    42     Q_DECLARE_PRIVATE_D(d_ptr, CpBaseSettingView)
       
    43     Q_PRIVATE_SLOT(d_func(), void _q_softkeyClicked())
       
    44     Q_PRIVATE_SLOT(d_func(), void _q_viewChanged(HbView *view))
       
    45 private:
       
    46     CpBaseSettingViewPrivate *d_ptr;
       
    47 };
       
    48 
       
    49 #endif /* CPBASESETTINGVIEW_H */