29
|
1 |
/*
|
42
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
29
|
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 "btcpuibaseview.h"
|
|
22 |
|
|
23 |
class HbLabel;
|
|
24 |
class HbPushButton;
|
|
25 |
class HbIcon;
|
|
26 |
class HbDocumentLoader;
|
|
27 |
class HbListView;
|
31
|
28 |
class BtAbstractDelegate;
|
47
|
29 |
class HbGroupBox;
|
|
30 |
class HbDataForm;
|
29
|
31 |
|
57
|
32 |
class BtcpuiSearchView : public BtcpuiBaseView
|
29
|
33 |
{
|
|
34 |
Q_OBJECT
|
|
35 |
|
|
36 |
public:
|
42
|
37 |
|
57
|
38 |
explicit BtcpuiSearchView(BtSettingModel &settingModel,
|
31
|
39 |
BtDeviceModel &deviceModel,
|
|
40 |
QGraphicsItem *parent = 0);
|
57
|
41 |
virtual ~BtcpuiSearchView();
|
|
42 |
virtual void activateView( const QVariant& value, bool backNavi);
|
29
|
43 |
virtual void deactivateView();
|
57
|
44 |
virtual void createContextMenuActions(int majorRole);
|
67
|
45 |
virtual void connectToDevice(const QModelIndex& modelIndex);
|
|
46 |
virtual void disconnectFromDevice(const QModelIndex& modelIndex);
|
|
47 |
|
|
48 |
|
29
|
49 |
public slots:
|
31
|
50 |
void changeOrientation( Qt::Orientation orientation );
|
|
51 |
void stopSearching();
|
|
52 |
void retrySearch();
|
57
|
53 |
virtual void viewByDialogClosed(HbAction* action);
|
31
|
54 |
void deviceSearchCompleted(int error);
|
67
|
55 |
void secondaryDelegateCompleted(int error, BtAbstractDelegate* delegate);
|
57
|
56 |
|
42
|
57 |
private:
|
57
|
58 |
virtual void take(BtAbstractDelegate *delegate);
|
42
|
59 |
void startSearchDelegate();
|
|
60 |
|
|
61 |
private:
|
29
|
62 |
HbDocumentLoader *mLoader;
|
|
63 |
HbLabel *mDeviceIcon;
|
47
|
64 |
HbDataForm *mDataForm;
|
31
|
65 |
HbLabel *mLabelSearching;
|
29
|
66 |
HbListView *mDeviceList;
|
|
67 |
|
|
68 |
Qt::Orientation mOrientation;
|
31
|
69 |
|
57
|
70 |
HbAction* mViewBy;
|
|
71 |
HbAction* mStop;
|
|
72 |
HbAction* mRetry;
|
67
|
73 |
|
|
74 |
//This is used to perform connect/disconnect operations.
|
|
75 |
//Inquiry delegate will be primary delegate, since Inquiry
|
|
76 |
//delegate is active most of the time, this secondary
|
|
77 |
//delegate is used to perform connect/disconnect.
|
|
78 |
BtAbstractDelegate* mSecondaryDelegate;
|
57
|
79 |
|
29
|
80 |
};
|
|
81 |
|
|
82 |
#endif// BTCPUISEARCHVIEW_H
|