equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * ============================================================================ |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * Name : btcpuibaseview.h |
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 : Declaration of 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.2 |
|
21 */ |
|
22 |
17 |
23 #ifndef BTCPUIBASEVIEW_H |
18 #ifndef BTCPUIBASEVIEW_H |
24 #define BTCPUIBASEVIEW_H |
19 #define BTCPUIBASEVIEW_H |
25 |
20 |
26 #include <hbview.h> |
21 #include <hbview.h> |
39 Q_OBJECT |
34 Q_OBJECT |
40 |
35 |
41 public: |
36 public: |
42 |
37 |
43 virtual ~BtCpUiBaseView(); |
38 virtual ~BtCpUiBaseView(); |
44 virtual void activateView( const QVariant& value, int cmdId ) = 0; |
39 virtual void activateView( const QVariant& value, bool fromBackButton ) = 0; |
45 virtual void deactivateView() = 0; |
40 virtual void deactivateView() = 0; |
46 virtual void switchToPreviousView() = 0; |
41 virtual void switchToPreviousView() = 0; |
47 |
42 |
48 signals: |
43 signals: |
49 |
44 |
50 protected: |
45 protected: |
|
46 explicit BtCpUiBaseView(QGraphicsItem *parent = 0); |
|
47 |
51 explicit BtCpUiBaseView( |
48 explicit BtCpUiBaseView( |
52 BtSettingModel &settingModel, |
49 BtSettingModel &settingModel, |
53 BtDeviceModel &deviceModel, |
50 BtDeviceModel &deviceModel, |
54 QGraphicsItem *parent = 0); |
51 QGraphicsItem *parent = 0); |
55 |
52 |
58 BtSettingModel &getSettingModel(); |
55 BtSettingModel &getSettingModel(); |
59 BtDeviceModel &getDeviceModel(); |
56 BtDeviceModel &getDeviceModel(); |
60 |
57 |
61 protected: |
58 protected: |
62 |
59 |
63 // do not owned |
60 // owned |
64 BtSettingModel *mSettingModel; |
61 BtSettingModel *mSettingModel; |
65 |
62 |
66 //do not owned |
63 // owned |
67 BtDeviceModel *mDeviceModel; |
64 BtDeviceModel *mDeviceModel; |
68 |
65 |
69 QGraphicsItem *mParent; |
66 QGraphicsItem *mParent; |
70 int mPreviousViewId; |
67 int mPreviousViewId; |
71 |
68 |