48 |
48 |
49 Qt::Orientation orientation(); |
49 Qt::Orientation orientation(); |
50 |
50 |
51 // from base class BtCpUiBaseView |
51 // from base class BtCpUiBaseView |
52 virtual void setSoftkeyBack(); |
52 virtual void setSoftkeyBack(); |
53 virtual void activateView( const QVariant& value, int cmdId ); |
53 virtual void activateView( const QVariant& value, bool fromBackButton ); |
54 virtual void deactivateView(); |
54 virtual void deactivateView(); |
55 |
55 |
56 public slots: |
56 public slots: |
57 void changeOrientation( Qt::Orientation orientation ); |
57 void changeOrientation( Qt::Orientation orientation ); |
58 void changePowerState(); |
58 void changePowerState(); |
|
59 void visibilityChanged (int index); |
|
60 void changeBtLocalName(); |
59 |
61 |
60 void updateSettingItems(const QModelIndex &topLeft, const QModelIndex &bottomRight); |
62 void updateSettingItems(const QModelIndex &topLeft, const QModelIndex &bottomRight); |
61 void deviceSelected(const QModelIndex& modelIndex); |
63 void deviceSelected(const QModelIndex& modelIndex); |
62 void goToDiscoveryView(); |
64 void goToDiscoveryView(); |
63 void goToDeviceView(const QModelIndex& modelIndex); |
65 void goToDeviceView(const QModelIndex& modelIndex); |
64 |
|
65 // from view manager |
|
66 void changeView(int targetViewId, bool fromBackButton, int cmdId, const QVariant& value = 0 ); |
|
67 virtual void switchToPreviousView(); |
66 virtual void switchToPreviousView(); |
68 |
67 |
69 void visibilityChanged (int index); |
|
70 void changeBtLocalName(); |
|
71 |
|
72 //from delegate classes |
68 //from delegate classes |
73 void powerDelegateCompleted(int status); |
69 void powerDelegateCompleted(int status); |
74 void visibilityDelegateCompleted(int status); |
70 void visibilityDelegateCompleted(int status); |
75 void btNameDelegateCompleted(int status, QVariant param); |
71 void btNameDelegateCompleted(int status, QVariant param); |
76 void allActionTriggered(); |
72 void allActionTriggered(); |
77 void pairActiontriggered(); |
73 void pairActionTriggered(); |
78 |
74 |
79 protected: |
75 private slots: |
|
76 void changeView(int targetViewId, bool fromBackButton, const QVariant& value = 0 ); |
80 |
77 |
81 private: |
78 private: |
82 enum filterType { |
79 enum filterType { |
83 BtuiAll = 0, |
80 BtuiAll = 0, |
84 BtuiPaired |
81 BtuiPaired |