1 /* |
1 /* |
2 * ============================================================================ |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * Name : btcpuibaseclass.cpp |
3 * All rights reserved. |
4 * Part of : BluetoothUI / btapplication *** Info from the SWAD |
4 * This component and the accompanying materials are made available |
5 * Description : Implements the baseclass for all views in btapplication. |
5 * under the terms of "Eclipse Public License v1.0"" |
6 * |
6 * which accompanies this distribution, and is available |
7 * Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * All rights reserved. |
8 * |
9 * This component and the accompanying materials are made available |
9 * Initial Contributors: |
10 * under the terms of "Eclipse Public License v1.0" |
10 * Nokia Corporation - initial contribution. |
11 * which accompanies this distribution, and is available |
11 * |
12 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
12 * Contributors: |
13 * |
13 * |
14 * Initial Contributors: |
14 * Description: |
15 * Nokia Corporation - initial contribution. |
15 * |
16 * |
16 */ |
17 * Contributors: |
|
18 * Nokia Corporation |
|
19 * ============================================================================ |
|
20 * Template version: 4.1 |
|
21 */ |
|
22 |
17 |
23 #include "btcpuibaseview.h" |
18 #include "btcpuibaseview.h" |
24 #include <hbaction.h> |
19 #include <hbaction.h> |
25 |
20 |
26 /*! |
21 /*! |
27 Constructor. |
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. |
28 */ |
34 */ |
29 BtCpUiBaseView::BtCpUiBaseView( |
35 BtCpUiBaseView::BtCpUiBaseView( |
30 BtSettingModel &settingModel, |
36 BtSettingModel &settingModel, |
31 BtDeviceModel &deviceModel, |
37 BtDeviceModel &deviceModel, |
32 QGraphicsItem *parent ) |
38 QGraphicsItem *parent ) |
33 :CpBaseSettingView( 0 , parent ), |
39 :CpBaseSettingView( 0 , parent ) |
34 mSettingModel( &settingModel ), |
|
35 mDeviceModel( &deviceModel ) |
|
36 { |
40 { |
|
41 mSettingModel = new BtSettingModel(settingModel, this); |
|
42 mDeviceModel = new BtDeviceModel(deviceModel, this); |
37 } |
43 } |
38 |
44 |
39 /*! |
45 /*! |
40 Destructor. |
46 Destructor. |
41 */ |
47 */ |