17 |
17 |
18 #ifndef BTCPUISETTINGITEM_H |
18 #ifndef BTCPUISETTINGITEM_H |
19 #define BTCPUISETTINGITEM_H |
19 #define BTCPUISETTINGITEM_H |
20 |
20 |
21 #include <cpsettingformentryitemdata.h> |
21 #include <cpsettingformentryitemdata.h> |
22 #include <btsettingmodel.h> |
|
23 #include <btdevicemodel.h> |
|
24 |
22 |
25 #include "btcpuimainview.h" |
|
26 |
23 |
|
24 class BtSettingModel; |
|
25 class BtDeviceModel; |
|
26 class BtcpuiBaseView; |
27 class HbTranslator; |
27 class HbTranslator; |
|
28 class HbMainWindow; |
|
29 class HbView; |
28 |
30 |
29 class BtCpUiSettingItem : public CpSettingFormEntryItemData |
31 class BtcpuiSettingItem : public CpSettingFormEntryItemData |
30 { |
32 { |
31 Q_OBJECT |
33 Q_OBJECT |
32 public: |
34 public: |
33 explicit BtCpUiSettingItem(CpItemDataHelper &itemDataHelper); |
35 explicit BtcpuiSettingItem(CpItemDataHelper &itemDataHelper); |
34 virtual ~BtCpUiSettingItem(); |
36 virtual ~BtcpuiSettingItem(); |
|
37 |
35 private slots: |
38 private slots: |
36 void onLaunchView(); |
39 void onLaunchView(); |
37 void handleCloseView(); |
40 void handleCloseMainView(); |
38 void handleDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); |
41 void handleDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); |
|
42 |
|
43 private: |
|
44 // From CpSettingFormEntryItemData |
|
45 virtual CpBaseSettingView *createSettingView() const; |
|
46 |
39 private: |
47 private: |
40 virtual CpBaseSettingView *createSettingView() const; |
48 |
41 void updateStatus(); |
49 void updateStatus(); |
42 void loadTranslators(); |
50 void loadTranslators(); |
|
51 |
43 private: |
52 private: |
44 HbMainWindow* mMainWindow; |
53 HbMainWindow* mMainWindow; |
45 |
54 |
46 BtCpUiMainView *mBtMainView; |
55 BtcpuiBaseView *mMainView; |
47 |
56 |
48 //Owns this model. |
57 //Owns this model. |
49 BtSettingModel *mSettingModel; |
58 BtSettingModel *mSettingModel; |
50 BtDeviceModel *mDeviceModel; |
59 BtDeviceModel *mDeviceModel; |
51 |
60 |