29
|
1 |
/*
|
|
2 |
* ============================================================================
|
|
3 |
* Name : btcpuibaseview.h
|
|
4 |
* Part of : BluetoothUI / btapplication *** Info from the SWAD
|
|
5 |
* Description : Declaration of the baseclass for all views in btapplication.
|
|
6 |
*
|
|
7 |
* Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
8 |
* All rights reserved.
|
|
9 |
* This component and the accompanying materials are made available
|
|
10 |
* under the terms of "Eclipse Public License v1.0"
|
|
11 |
* which accompanies this distribution, and is available
|
|
12 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
13 |
*
|
|
14 |
* Initial Contributors:
|
|
15 |
* Nokia Corporation - initial contribution.
|
|
16 |
*
|
|
17 |
* Contributors:
|
|
18 |
* Nokia Corporation
|
|
19 |
* ============================================================================
|
|
20 |
* Template version: 4.2
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef BTCPUIBASEVIEW_H
|
|
24 |
#define BTCPUIBASEVIEW_H
|
|
25 |
|
|
26 |
#include <hbview.h>
|
|
27 |
#include <qglobal.h>
|
|
28 |
#include <cpbasesettingview.h>
|
31
|
29 |
#include <btsettingmodel.h>
|
|
30 |
#include <btdevicemodel.h>
|
29
|
31 |
|
|
32 |
/*!
|
|
33 |
\class BtUiBaseView
|
|
34 |
\brief the class is the base class for all views in btapplication.
|
|
35 |
|
|
36 |
*/
|
|
37 |
class BtCpUiBaseView : public CpBaseSettingView
|
|
38 |
{
|
|
39 |
Q_OBJECT
|
|
40 |
|
|
41 |
public:
|
|
42 |
|
|
43 |
virtual ~BtCpUiBaseView();
|
|
44 |
virtual void activateView( const QVariant& value, int cmdId ) = 0;
|
|
45 |
virtual void deactivateView() = 0;
|
31
|
46 |
virtual void switchToPreviousView() = 0;
|
|
47 |
|
29
|
48 |
signals:
|
|
49 |
|
31
|
50 |
protected:
|
|
51 |
explicit BtCpUiBaseView(
|
|
52 |
BtSettingModel &settingModel,
|
|
53 |
BtDeviceModel &deviceModel,
|
|
54 |
QGraphicsItem *parent = 0);
|
|
55 |
|
29
|
56 |
virtual void setSoftkeyBack() = 0;
|
31
|
57 |
|
|
58 |
BtSettingModel &getSettingModel();
|
|
59 |
BtDeviceModel &getDeviceModel();
|
29
|
60 |
|
|
61 |
protected:
|
|
62 |
|
31
|
63 |
// do not owned
|
|
64 |
BtSettingModel *mSettingModel;
|
|
65 |
|
|
66 |
//do not owned
|
|
67 |
BtDeviceModel *mDeviceModel;
|
|
68 |
|
29
|
69 |
QGraphicsItem *mParent;
|
|
70 |
int mPreviousViewId;
|
|
71 |
|
|
72 |
Q_DISABLE_COPY(BtCpUiBaseView)
|
|
73 |
};
|
|
74 |
|
|
75 |
#endif // BTCPUIBASEVIEW_H
|