42
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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 BTCPUIDEVICEDETAIL_H
|
|
19 |
#define BTCPUIDEVICEDETAIL_H
|
|
20 |
|
|
21 |
#include <qobject.h>
|
|
22 |
#include <btdevsettinginterface.h>
|
|
23 |
#include <HbView>
|
|
24 |
|
|
25 |
class BtCpUiDeviceView;
|
|
26 |
class BtCpUiDeviceDetailsView;
|
|
27 |
|
|
28 |
class BtDeviceDetails
|
|
29 |
{
|
|
30 |
public:
|
|
31 |
BtAbstractDevSetting *mSetting;
|
|
32 |
bool mSettingAvailable;
|
|
33 |
HbDataForm *mSettingForm;
|
|
34 |
};
|
|
35 |
|
|
36 |
|
|
37 |
class BtCpUiDeviceDetail : public QObject
|
|
38 |
{
|
|
39 |
Q_OBJECT
|
|
40 |
|
|
41 |
public:
|
|
42 |
explicit BtCpUiDeviceDetail( QObject *parent = 0 );
|
|
43 |
|
|
44 |
virtual ~BtCpUiDeviceDetail();
|
|
45 |
|
|
46 |
void loadDeviceDetailPlugins(QString deviceAddress, QString deviceName);
|
|
47 |
|
|
48 |
void loadDeviceDetailsView();
|
47
|
49 |
|
|
50 |
void sendCloseEvent();
|
|
51 |
|
42
|
52 |
signals:
|
|
53 |
void deviceSettingsChanged(bool settingAvailable);
|
|
54 |
|
|
55 |
public slots:
|
|
56 |
void handleSettingChange(BtAbstractDevSetting *setting, bool available);
|
|
57 |
void handleDeviceDetailViewClose();
|
|
58 |
|
|
59 |
private:
|
|
60 |
enum NotifyType {
|
|
61 |
AboutToShow,
|
|
62 |
AboutToHide,
|
|
63 |
AboutToClose,
|
|
64 |
};
|
|
65 |
|
|
66 |
void appendDeviceToList(BtAbstractDevSetting *devSetting);
|
|
67 |
void clearDeviceDetailList();
|
|
68 |
void notifyDeviceDetailStatus();
|
|
69 |
void createDeviceDetailsView(QString deviceName);
|
|
70 |
void notifyViewStatusToPlugins(BtCpUiDeviceDetail::NotifyType type);
|
47
|
71 |
void checkDeviceDetailSettings();
|
42
|
72 |
|
|
73 |
private:
|
|
74 |
|
|
75 |
HbMainWindow* mMainWindow;
|
|
76 |
QList<BtDeviceDetails> mDeviceDetailList;
|
|
77 |
BtCpUiDeviceDetailsView* mDeviceDetailView;
|
|
78 |
HbView *mPreviousView;
|
|
79 |
|
|
80 |
};
|
|
81 |
|
|
82 |
|
|
83 |
#endif /* BTCPUIDEVICEDETAIL_H */
|