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 |
*
|
55
|
14 |
* Description: Base class for controlpane plugin views.
|
31
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include "cpbasesettingview.h"
|
|
19 |
#include "cpbasesettingview_p.h"
|
|
20 |
#include <hbdataform.h>
|
|
21 |
#include "cpitemdatahelper.h"
|
|
22 |
|
|
23 |
|
|
24 |
/*!
|
|
25 |
\class CpBaseSettingView
|
55
|
26 |
\brief The CpBaseSettingView is the base class for all setting views in controlpanel application.
|
31
|
27 |
This class is responsible for processing some common properties, such as setting view's title, content widget and back key action.
|
|
28 |
*/
|
|
29 |
|
55
|
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 |
*/
|
|
43 |
|
31
|
44 |
/*!
|
|
45 |
Constructor of CpBaseSettingView.
|
|
46 |
*/
|
32
|
47 |
CpBaseSettingView::CpBaseSettingView(QGraphicsWidget *widget /*= 0*/,QGraphicsItem *parent /*= 0*/) :
|
31
|
48 |
HbView(parent),d_ptr(new CpBaseSettingViewPrivate())
|
|
49 |
{
|
32
|
50 |
d_ptr->init(widget,this);
|
31
|
51 |
}
|
|
52 |
|
|
53 |
/*!
|
|
54 |
Destructor of CpBaseSettingView.
|
|
55 |
*/
|
|
56 |
CpBaseSettingView::~CpBaseSettingView()
|
|
57 |
{
|
|
58 |
delete d_ptr;
|
|
59 |
}
|
|
60 |
|
|
61 |
|
|
62 |
/*!
|
55
|
63 |
Emit aboutToClose() signal to indicate that the view is about to close.
|
|
64 |
Derived class can override it to do some specified work before exit.
|
31
|
65 |
*/
|
37
|
66 |
void CpBaseSettingView::close()
|
31
|
67 |
{
|
37
|
68 |
emit aboutToClose();
|
31
|
69 |
}
|
|
70 |
|
37
|
71 |
// End of File
|