29
|
1 |
/*
|
42
|
2 |
* Copyright (c) 2010 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 |
*/
|
29
|
17 |
|
|
18 |
#include "btcpuibaseview.h"
|
31
|
19 |
#include <hbaction.h>
|
29
|
20 |
|
|
21 |
/*!
|
42
|
22 |
This constructor constructs new setting and device models.
|
|
23 |
*/
|
|
24 |
BtCpUiBaseView::BtCpUiBaseView(QGraphicsItem *parent )
|
|
25 |
:CpBaseSettingView( 0 , parent )
|
|
26 |
{
|
|
27 |
mSettingModel = new BtSettingModel(this);
|
|
28 |
mDeviceModel = new BtDeviceModel(this);
|
|
29 |
}
|
|
30 |
|
|
31 |
/*!
|
|
32 |
This constructor constructs models from the given setting and device models.
|
|
33 |
This implies the model impl and data structure is shared.
|
29
|
34 |
*/
|
31
|
35 |
BtCpUiBaseView::BtCpUiBaseView(
|
|
36 |
BtSettingModel &settingModel,
|
|
37 |
BtDeviceModel &deviceModel,
|
|
38 |
QGraphicsItem *parent )
|
42
|
39 |
:CpBaseSettingView( 0 , parent )
|
29
|
40 |
{
|
42
|
41 |
mSettingModel = new BtSettingModel(settingModel, this);
|
|
42 |
mDeviceModel = new BtDeviceModel(deviceModel, this);
|
29
|
43 |
}
|
|
44 |
|
|
45 |
/*!
|
|
46 |
Destructor.
|
|
47 |
*/
|
|
48 |
BtCpUiBaseView::~BtCpUiBaseView()
|
|
49 |
{
|
|
50 |
|
|
51 |
}
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|