|
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 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef BTCPUISEARCHVIEW_H |
|
19 #define BTCPUISEARCHVIEW_H |
|
20 |
|
21 #include <cpbasesettingview.h> |
|
22 #include <hbaction.h> |
|
23 #include <hbtoolbar.h> |
|
24 #include "btcpuibaseview.h" |
|
25 |
|
26 class HbLabel; |
|
27 class HbPushButton; |
|
28 class HbIcon; |
|
29 class HbDocumentLoader; |
|
30 class HbListView; |
|
31 class HbDataFormModel; |
|
32 class HbDataFormModelItem; |
|
33 class CpSettingFormItemData; |
|
34 |
|
35 |
|
36 class BtCpUiSearchView : public BtCpUiBaseView |
|
37 { |
|
38 Q_OBJECT |
|
39 |
|
40 public: |
|
41 explicit BtCpUiSearchView(BtuiModel &model, QGraphicsItem *parent = 0); |
|
42 virtual ~BtCpUiSearchView(); |
|
43 virtual void activateView( const QVariant& value, int cmdId ); |
|
44 virtual void deactivateView(); |
|
45 virtual void setSoftkeyBack(); |
|
46 |
|
47 public slots: |
|
48 void deviceSelected(const QModelIndex& modelIndex); |
|
49 virtual void switchToPreviousView(); |
|
50 |
|
51 private: |
|
52 HbDocumentLoader *mLoader; |
|
53 HbLabel *mDeviceIcon; |
|
54 HbLabel *mDeviceName; |
|
55 HbListView *mDeviceList; |
|
56 |
|
57 // data structures for switching between views |
|
58 bool mEventFilterInstalled; |
|
59 int mAutoCmdId; |
|
60 Qt::Orientation mOrientation; |
|
61 |
|
62 HbMainWindow* mMainWindow; |
|
63 BtCpUiBaseView* mMainView; |
|
64 BtCpUiBaseView* mSearchView; |
|
65 HbAction *mSoftKeyBackAction; |
|
66 // CpCustomLabelViewItem* mLabelItem; |
|
67 // CpCustomListViewItem* mListItem; |
|
68 HbToolBar* mToolBar; |
|
69 HbAction* mViewBy; |
|
70 HbAction* mStop; |
|
71 HbAction* mRetry; |
|
72 HbDataFormModel* mModel; |
|
73 }; |
|
74 |
|
75 #endif// BTCPUISEARCHVIEW_H |