controlpanel/controlpanel_plat/inc/cpbasesettingview.h
changeset 37 940f6b67827d
parent 35 159cfcd3c1c5
child 38 5a264aaf7677
--- a/controlpanel/controlpanel_plat/inc/cpbasesettingview.h	Fri Apr 16 11:40:46 2010 +0800
+++ b/controlpanel/controlpanel_plat/inc/cpbasesettingview.h	Fri May 14 13:29:47 2010 +0800
@@ -20,6 +20,7 @@
 #include "cpglobal.h"
 #include <hbview.h>
 
+class QVariant;
 class QModelIndex;
 class HbDataForm;
 class CpBaseSettingViewPrivate;
@@ -30,17 +31,29 @@
     Q_OBJECT
 public:
 	explicit CpBaseSettingView(QGraphicsWidget *widget = 0, QGraphicsItem *parent = 0);
-    virtual ~CpBaseSettingView();
-    void setSettingForm(HbDataForm *settingForm);
-    HbDataForm *settingForm() const;
+    virtual ~CpBaseSettingView();    
+    
+    //Deprecated! please use HbView::setWidget
+    void setSettingForm(HbDataForm *settingForm)
+    {
+    }
+    //Deprecated! please use HbView::widget
+    HbDataForm *settingForm() const
+    {
+        return 0;
+    }
 signals:
+    void returnValueDelivered(const QVariant &returnValue);
     void aboutToClose();
+protected:
+    virtual void close();
 private:
     Q_DISABLE_COPY(CpBaseSettingView)
     Q_DECLARE_PRIVATE_D(d_ptr, CpBaseSettingView)
     Q_PRIVATE_SLOT(d_func(), void _q_softkeyClicked())
 private:
     CpBaseSettingViewPrivate *d_ptr;
+    friend class CpBaseSettingViewPrivate;
 };
 
 #endif /* CPBASESETTINGVIEW_H */