33 |
33 |
34 class HbDataFormModel; |
34 class HbDataFormModel; |
35 //class HbDataFormModelItem; |
35 //class HbDataFormModelItem; |
36 class CpSettingFormItemData; |
36 class CpSettingFormItemData; |
37 class BtAbstractDelegate; |
37 class BtAbstractDelegate; |
38 |
38 class BtCpUiDeviceDetail; |
39 |
39 |
40 class BtCpUiDeviceView : public BtCpUiBaseView |
40 class BtCpUiDeviceView : public BtCpUiBaseView |
41 { |
41 { |
42 Q_OBJECT |
42 Q_OBJECT |
43 |
43 |
45 explicit BtCpUiDeviceView( |
45 explicit BtCpUiDeviceView( |
46 BtSettingModel &settingModel, |
46 BtSettingModel &settingModel, |
47 BtDeviceModel &deviceModel, |
47 BtDeviceModel &deviceModel, |
48 QGraphicsItem *parent = 0); |
48 QGraphicsItem *parent = 0); |
49 virtual ~BtCpUiDeviceView(); |
49 virtual ~BtCpUiDeviceView(); |
50 virtual void activateView( const QVariant& value, int cmdId ); |
50 virtual void activateView( const QVariant& value, bool fromBackButton ); |
51 virtual void deactivateView(); |
51 virtual void deactivateView(); |
52 virtual void setSoftkeyBack(); |
52 virtual void setSoftkeyBack(); |
53 |
53 |
54 public slots: |
54 public slots: |
55 |
55 |
56 virtual void switchToPreviousView(); |
56 virtual void switchToPreviousView(); |
57 void changeOrientation( Qt::Orientation orientation ); |
57 void changeOrientation( Qt::Orientation orientation ); |
58 void updateDeviceData(); |
58 void updateDeviceData(); |
62 void pairDelegateCompleted(int status); |
62 void pairDelegateCompleted(int status); |
63 void unpairDelegateCompleted(int status); |
63 void unpairDelegateCompleted(int status); |
64 void connectDelegateCompleted(int status); |
64 void connectDelegateCompleted(int status); |
65 void disconnectDelegateCompleted(int status); |
65 void disconnectDelegateCompleted(int status); |
66 void changeDevNameDelegateCompleted(int status, QVariant param); |
66 void changeDevNameDelegateCompleted(int status, QVariant param); |
67 |
67 void handleDeviceSetting(); |
|
68 void handleDeviceSettingsChange(bool status); |
|
69 |
68 private: |
70 private: |
69 void clearViewData(); |
71 void clearViewData(); |
70 void pairDevice(); |
72 void pairDevice(); |
71 void unpairDevice(); |
73 void unpairDevice(); |
72 void connectDevice(); |
74 void connectDevice(); |
73 void disconnectDevice(); |
75 void disconnectDevice(); |
74 void setDeviceCategory(int cod, int majorRole, int minorRole);//cod:class of device |
76 void setDeviceCategory(int cod, int majorRole);//cod:class of device |
75 void setDeviceStatus(int majorRole); |
77 void setDeviceStatus(int majorRole); |
76 void setConnectionCombobox(); |
78 void setConnectionCombobox(); |
77 void setTextAndVisibilityOfButtons(); |
79 void setTextAndVisibilityOfButtons(); |
78 void updateStatusVariables(int majorRole); |
80 void updateStatusVariables(int majorRole); |
79 |
81 |