31
|
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 |
|
37
|
23 |
class QVariant;
|
31
|
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:
|
32
|
33 |
explicit CpBaseSettingView(QGraphicsWidget *widget = 0, QGraphicsItem *parent = 0);
|
37
|
34 |
virtual ~CpBaseSettingView();
|
|
35 |
|
|
36 |
//Deprecated! please use HbView::setWidget
|
|
37 |
void setSettingForm(HbDataForm *settingForm)
|
|
38 |
{
|
|
39 |
}
|
|
40 |
//Deprecated! please use HbView::widget
|
|
41 |
HbDataForm *settingForm() const
|
|
42 |
{
|
|
43 |
return 0;
|
|
44 |
}
|
31
|
45 |
signals:
|
37
|
46 |
void returnValueDelivered(const QVariant &returnValue);
|
31
|
47 |
void aboutToClose();
|
37
|
48 |
protected:
|
|
49 |
virtual void close();
|
31
|
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;
|
37
|
56 |
friend class CpBaseSettingViewPrivate;
|
31
|
57 |
};
|
|
58 |
|
|
59 |
#endif /* CPBASESETTINGVIEW_H */
|